Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    Default chmod recursively???

    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

  2. #2
    OCX
    OCX is offline
    Member
    Join Date
    Sep 2003
    Posts
    246

    Default

    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?

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    Default

    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

  4. #4
    Registered User
    Join Date
    Sep 2003
    Posts
    4

    Default

    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.

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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

  6. #6
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    Default

    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

  7. #7
    Member lostinspace's Avatar
    Join Date
    Jul 2003
    Location
    Colorado Springs, CO
    Posts
    124

    Default

    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

Similar Threads & Tags
Similar threads

  1. IP Deny Manager: Delete should delete recursively
    By PaiaGirl in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-23-2009, 06:31 PM
  2. chmod 700 cat chgrp chmod cp cpio cut doexec...
    By EEssam in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-20-2008, 03:55 AM
  3. What is the shell command to list all xxx.* file recursively?
    By SuperBaby in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-05-2008, 08:20 PM
  4. Chmod
    By aingaranweb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-28-2004, 11:59 AM
  5. Chmod
    By ThunderHostingDotCom in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-22-2003, 01:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube