Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chmod rw for file and rwx for directories 1

Status
Not open for further replies.

venkman

Programmer
Oct 9, 2001
467
US
does anyone have a shell script for recursively changing all files to rw access and directories to rwx?
-venkman
 
Venkman:

The easiest way is to use find:

# directories
find . -type d |xargs chmod 777

# files
find . -type f |xargs chmod 666

Of course, the user needs to be root or have permissions to change the files.

Regards,

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top