Results 1 to 9 of 9
  1. #1

    Cant login other than root

    Hello I am on my linux box and I can not login to any other user accept root and i do not have that one setting in sshd_config to make it so only root cant login or what ever.. lol

  2. #2
    Join Date
    Apr 2005
    Posts
    1,711
    Create a new user with 'adduser USERNAME', then 'passwd USERNAME' to set the password.
    Go into /etc/ssh/sshd_config, and set PermitRootLogin to 'no', Protocol to '2', then save.
    Execute 'service sshd restart', then login as USERNAME, to get to root console, use 'su -'.
    Zach E. - Kualowww.kualo.com
    Shared Web Hosting, Reseller Hosting, Cloud VPS & Dedicated Servers
    UK: 0800 138 3235 ❘ USA: 1-800-995-8256

  3. #3
    still cant login with any user

  4. #4
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,574
    Do you have AllowUsers set for only root in your config by chance?

    What happens when you try to login as another user?

  5. #5
    Join Date
    Apr 2005
    Posts
    1,711
    Check /var/log/security, and paste relevant messages
    Zach E. - Kualowww.kualo.com
    Shared Web Hosting, Reseller Hosting, Cloud VPS & Dedicated Servers
    UK: 0800 138 3235 ❘ USA: 1-800-995-8256

  6. #6
    Quote Originally Posted by layer0 View Post
    Do you have AllowUsers set for only root in your config by chance?

    What happens when you try to login as another user?
    # override default of no subsystems
    Subsystem sftp /usr/libexec/openssh/sftp-server
    AllowUsers root
    AllowUsers admin

  7. #7
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,574
    Quote Originally Posted by DarkGhost View Post
    # override default of no subsystems
    Subsystem sftp /usr/libexec/openssh/sftp-server
    AllowUsers root
    AllowUsers admin
    If only logging in as root and admin works, then that's the cause of your issue.

    Add any additional users below this as "AllowUsers user" (same syntax as above) and restart sshd then you should be fine.

    Are you using DirectAdmin?

  8. #8
    Quote Originally Posted by zacharooni View Post
    Check /var/log/security, and paste relevant messages
    not allowed because not listed in AllowUsers

  9. #9
    Quote Originally Posted by layer0 View Post
    If only logging in as root and admin works, then that's the cause of your issue.

    Add any additional users below this as "AllowUsers user" (same syntax as above) and restart sshd then you should be fine.

    Are you using DirectAdmin?
    one of my friends downloaded it its stupid though. can i just make it so all users can login?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •