Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Authentication service cannot retrieve authentication info

  1. #1
    Join Date
    Dec 2007
    Beans
    21

    Authentication service cannot retrieve authentication info

    I recently updated my system (Ubuntu 10.04) and I noticed there was a kernel update to 2.6.32-39. After I rebooted to apply the update I tried to login and after I enter my password an error message appeared saying "Authentication service cannot retrieve authentication info."
    I tried logging in from tty and it would say "Incorrect Login." I have already tried to make my account login automatically but I get an error saying "Permission denied." I also added a new user and tried to login with the new account and it also says "Permission denied."
    Any help or suggestions? I am able to login from safe mode but only as root and I hadn't edited any files.

  2. #2
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Authentication service cannot retrieve authentication info

    Hi

    Is this a problem with the file /etc/shadow ?

    What are the permissions on it ?

    Code:
    ls -l /etc/shadow
    What about your user ? From a root console...

    Code:
    grep -i <user_name> /etc/shadow
    Can you su to it ? From the root console

    Code:
    su - <user_name>
    Change <user_name> to your user name

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Dec 2007
    Beans
    21

    Re: Authentication service cannot retrieve authentication info

    I don't think is the shadow file, here is the output of the commands:

    root@mobile-3:~# ls -l /etc/shadow
    -r--r----- 1 root shadow 1352 2011-12-09 10:03 /etc/shadow
    root@mobile-3:~# grep -i kiko /etc/shadow
    kiko:$6$AgrXYo3H$spriR/4ASDlUZsq/dKZGKkty6g0JJB/XCpCLsu2uNVgIPupf30UC11.zwFc1K27T1D6MjA3rAWeTz2Wam mnGg/:15408:0:99999:7:::
    root@mobile-3:~# su - kiko
    kiko@mobile-3:~$

    I had previously run pwconv and pwunconv to try to fix the problem but it didn't do anything. Except that it removed the shadow file, I used the pwconv command again and it created the shadow file again. Then I noticed there was a shadow- file and run the second command and got this:

    root@mobile-3:/etc# grep -i kiko /etc/shadow-
    kiko:$6$gy0HzPZE$KS5Oxm.MT8Vrnkfj7DXlTV0Wn2xnWJLvS uvMGU3Dx9L2Xx2N3dX2RFDvJ9GehDcHWJVejWFN0ai/KE2lMd20q0:15315:0:99999:7:::
    root@mobile-3:/etc# grep -i kiko /etc/shadow
    kiko:$6$AgrXYo3H$spriR/4ASDlUZsq/dKZGKkty6g0JJB/XCpCLsu2uNVgIPupf30UC11.zwFc1K27T1D6MjA3rAWeTz2Wam mnGg/:15408:0:99999:7:::

    Not sure if this helps. I'm still unable to login after creating the shadow file.

  4. #4
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Authentication service cannot retrieve authentication info

    Hi

    These are the default permissions for shadow

    Code:
    matthew@matthew-Aspire-7540:~$ ls -l /etc/shadow
    -rw-r----- 1 root shadow 1103 Mar  6 18:04 /etc/shadow
    matthew@matthew-Aspire-7540:~$
    From a root console.

    Code:
    chmod 640 /etc/shadow
    Give that a try.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  5. #5
    Join Date
    Dec 2007
    Beans
    21

    Re: Authentication service cannot retrieve authentication info

    I changed the permission on the shadow file but I'm still unable to login. I have already search for similar problems and most point to LDAP, which I don't think I use. Do you have any other advice?
    Thanks.

  6. #6
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Authentication service cannot retrieve authentication info

    Hi

    Is the problem with PAM ?

    Code:
    ls -l /etc/pam.d/
    The file /etc/passwd is configured correctly ?

    Code:
    matthew@matthew-Aspire-7540:~$ ls -l /etc/passwd
    -rw-r--r-- 1 root root 1791 Mar  6 18:04 /etc/passwd
    matthew@matthew-Aspire-7540:~$
    Kind regards
    Last edited by matt_symes; March 9th, 2012 at 11:05 PM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  7. #7
    Join Date
    Dec 2007
    Beans
    21

    Re: Authentication service cannot retrieve authentication info

    I'm not sure if is pam, this is the output of the commands:
    Code:
    root@mobile-3:~# ls -l /etc/pam.d/
    total 96
    -rw-r--r-- 1 root root  182 2009-08-14 11:49 atd
    -rw-r--r-- 1 root root  384 2010-01-26 11:01 chfn
    -rw-r--r-- 1 root root   92 2010-01-26 11:01 chpasswd
    -rw-r--r-- 1 root root  581 2010-01-26 11:01 chsh
    -rw-r--r-- 1 root root 1208 2012-03-05 19:05 common-account
    -rw-r--r-- 1 root root 1287 2012-03-05 19:05 common-auth
    -rw-r--r-- 1 root root 1480 2012-03-05 19:05 common-password
    -rw-r--r-- 1 root root 1201 2012-03-05 19:05 common-session
    -rw-r--r-- 1 root root 1154 2012-03-05 19:05 common-session-noninteractive
    -rw-r--r-- 1 root root  307 2010-04-15 01:51 cron
    -rw-r--r-- 1 root root   69 2010-11-02 12:55 cups
    -rw-r--r-- 1 root root  267 2008-11-10 17:32 cvs
    -rw-r--r-- 1 root root  648 2011-04-28 03:08 gdm
    -rw-r--r-- 1 root root  495 2011-04-28 03:08 gdm-autologin
    -rw-r--r-- 1 root root   56 2011-03-08 02:29 gnome-screensaver
    -rw-r--r-- 1 root root 3967 2010-01-26 11:01 login
    -rw-r--r-- 1 root root   92 2010-01-26 11:01 newusers
    -rw-r--r-- 1 root root  520 2010-04-13 17:01 other
    -rw-r--r-- 1 root root   92 2010-01-26 11:01 passwd
    -rw-r--r-- 1 root root  105 2011-04-19 16:05 polkit-1
    -rw-r--r-- 1 root root  168 2010-03-06 23:36 ppp
    -rw-r--r-- 1 root root   84 2010-03-19 16:16 samba
    -rw-r--r-- 1 root root 2305 2010-01-26 11:01 su
    -rw-r--r-- 1 root root  119 2010-04-13 12:37 sudo
    root@mobile-3:~# ls -l /etc/passwd
    -rw-r--r-- 1 root root 2041 2012-03-09 13:16 /etc/passwd
    Thanks

  8. #8
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Authentication service cannot retrieve authentication info

    Hi

    The file permissions look fine. What's the output of this file

    Code:
    cat /etc/pam.d/login
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  9. #9
    Join Date
    Dec 2007
    Beans
    21

    Re: Authentication service cannot retrieve authentication info

    This is what the login file contain:
    Code:
    root@mobile-3:~# cat /etc/pam.d/login
    #
    # The PAM configuration file for the Shadow `login' service
    #
    
    # Enforce a minimal delay in case of failure (in microseconds).
    # (Replaces the `FAIL_DELAY' setting from login.defs)
    # Note that other modules may require another minimal delay. (for example,
    # to disable any delay, you should add the nodelay option to pam_unix)
    auth       optional   pam_faildelay.so  delay=3000000
    
    # Outputs an issue file prior to each login prompt (Replaces the
    # ISSUE_FILE option from login.defs). Uncomment for use
    # auth       required   pam_issue.so issue=/etc/issue
    
    # Disallows root logins except on tty's listed in /etc/securetty
    # (Replaces the `CONSOLE' setting from login.defs)
    # Note that it is included as a "required" module. root will be
    # prompted for a password on insecure ttys.
    # If you change it to a "requisite" module, make sure this does not leak
    # user name information.
    auth       required  pam_securetty.so
    
    # Disallows other than root logins when /etc/nologin exists
    # (Replaces the `NOLOGINS_FILE' option from login.defs)
    auth       requisite  pam_nologin.so
    
    # SELinux needs to be the first session rule. This ensures that any 
    # lingering context has been cleared. Without out this it is possible 
    # that a module could execute code in the wrong domain.
    # When the module is present, "required" would be sufficient (When SELinux
    # is disabled, this returns success.)
    session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
    
    # This module parses environment configuration file(s)
    # and also allows you to use an extended config
    # file /etc/security/pam_env.conf.
    # 
    # parsing /etc/environment needs "readenv=1"
    session       required   pam_env.so readenv=1
    # locale variables are also kept into /etc/default/locale in etch
    # reading this file *in addition to /etc/environment* does not hurt
    session       required   pam_env.so readenv=1 envfile=/etc/default/locale
    
    # Standard Un*x authentication.
    @include common-auth
    
    # This allows certain extra groups to be granted to a user
    # based on things like time of day, tty, service, and user.
    # Please edit /etc/security/group.conf to fit your needs
    # (Replaces the `CONSOLE_GROUPS' option in login.defs)
    auth       optional   pam_group.so
    
    # Uncomment and edit /etc/security/time.conf if you need to set
    # time restrainst on logins.
    # (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
    # as well as /etc/porttime)
    # account    requisite  pam_time.so
    
    # Uncomment and edit /etc/security/access.conf if you need to
    # set access limits.
    # (Replaces /etc/login.access file)
    # account  required       pam_access.so
    
    # Sets up user limits according to /etc/security/limits.conf
    # (Replaces the use of /etc/limits in old login)
    session    required   pam_limits.so
    
    # Prints the last login info upon succesful login
    # (Replaces the `LASTLOG_ENAB' option from login.defs)
    session    optional   pam_lastlog.so
    
    # Prints the motd upon succesful login
    # (Replaces the `MOTD_FILE' option in login.defs)
    session    optional   pam_motd.so
    
    # Prints the status of the user's mailbox upon succesful login
    # (Replaces the `MAIL_CHECK_ENAB' option from login.defs). 
    #
    # This also defines the MAIL environment variable
    # However, userdel also needs MAIL_DIR and MAIL_FILE variables
    # in /etc/login.defs to make sure that removing a user 
    # also removes the user's mail spool file.
    # See comments in /etc/login.defs
    session    optional   pam_mail.so standard
    
    # Standard Un*x account and session
    @include common-account
    @include common-session
    @include common-password
    
    # SELinux needs to intervene at login time to ensure that the process
    # starts in the proper default security context. Only sessions which are
    # intended to run in the user's context should be run after this.
    session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
    # When the module is present, "required" would be sufficient (When SELinux
    # is disabled, this returns success.)
    Thanks

  10. #10
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Authentication service cannot retrieve authentication info

    Hi

    That file looks alright.

    You have me scratching my head here. Anybody else with ideas ?

    Anything on the log files /var/log/auth.log ?

    Kind regards
    Last edited by matt_symes; March 9th, 2012 at 11:06 PM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

Page 1 of 2 12 LastLast

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
  •