Create a new user without having to create a domain account

durangod

Well-Known Member
May 12, 2012
505
46
78
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.
 

durangod

Well-Known Member
May 12, 2012
505
46
78
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)
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Also trying to find docs or a way to switch to root account once i am logged into WHM.
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.