Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Permission 755 and 754

61 views
Skip to first unread message

gg

unread,
Oct 14, 2005, 5:31:28 PM10/14/05
to
In a single command i have to give OR set of commands i have to give
Directories Permission 755 and Files 754 ... i have huge number of dirs
and files.. give me simple procedure ..
help me ..


thanks

steven_nospam at Yahoo! Canada

unread,
Oct 14, 2005, 5:51:56 PM10/14/05
to

# This starts from current directory and also runs through
subdirectories
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 754 {} \;

Be careful where you do this!! From root (/) you will change ALL the
files/directories on the system and some things will stop
working....for example, rsh and ftp may be affected if the .rhosts or
.netrc files get the wrong permissions.

Steve

base60

unread,
Oct 14, 2005, 7:17:34 PM10/14/05
to

find . -type d -ls -exec chmod 755 {} ;\
find . -type f -ls -exec chmod 754 {} ;\

>
>
> thanks
>

0 new messages