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
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
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?
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
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.
FlashFXP has an inbuilt method for doing recursive CHMOD commands which does not use -R (I use it all the time) - you can also distinguish between directory and file values:
http://www.flashfxp.com
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
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
I have used all three of the following scripts and they work perfectly. They are pretty good cgi alternatives to some common SSI tasks.
http://www.perlservices.net/en/download/index.shtml
Look at:
Quick CHMOD
Site File Finder
Site File Lister