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.

Create user with shell

Discussion in 'General Discussion' started by persiasoft, Oct 19, 2005.

  1. persiasoft

    persiasoft Active Member

    Joined:
    Nov 15, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    how to create new user on RHE3 with root shell access ( FULL ACCESS ) ?
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Is it on a cpanel server?, It is not recommended to create a user with root privilege on a cpanel server.

    But you can create a user with root privilege using the following method on any redhat servers.

    Create a user and then edit the /etc/password file and set the uid and gid to 0 (Same as root)
    So the user get the same privilege of root user
     
  3. persiasoft

    persiasoft Active Member

    Joined:
    Nov 15, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    i have shell access via PHP file and i want to create user with full shell access , to log on using putty, cPanel installed on server.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You definitely won't be able to do it using a php script through your web server.

    The best way would be to add a cPanel account to the wheelk group in WHM. Then grant that user a normal shell access, also in WHM. You can then SSH into that account and su into root.
     
Loading...

Share This Page