Using terminal to list accounts and other basic commands
Hello friends, maybe my question seems very basic but I don't know if I'm wrong, I access WHM through the terminal.
pwd
/ root
It shows me that I am in the root of the server where the cPanel accounts are located or how ready are the cPanel accounts?
I need to access some of them as root to be able to run python commands as I am having "permissions denied" when accessing via terminal on accounts.
these cpanel accounts have a normal shell since with jailed shell it had more drawbacks, one of them was the use of pip
[CODE=bash]root@server [~]# pwd
/root
root@server [~]# ls
./ emailpass.sh .HttpRequest/ .pki/
../ emailpass.sh.1 imap_band.sh* public_ftp/
.accesshash emailpass.sh.10 install.log public_html/
anaconda-ks.cfg emailpass.sh.11 install.sh* .pyzor/
.bash_history emailpass.sh.12 kernelcare-latest-7.rpm .razor/
.bash_logout emailpass.sh.13 legacy_ea3_distiller_files-number.tar.gz .rnd
.bash_profile emailpass.sh.2 .lesshst secure.sh
.bashrc emailpass.sh.3 lista.txt .spamassassin/
.bwusage.sqlite emailpass.sh.4 list.txt spamtexto.txt
.cache/ emailpass.sh.5 .MirrorSearch/ .ssh/
cloudlinux_ea3_to_ea4 emailpass.sh.6 .my.cnf .tcshrc
cmstext.txt emailpass.sh.7 mysql* tmp/
.cpanel/ emailpass.sh.8 .mysql_history txt.txt
cpanel3-skel/ emailpass.sh.9 .pearrc .viminfo
.cpanm/ error_log perl5/ .wp-toolkit-identifier
.cpobjcache/ .forward php.ini.new
.cshrc found_shells.log php.ini.orig
.elinks/ .gnupg/ php_modules.log
-
Hi All cpanel account hwich i being created shown in home directory 0 -
You can list the cPanel accounts by their username with: ls -l /home command 0 -
The above statements are correct - by default, all cPanel accounts will be created in /home/username, where "username" is the cPanel user on the account. /root is the default directory you are taken to when you log in to SSH as the root user. 0 -
Thank you very much for your response and managed to access the users and list their directories, I thank you very much for the help 0 -
I'm glad that helped get you the details you needed! 0
Please sign in to leave a comment.
Comments
5 comments