Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    4

    Default Problem All Ssh users have access to cpanel

    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.

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    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.
    Beau Henderson

  3. #3
    Member
    Join Date
    Oct 2003
    Posts
    6

    Default

    This has always annoyed me and I was here hoping to find a way around it... shucks. Haze ... ASC?

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    84

    Default

    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.

  5. #5
    Member
    Join Date
    Oct 2003
    Posts
    6

    Default

    Thanks for this workaround!

Similar Threads & Tags
Similar threads

  1. Disable SSH/Shell Access for all users
    By MH-Andy in forum Security
    Replies: 7
    Last Post: 10-12-2010, 11:27 PM
  2. SSH access via Public Key Auth for cPanel users - How?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-28-2008, 04:58 AM
  3. Disabling SSH Access For All Users
    By Dathorn_ADT in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-11-2007, 10:22 AM
  4. ssh - user access to another users files
    By ladydi711 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-11-2006, 12:13 PM
  5. Weird Access Problem All shell users can get into cpanel
    By Neronix in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-27-2005, 12:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube