SIDEBAR
»
S
I
D
E
B
A
R
«
Different rights for files and dirs
January 11th, 2008 by P.G.Taboada

This is one snippet that I sometimes need, but always forget how it looks like:

  • to change directory rights:

find . -type d -exec chmod 740 “{}” \;

  • to change file rights:

find . -type f -exec chmod 640 “{}” \;

Obviously I do not need it often enough (or I would rembember it and this posting would not have happened), or I am a linux noob – I am not sure yet.

At least, now I know where to copy and paste from next time.


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »  Style:Ahren Ahimsa
Bitnami