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 Chriss Miller 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
Joined
Oct 9, 2001
Messages
467
Location
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
 
Thanks, that worked.
-venkman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top