Results 1 to 9 of 9

Thread: unable to login / authorisation failure

  1. #1
    Join Date
    Oct 2009
    Location
    UK
    Beans
    5
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Angry unable to login / authorisation failure

    Hi. Ubuntu newbie here so please excuse any stupid questions!

    I installed Ubuntu 9.04 for the 1st time a few days ago. Everything worked very smoothly until I tried to automatically unlock the default gnome keyring password. I did this by following the instructions at:-

    http://ubuntu-tutorials.com/2007/07/...g-pam-keyring/


    After following these instructions, I rebooted my PC with "automatically login" enabled. It loaded fine as normal straight into Ubuntu. However, I was still asked for the default keyring password by the network manager applet. I then read that the workaround described in the above link doesn't work if "automatic login" is enabled. So, I disabled automatic login and rebooted.

    Now I hit the BIG problem. When I reboot, I am presented with the Ubuntu login screen & am prompted for a username. Before I even touch the keyboard this prompt is replaced with a message stating "Authorisation Failure". so, I have no way of accessing my machine .

    I tried running Ubuntu from the live CD & browsed to the /etc/pam.d/gdm file which I had edited & removed the line which I had added (@include common-pamkeyring)However, the system would not allow me to save the file since I did not have the needed permissions to overwrite.

    Any help would be warmly appreciated since right now the only option I can think of is a re-install...

    Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Location
    Argentina
    Beans
    755
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: unable to login / authorisation failure

    you can save the file, if you open it from CLI with

    Code:
    sudo gedit /location/of/file
    careful with what you do though.
    AMD Phenom II X3 720 Black Edition 2,8 GHz - GIGABYTE GA-MA770T-UD3P - 6 GB RAM Mushkin DDR3 1333 - ZOTAC GeForce 9800 GT 1 GB DDR3

  3. #3
    Join Date
    Oct 2009
    Location
    UK
    Beans
    5
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: unable to login / authorisation failure

    Thanks for your reply.

    I did try to do this by loading Ubuntu in "repair mode" (or whatever it's called) from the boot loader and then starting a command line from the various options provided. I typed

    sudo gedit /etc/pam.d/gdm

    But I got an unhelpful response, something like "unable to load display" if I remember correctly.

  4. #4
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: unable to login / authorisation failure

    If you run it from that mode you need:

    Code:
    nano /etc/pam.d/gdm

  5. #5
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: unable to login / authorisation failure

    Quote Originally Posted by pommers View Post
    Hi. Ubuntu newbie here so please excuse any stupid questions!

    I installed Ubuntu 9.04 for the 1st time a few days ago. Everything worked very smoothly until I tried to automatically unlock the default gnome keyring password. I did this by following the instructions at:-

    http://ubuntu-tutorials.com/2007/07/...g-pam-keyring/


    After following these instructions, I rebooted my PC with "automatically login" enabled. It loaded fine as normal straight into Ubuntu. However, I was still asked for the default keyring password by the network manager applet. I then read that the workaround described in the above link doesn't work if "automatic login" is enabled. So, I disabled automatic login and rebooted.

    Now I hit the BIG problem. When I reboot, I am presented with the Ubuntu login screen & am prompted for a username. Before I even touch the keyboard this prompt is replaced with a message stating "Authorisation Failure". so, I have no way of accessing my machine .

    I tried running Ubuntu from the live CD & browsed to the /etc/pam.d/gdm file which I had edited & removed the line which I had added (@include common-pamkeyring)However, the system would not allow me to save the file since I did not have the needed permissions to overwrite.

    Any help would be warmly appreciated since right now the only option I can think of is a re-install...

    Thanks in advance.
    I'd say the real problem was following that quide in the first place, since it's not needed with any recent Ubutnu version, they all have that mechanism included by default.. All you have to do is to mae sure your keyring password is the same as your login password (besides, that guide still doesn't allow you to unlock the keyring automaticaly without using a notrmal logn. the onlyw ay to do that is to remove the keyring password, which can be done in Applications/Accessories/Passwords and Encryption keys).

    What comes to removing your changes from the configuration file, the complaint about not having permissions sounds like you simply didn't use "sudo" to do the editing with root permissions.. Of corse when done in revovery mode that's not required since recovery mode logs you in as root anyway.

    edit: Also, you can' use Gedit when editing files in command-line. Gedit is a graphical application and requires running a graphical desktop. Use nano instead, like Wojox suggested above.

    After you get your changes undone, here's how to change/unset the keyring password:

    1.Open the keyring manager (Applications/Accessories/Passwords and Encryption Keys)

    2. Go to Passwords-tab

    3. Right-click the "Passwords:login"-keyring & select "Change Password"

    Now you can change the keyring password. If you use normal login set the password to same as your login password to unlock the keyring automatically. If you use automatic login leave the new password fields empty to remove the keyring password.
    Last edited by mcduck; October 1st, 2009 at 10:41 AM.

  6. #6
    Join Date
    Oct 2009
    Location
    UK
    Beans
    5
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: unable to login / authorisation failure

    Thanks. I'll try to undo my edits using nano, as suggested by Wojox

    NB, my keyring & login passwords are the same, but the nm-applet still asked me for my keyring password every time I started the machine. Maybe this was because I had "auto login" enabled?

  7. #7
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: unable to login / authorisation failure

    Quote Originally Posted by pommers View Post
    Thanks. I'll try to undo my edits using nano, as suggested by Wojox

    NB, my keyring & login passwords are the same, but the nm-applet still asked me for my keyring password every time I started the machine. Maybe this was because I had "auto login" enabled?
    Yes, like I said the keyring will be automatically unlocked only when you use your password at the login screen. So it won't work if you use automatic or timed login (or have different passwords for login and the keyring).

    If you want automatic login without having to enter the keyring password the only option is to remove the keyring password completely, using the method I posted above.

    Not having a keyring password is slightly less secure, but not usually a problem unless you have some important encryption and signing keys or other stuff like that in your keyring. But if you had, you probably wouldn't be using automatic login anyway..

  8. #8
    Join Date
    Oct 2009
    Location
    UK
    Beans
    5
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: unable to login / authorisation failure

    Hi wojox. Thanks so much for your help; by doing this I can now access my machine again!

  9. #9
    Join Date
    Oct 2009
    Location
    UK
    Beans
    5
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: unable to login / authorisation failure

    Thanks mcduck for your guidance. I'm fully up & running again now & eager to learn more about ubuntu!

Tags for this Thread

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
  •