The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

chmod recursively???

Discussion in 'General Discussion' started by paulmac, Aug 16, 2004.

  1. paulmac

    paulmac Registered

    Joined:
    Aug 16, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    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. paulmac

    paulmac Registered

    Joined:
    Aug 16, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. paulwhit

    paulwhit Registered

    Joined:
    Sep 8, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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
     
  6. paulmac

    paulmac Registered

    Joined:
    Aug 16, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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. lostinspace

    lostinspace Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    122
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Colorado Springs, CO
Loading...
Similar Threads - chmod recursively
  1. John Donnellon
    Replies:
    7
    Views:
    326

Share This Page