Koozali.org: home of the SME Server

need to chmod more than 1 file/directory

npereira

need to chmod more than 1 file/directory
« 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

Marco Broeken

Re: need to chmod more than 1 file/directory
« Reply #1 on: October 03, 2001, 01:18:30 PM »
chmod 755 /root  -R

npereira

Re: need to chmod more than 1 file/directory
« Reply #2 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

Alejandro

Re: need to chmod more than 1 file/directory
« Reply #3 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

Rolf

Re: need to chmod more than 1 file/directory
« Reply #4 on: October 04, 2001, 03:35:40 PM »
find -type f -exec chmod 666 {} \;
find -type d -exec chmod 777 {} \;