Re: chmod script
Pere Camps wrote:
>Hi!
>
> Does anybody have a script for changing all the dirs and subdirs
>into mode 700 and all the files into mode 600 ?
>
> If I do a chmod 700 -R then all the files get changed to 700...
chmod -R . go-rwx,u+rw
find . -type d | xargs chmod u+x
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"And be not conformed to this world; but be ye
transformed by the renewing of your mind, that ye may
prove what is that good, and acceptable, and perfect,
will of God." Romans 12:2
Reply to: