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.

user restart permissions

Discussion in 'General Discussion' started by Chris2k3, May 30, 2004.

  1. Chris2k3

    Chris2k3 Member
    PartnerNOC

    Joined:
    May 17, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to give a user account permissions to restart certain services via ssh?

    I know you can make the account a reseller and grant restart privileges but that only allows the options from WHM, pretty useless if http needs restarting.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The simple answer is, No.

    This is because you need root access to be able to restart such services. You could make their user account a member of the wheel group such that they can su to the root account, but you probably don't want to do that ;)

    I should add - this is possible, but you'd need to write an app that allows a non-priv user to effect a priv-user (root) action. But that's not possible with what cPanel provides, you'd have to seek out a programmer for that.
     
  3. Chris2k3

    Chris2k3 Member
    PartnerNOC

    Joined:
    May 17, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the answer.

    No, i don't want to give them root, i do trust them and know they wouldn't do anything malicious but their knowledge is very limited, and they might break something by mistake. :)

    I know i could write a script to execute root commands, but again if http is down, they wont be able to access the script.

    There must be people somewhere (hosts probally) that have techs who can restart services from shell without root?

    Guess i'll just hope nothing ever crashes :p
     
  4. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    Hmm....

    Why not create an email address that pipes to a script that validates a password and command?

    Could be useful for email client and cellular/wap usage, especially if http is down?
     
  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
    I like the sound of that :)

    With spam that contains random words these days, you'd have to be careful of it doesn't accidentally triggering your server doing odd things :eek: :D
     
Loading...

Share This Page