paulmac

Registered
Aug 16, 2004
3
0
151
Is there anyway to allow a user to chmod files/folders recursively (-R) from File Manager or from a script accessable from the cPanel menu, without any risk to server sercurity?

Regards

paulmac
 

OCX

Well-Known Member
Sep 20, 2003
231
0
166
you can chmod using FTP client which would allow it to chmod just the folder or the file or
folder+all within the folder


is that what your after?
 

paulmac

Registered
Aug 16, 2004
3
0
151
well, I'm hosted on a server running cpanel and want to be able to chmod -R my website when I need to.(testing new versions etc.) But my host has said they don't allow the use of chmod with the -R switch for security reasons. I get permission denied when I try from ftp and I've also tried a few scripts running on my site that allow running of commands but again can't use the -R switch. I can chmod individual files and folders thru File Manager but this takes too long.

I wanted to know if there was a way this could be done so I can tell them! I would have thought there'd be a way to do it safely, either as a script run from the cpanel menu or as an option from the set permissions feature in File Manager.

regards

paulmac
 

paulwhit

Registered
Sep 8, 2003
4
0
151
you could try using the xargs command in combination with ls. I'm not sure exactly what the commandline would be but that might give you a starting point.
 

paulmac

Registered
Aug 16, 2004
3
0
151
thanks for that chirpy, I'll give it a try. Prehaps this might be a good feature to include in cpanel? Especially if it takes a couple of days for the host admin to get around to doing it for you!

Anyway, downloads finished, so I'm off to have a play. :)

regards

paulmac