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.

ssh access

Discussion in 'General Discussion' started by Diatone, Mar 19, 2002.

  1. Diatone

    Diatone Well-Known Member

    Joined:
    Aug 22, 2001
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    If I have a client on a package that does not have shell access, but I want to give the client shell access, how do I do that? Modify account will not let me change that.

    Thanks.
     
  2. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    chsh -s /bin/bash username

    Change the username to the customers username.

    NOTE: I have not tested it but I think it is the correct command. Use at your own risk. I am crazy and edit the passwd file directly.
     
  3. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    At the shell type

    pico /etc/passwd

    You will see lines with :/usr/local/cpanel/bin/noshell at the end. Those are users without shell access. To change them to have access do this.

    Change :/usr/local/cpanel/bin/noshell to :/bin/bash and this will allow their login.


    Yes I copied and pasted from a post I just made with a little editing =]
     
  4. Diatone

    Diatone Well-Known Member

    Joined:
    Aug 22, 2001
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
  5. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    No problem. Glad it worked and for future refrence you can just put :/usr/local/cpanel/bin/noshell back to take their access.
     
Loading...

Share This Page