Results 1 to 10 of 10

Thread: Help! Can't log in

  1. #1
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Help! Can't log in

    After trying a "fix" I found on another thread, nobody can log into my laptop! After each attempt, a single message shows up in /var/log/messages:

    Aug 19 11:44:46 ubuntu kernel: [ 52.459328] type=1503 audit(1282232686.548:17): operation="open" pid=1613 parent=1399 profile="/usr/share/gdm/guest-session/Xsession" requested_mask="r::" denied_mask="r::" fsuid=1000 ouid=1000 name="/home/${USER}/.profile"

    Code:
    $ cd
    $ ls -l .profile
    -rw-r--r-- 1 ${USER} ${USER} 702 2010-08-17 16:02 .profile
    
    $ cd /usr/share/gdm/guest-session
    $ ls -l Xsession
    -rwxr-xr-x 1 root root 91 2010-04-14 19:24 Xsession
    Background:

    The initial problem was an error message on login: Can't update /home/${USER}/.ICEauthority, and it was taking a long time to get past it.

    Here's the "fix" (http://ubuntuforums.org/showthread.php?t=1366173&highlight=.ICEauthority):

    Quote Originally Posted by Flos Headford View Post
    This worked for me:
    Use a Ubuntu Live CD to boot up, and choose a command-line (shell) option.
    With this, set your $HOME directory (/home/username) permissions to something appropriate (I used 755) and make sure all directories can be listed with the "ls" command. Then remove nautilus with
    Code:
    sudo  apt-get remove nautilus
    and delete the .ICEauthority entry in $HOME, and possibly in /var/lib/gdm. Then reboot with
    Code:
    sudo  shutdown -r now
    When you choose the same option on boot-up, from the command line you can use
    Code:
    sudo apt-get install nautilus
     sudo shutdown -r now
    and retrieve the CD a bit smartish. I do hope you get a clean straight boot and login, as I did!
    with thanks to all who helped me,
    Phil
    The only thing I did differently was I booted into recovery mode from the grub menu rather than from live CD.

  2. #2
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help! Can't log in

    Further note: The gdm login screen comes up, but after login attempt, black screen with text flashes up too fast to read, then returns to gdm login screen.

  3. #3
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Help! Can't log in

    It looks like you've picked very poor instructions. I am going to report that post as potentially harmful and ask it edited, as deleting .ICEauthority is a bad move.
    Take a look at a proper explanation -> http://ubuntuforums.org/showthread.php?t=206985.

  4. #4
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help! Can't log in

    Quote Originally Posted by mikewhatever View Post
    It looks like you've picked very poor instructions. I am going to report that post as potentially harmful and ask it edited, as deleting .ICEauthority is a bad move.
    Take a look at a proper explanation -> http://ubuntuforums.org/showthread.php?t=206985.
    Okay, we can all agree that I screwed up by assuming that if something worked for someone else, it would work for me. But what now?

    BTW, I tried restoring the ~/.ICEauthority files from backup with no luck.
    Last edited by bilkay; August 19th, 2010 at 06:56 PM.

  5. #5
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help! Can't log in

    Code:
    $ cd
    $ cat .xsession-errors
    /etc/gdm/Xsession: Beginning session setup...
    Setting IM through im-switch for locale=en_US.
    Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default.
    /etc/gdm/Xsession: Beginning session setup...
    .: 34: Can't open /home/${USER}/.profile
    I don't see any reason why ~/.profile can't be opened.

    Code:
    $ cd
    $ ls -l .profile
    -rw-r--r-- 1 ${USER} ${USER} 702 2010-08-17 16:02 .profile

  6. #6
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help! Can't log in

    It's crashing out of /etc/gdm/Xsession in this loop:

    if [ -d /etc/X11/Xsession.d ]; then
    for i in `ls /etc/X11/Xsession.d/` ; do
    if [ -r "/etc/X11/Xsession.d/$i" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then
    . "/etc/X11/Xsession.d/$i"
    fi
    done
    fi

    In script 99x11-common_start:

    exec $STARTUP

  7. #7
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help! Can't log in

    At this point, STARTUP = /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/share/gdm/guest-session/Xsession

    It's not getting to the script /gdm/guest-session/Xsession. Now I'm stumped
    Last edited by bilkay; August 19th, 2010 at 09:11 PM.

  8. #8
    Join Date
    Sep 2010
    Beans
    2

    Exclamation Re: Help! Can't log in

    I too followed Flos Headford's advice (http://ubuntuforums.org/showthread.php?t=1366173) and now cannot login. From what I can tell, running Klamav or clamav with 'sudo' caused the issue in the first place. To clear the "could not update .ICEauthority" message I used
    Code:
    sudo chown [username]:[username] /home/[username]/.ICEauthority
    sudo chmod 664 /home/[username]/.ICEauthority
    (where [username] is my username) and then restarted. This let me get into gnome but I couldn't interact with anything even though things were running (i.e. CPU usage graph). Then I followed Flos Headford's advice and found myself at a login screen that would point back at itself on login (accepting my username and password but falling back to the login screen on success). For anyone considering deleting .ICEauthority and reinstalling nautilus, do this as a last resort. I was running Ubuntu 10.04LTS at the time and will resort to reinstalling the whole system as a result.

  9. #9
    Join Date
    Aug 2010
    Location
    Hopewell Junction, NY
    Beans
    332
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Help! Can't log in

    What I find disquieting is that a single, seemingly innocuous file deletion can cause so much havoc, and based on the lack of responses, can't be remedied.

  10. #10
    Join Date
    May 2009
    Beans
    111
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help! Can't log in

    Please use clamtk 4.15 GUI and not have these problems.




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
  •