Results 1 to 7 of 7

Thread: Can't login

  1. #1
    Join Date
    Dec 2008
    Location
    Melbourne, Australia
    Beans
    138
    Distro
    Kubuntu 13.04 Raring Ringtail

    Can't login

    I have a server install of 13.04 64bit that I can no longer log into. ssh won't accept a connection. I can't do a physical login from a console either. What happens is: my username and password are accepted, the terminal goes black for a fraction of a second and the login prompt reappears. None of the filesystems are approaching full. A couple of things I was doing or did when this happened may have led to this. Firstly, I installed kubuntu-desktop. (Graphical login displays the same behaviour as above). Secondly, I was getting a samba share working with an internal drive, so I was doing work on /etc/fstab and the acl for this drive. My /etc/fstab has since been restored from the backup I made before starting this work.

    auth.log is not showing much information about what's happening with the login, this is what appears when I try to login via console:

    Code:
    Jun 27 23:11:54 phenom login[1847]: pam_unix(login:session): session opened for user thelionroars by LOGIN(uid=0)
    Jun 27 23:11:55 phenom login[1847]: pam_unix(login:session): session closed for user thelionroars
    Any advice would be appreciated, please let me know if I can provide further information.

  2. #2
    Join Date
    Dec 2008
    Location
    Melbourne, Australia
    Beans
    138
    Distro
    Kubuntu 13.04 Raring Ringtail

    Re: Can't login

    I ended up installing again on another hard drive, as the extra work was more preferable to me than not having my server available for the forseeable future. I still have this drive and this issue seems imminently solvable, so if anyone can tell me what the problem might be, I would be keen to know and test it out.

  3. #3
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Can't login

    Ji Ruo; Hi ! ...
    Generally login issues are a result of altered permissions on the /home directory.

    Check if ".ICEauthority" is owned by you:
    Code:
    ls -al .ICEauthority
    ## If it isn't (but possibly by root), change it to you:
    sudo chown USERNAME:USERNAME .ICEauthority
    better take a look at the permissions on ~/.Xauthority, too. It often gets changed when ~/.ICEauthority gets changed. The same fix applies.

    if not this, will look further
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  4. #4
    Join Date
    Dec 2008
    Location
    Melbourne, Australia
    Beans
    138
    Distro
    Kubuntu 13.04 Raring Ringtail

    Re: Can't login

    Neither .ICEauthority nor .Xauthority exist in any of my home directories on the broken install. However, they aren't present on the new (& working) install either, so I'm wondering if the way logins are handled has changed recently.

  5. #5
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Can't login

    AFAIK .Xauthority and .ICEauthority are only relevant for desktop (X session) logins

    Do you remember what exactly you were doing to get the samba shares working? did that involve installing any pam components (like libpam-krb5, libpam-smbpass, libpam-winbind)?

    Since you posted an auth.log fraction I assume you can still log in via recovery mode? are there any other pam_* module messages aside from the pam_unix messages you posted?

    Just thinking out loud here, I don't really know where I am going with this line of questioning, just seems like a coincidence that samba things were underway when it went south

  6. #6
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,199
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Can't login

    et all:
    Not sure either at this time ... but food for thought:
    In a lot of ways it's similar to the xauth program & the .Xauthority file, except that .ICEAuthority is used for client to client, while .Xauthority is for client to server.
    ... but like steeldriver ... is this only in reference to a desktop system ?

    I recently installed this 13.04 as a minimal install ... and had no XAUTHORITY variable set, nor was the file .Xauthority in existence... that initially was a hurdle I had to overcome to get anything done with the system... And I still have small niggly things to deal with.

    Is that variable set ?
    Code:
    echo $XAUTHORITY
    hey, we be look'n
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  7. #7
    Join Date
    Dec 2008
    Location
    UK
    Beans
    407
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Can't login

    I had this issue when the permissions got messed up on my home folder.

Bookmarks

Posting Permissions

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