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 a new user without having to create a domain account

Discussion in 'General Discussion' started by durangod, Sep 26, 2016.

Tags:
  1. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    So if i just want a user account to be able to add them to the wheel, why would i need to create a whole account for them them for a domain when they should not be associated with a domain. It would be just like any other user ie.. apache, ftp, mysql the only difference is that they could log into whm. So they would just be a name on the list with log in privies.

    So i been reading some posts on this. If i just create a user via command line with a password, can i not just add them to the wheel and have them log in to WHM instead of using the root to log in? That way i can disable the root login.
     
  2. nathanl

    nathanl Registered

    Joined:
    Dec 1, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    cPanel Access Level:
    Root Administrator
    The best work-around to this is mentioned here : Feature Manager, multiple admin users, for WHM

    Add the user via SSH and add the user to the cPanel resellers file :

    Code:
    echo 'username:all' >> /var/cpanel/resellers
    Once that is done, the user will have full root access to WHM.
     
  3. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Thanks nathan, appreciate that link. I have also made one user via command line for ssh as /bin/bash and one for ftp as /bin/false i hope thats the right way to do that because the ftp user cannot log into pure ftpd, im still working on that deal. :)

    Last time when i was on a vps years ago i had this setup so that the root could only login to WHM from my local IP so i hope that is still doable. (update)Which i found here
    Restricting SSH access to a specific IP for a specific user

    Also trying to find docs or a way to switch to root account once i am logged into WHM.

    Also looking for a way to have an emergency account that would only be allowed to use ssh on two days of the week, this would be like a hail mary account just in case i get locked out. I decided time was better option i dont want to have to wait for one day of the week if i get locked out.
    (update) ok found this one
    Code:
    user1 ; * ; Wd0900-1100 | Wk0400-0800
    
    This would give user1 access 9am to 11am on weekends(wd) and 4am to 8am on weekdays(wk) (remember it uses military time format)
     
    #3 durangod, Sep 27, 2016
    Last edited: Sep 27, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    There's also a document here you may find helpful:

    How to Create a WHM Reseller Without An Associated Domain - cPanel Knowledge Base - cPanel Documentation

    It's not possible to switch to the "root" user after logging in, but you can assign root privileges to the reseller account when assigning it features, per the documentation here:

    Edit Reseller Nameservers and Privileges - Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page