Find the answer to your Linux question:
Results 1 to 2 of 2
Recently I can't login as non-root users. - The gui login no longer works. - At the text login prompt, attempting a non-root login returns the same prompt. - Some ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    9

    Can't login as non-root

    Recently I can't login as non-root users.

    - The gui login no longer works.
    - At the text login prompt, attempting a non-root login returns the same prompt.
    - Some sort of message flashes.
    - I can make out "last login" text, and then something that looks to be about my home directory
    - Intentionally using a bad pass/user still gives an error message.
    - I can login as root (then issue "startx")
    - After logging in as root, <ctrl><alt><f#> and attempting login as non-root gives rise to the same situation as explained above.
    - Permissions:

    0755 for /home
    0700 for /home/<userid>
    0755 for /usr
    1777 for /tmp
    0755 for /var

    - Contents of /var/log/secure:

    <time-stamp> localhost login: pam_unix(login:session): session opened for <userid> by LOGIN(uid=0)
    <time-stamp> localhost login: LOGIN ON tty# BY <userid>
    <time-stamp> localhost login: pam_unix(login:session): session closed for user <userid>

    - I do not have an /etc/nologin file

    Any ideas? I'm baffled. =/

    Can post any other info if needed.

  2. #2
    Linux Engineer rong's Avatar
    Join Date
    Feb 2005
    Location
    California
    Posts
    803
    Can you add a new user?
    Try adduser to see if that works OK. Some distros do not include 'adduser' so instead use useradd. You can man useradd if you need help on how to use it.
    registered Linux user #388382

    Have you checked here first?

Posting Permissions

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