Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: npereira on October 03, 2001, 12:34:34 AM

Title: need to chmod more than 1 file/directory
Post by: npereira on October 03, 2001, 12:34:34 AM
I need to know if there is a way to chmod multiple directories in 1 command without affecting the files in them ?

If so how?

Im trying to install phpnuke on SME V5 and i cant change the permissions inside the ftp client.

If you have a better way of doing this, let me know!

Thanks

nelson
Title: Re: need to chmod more than 1 file/directory
Post by: Marco Broeken on October 03, 2001, 01:18:30 PM
chmod 755 /root  -R
Title: Re: need to chmod more than 1 file/directory
Post by: npereira on October 03, 2001, 03:42:35 PM
No, i mean all directories need to be 777 and all files need to be 666

How can i do this in 1 or 2 steps?

Nelson
Title: Re: need to chmod more than 1 file/directory
Post by: Alejandro on October 04, 2001, 02:00:41 AM
Try to use a disk navigation tool with chown and chmod capabilities

I use Midnight comander
is a kind of old but very effective (and shows you the tree structure)
in a root opened session at the server type mc and navigate were you want
you can select multiple files an dirs with "insert" key.
hth
ale
Title: Re: need to chmod more than 1 file/directory
Post by: Rolf on October 04, 2001, 03:35:40 PM
find -type f -exec chmod 666 {} \;
find -type d -exec chmod 777 {} \;