What is an account?
An account is a space on the server that belongs to one user. It has a name, a password and its own files. Some accounts belong to real people. Others belong to programs that run in the background, called system users.
Method 1: Use WHM
WHM is the admin screen of a cPanel server. Use this method if your VPS has WHM.
- Log in to WHM. Use your server IP or hostname followed by
:2087. - Type List Accounts in the search box at the top left.
- Click List Accounts.
- Read the table. It shows the domain, user name, IP address, disk use, plan and the date each account was made.
- Use the search box on that page to find one account.
Method 2: Use the command line
The command line is a text screen where you type commands. Connect with SSH first. SSH is a safe way to control a server from far away.
- Log in over SSH as root.
- To see every user on the system, run:
This prints the first part of each line in the user file, which is the user name.cut -d: -f1 /etc/passwd - To see only normal users, run:
Normal users have an ID number of 1000 or more on most modern systems. On very old systems the limit is 500.awk -F: '$3 >= 1000 && $3 != 65534 {print $1}' /etc/passwd - To list the home folders, run:
ls /home - To see who is logged in right now, run:
who
Method 3: List cPanel accounts by command
- On a cPanel server, log in as root over SSH.
- Run:
This prints the full list of cPanel accounts. A shorter way iswhmapi1 listacctsls /var/cpanel/users.
Tip: Check the list now and then. If you see a user you do not know, it may be a sign that someone broke in. Change your passwords and contact Hostvento support.
Warning: do not delete system users. Removing the wrong one can stop services from working.
Quick recap
- In WHM, open List Accounts.
- From SSH,
cut -d: -f1 /etc/passwdlists all users. ls /homeshows home folders.- On cPanel,
ls /var/cpanel/userslists accounts. - Look out for unknown users.