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.

troubleshooting script permissions

Discussion in 'cPanel Developers' started by sime, Aug 2, 2007.

  1. sime

    sime Active Member

    Joined:
    Oct 16, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    I have a shell script which is called by a cpanel plugin, using cpanel 11.

    I've put the script in /scripts. On the first server, this worked great. However, on the next server this fails. Testing on the command line. It seems the cpanel user, even with normal shell access cannot execute the script (even if the user owns the file and is 777).

    Sounds odd? Am I being thwarted by a security setting here?

    I don't want to give the user shell *at all*. I just want the script to run when the user runs it via cpanel. Where should I place the scripts, or what setting should I change?
     
  2. sime

    sime Active Member

    Joined:
    Oct 16, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    It seems that the problem lies in the path to script. I've got around this by moving my scripts to a new location with custom permissions. :-/
     
Loading...

Share This Page