Missing /var/cpanel/users/system file. Cannot create reseller account without associated domain

pqpier

Member
Aug 12, 2022
21
1
3
Brazil
cPanel Access Level
Root Administrator
Hello,

I was following this tutorial:

But when I got to step 6:
Create a user file in the /var/cpanel/users directory with the following command:
cp /var/cpanel/users/system /var/cpanel/users/username

I get the following error:
[[email protected] users]# cp /var/cpanel/users/system /var/cpanel/users/jessica
cp: cannot stat ‘/var/cpanel/users/system’: No such file or directory

Why is this file missing and what should I do to solve that and be able to complete the steps of this tutorial?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,701
352
438
Finland
cPanel Access Level
Root Administrator
  • Like
Reactions: cPRex

pqpier

Member
Aug 12, 2022
21
1
3
Brazil
cPanel Access Level
Root Administrator
Also, the purpose of doing this was to allow an employee to list all accounts and be able to access their cpanel dashboard.
I just followed the steps and when I logged in as the new user, I couldn't see no accounts under List accounts.

What am I missing here?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Honest perspective - this is a "hackaround" to get functionality from WHM that doesn't really exist. I would just create a normal account with a domain that will never be used. You could name it adminaccess.com or anything you wish, since it will never have DNS. That would likely be much easier than any manual workarounds that may or may not continue to work in the future.
 

pqpier

Member
Aug 12, 2022
21
1
3
Brazil
cPanel Access Level
Root Administrator
Honest perspective - this is a "hackaround" to get functionality from WHM that doesn't really exist. I would just create a normal account with a domain that will never be used. You could name it adminaccess.com or anything you wish, since it will never have DNS. That would likely be much easier than any manual workarounds that may or may not continue to work in the future.
Ok, but, how to grant access to that account so it can list all server accounts and manage their cpanel dashboard?

There has to be a way. It can't be that I have to give root level access to an employee so he can do something as simple as list and manage accounts (with limits).
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
In order for the reseller user to see all the other accounts on the machine, and not just those under their own reseller, they would need to be granted all privileges, so it is essentially root-level access. That is the main function of the root user, being an administrator to all accounts, so there isn't really a way around that or a lesser permission that will get you there.
 

pqpier

Member
Aug 12, 2022
21
1
3
Brazil
cPanel Access Level
Root Administrator
In order for the reseller user to see all the other accounts on the machine, and not just those under their own reseller, they would need to be granted all privileges, so it is essentially root-level access. That is the main function of the root user, being an administrator to all accounts, so there isn't really a way around that or a lesser permission that will get you there.
If I were to change owner of all accounts to be that user, would that cause any issues?

And one this is to manage all accounts, I'm ok with that. I have backups.
Another thing is to grant an access that, if misused, could shut down or kill the entire server.