Problem All Ssh users have access to cpanel

Neronix

Registered
Dec 27, 2005
4
0
151
When I create users in SSH using adduser (freebsd 5.3) for some reason that user is then able to login and get an unlimited access account to cpanel.

If i add user bob in ssh, and he goes to port 2082 and tries to login, this is what he will see

Welcome yourdomain.com! Last login from: not recorded


No contact email has been set. You will be unable to receive notifications or reset your password if you do not set a contact email address.
Please update your contact information here.

an error occurred while processing this directive]
[an error occurred while processing this directive] Subdomains [an error occurred while processing this directive]0 / unlimited
Parked Domains [an error occurred while processing this directive]0 / 0
Addon Domains 0 / 0
MySQL Databases The cPanel Users File does not exist: /var/cpanel/users/neronix / unlimited
Disk usage 0.00 Megabytes
SQL Disk usage 0.00 Megabytes
Disk space available Unlimited Megabytes


Eeek, any suggestions?

I want to have users who have ssh accounts, but have NO cpanel access, I dont even want cpanel involved with these accounts.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
There's really no way around it as far as I'm aware. The cPanel system itself basically takes over your server when installed and you need to live with its ways, or live without it. Alternatively, you could try submitting a feature request, but I somehow don't think you'll get very much demand for such a feature.
 

UraniumWeb

Member
Oct 15, 2003
6
0
151
This has always annoyed me and I was here hoping to find a way around it... shucks. Haze ... ASC?
 

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
156
Create a new template that has nothing in it and give your ssh-only account that template.

# cd /usr/local/cpanel/base/frontend
# mkdir sshonly
# cd sshonly
# echo "Access Denied" > index.html

Now give your user the sshonly template

# cd /var/cpanel/users
# echo RS=sshonly > USERID (where USERID = username in passwd file)

I tested this, it works great.