The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem All Ssh users have access to cpanel

Discussion in 'General Discussion' started by Neronix, Dec 30, 2005.

  1. Neronix

    Neronix Registered

    Joined:
    Dec 27, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
  3. UraniumWeb

    UraniumWeb Member

    Joined:
    Oct 15, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    This has always annoyed me and I was here hoping to find a way around it... shucks. Haze ... ASC?
     
  4. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    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. UraniumWeb

    UraniumWeb Member

    Joined:
    Oct 15, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for this workaround!
     
Loading...

Share This Page