Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th February 2009, 12:30 PM
bobrien Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
Can't change root passwd - even in singleuser mode

FC9 - Sulphur, x86, nothing fancy

Did an update (damn the unofficial repos!!!)

Found a problem with pam_passwdqc module.

Like the title says, I'm unable to change root's password.

I boot into singleuser mode, run passwd, get the
Code:
passwd: all authentication tokens updated successfully
response.

Boot into multiuser mode and I'm still unable to login.

Two questions:
1) Anyone have a 'default' /etc/pam.d/system-auth that I can replace with the system-auth that
was obliterated by the pam_passwdqc update?
2) Any other ideas?
Reply With Quote
  #2  
Old 17th February 2009, 12:39 PM
arvinddeshpande Offline
Registered User
 
Join Date: Jun 2007
Posts: 122
Isn't it somewhere on the forum people were talking about root login not allowed through UI?

Anyways /etc/pam.d/gdm has a line
auth required pam_succeed_if.so user != root quiet

Which probably means "succeed if user is not root" meaning "Fail if user is root" Comment that line and see if it works for you.
Reply With Quote
  #3  
Old 17th February 2009, 12:49 PM
bobrien Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
arvinddeshpande,

Thanks for the reply.
I'm not even close to the UI (yet) :-)

In singleuser mode (boot to grub, edit the kernel command, add singleuser to the end, boot the system).

At the bash prompt, I appear to change the password for root successfully, but following a sync,sync and a reboot - into multiuser mode, the password still does not work.

Note: I've done this before on a number of systems - this is the first time it's failed for me....
Reply With Quote
  #4  
Old 17th February 2009, 01:16 PM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
this may not be a very helpful response, but check /etc/shadow before and after you change the password in single user mode and see if it actually gets written.

davidj
Reply With Quote
  #5  
Old 17th February 2009, 01:22 PM
bobrien Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
Thanks, daverj, (I'm open to any ideas).
/etc/shadow does indeed get modified when I run passwd in singleuser mode.
I've also tried the brute force hack of editing /etc/shadow and removing the encrypted password.
I've also tried passwd -d .... and this had no effect, either.
Reply With Quote
  #6  
Old 17th February 2009, 01:29 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Anything in the SElinux log? Maybe a bug in the SELinux policies?
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #7  
Old 17th February 2009, 01:55 PM
bobrien Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
Nothing - SElinux is disabled. It was before and after.
Reply With Quote
  #8  
Old 17th February 2009, 05:24 PM
arvinddeshpande Offline
Registered User
 
Join Date: Jun 2007
Posts: 122
Now however stupid this suggestion may sound please bear with me.

You sure CAPS LOCK is not on and you are using the same password?

That is the only explanation SELinux should not do anything cause he is changing root password. So the program must have permissions to modify shadow passwords.

If I were you I will set a simple password like abcd1234 and check if that works and while setting it up will pay attention to the CAPS lock.
Reply With Quote
  #9  
Old 18th February 2009, 12:27 PM
bobrien Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
capslock - great suggestion, but - still, no passwd love

arvinddeshpande,
Thanks - and great idea.
I checked the caps lock key - it functioned at the grub password (wouldn't let me into grub if I enabled the caps lock key and entered my password....successfully entered grub when I toggled the caps lock key).
Edited the kernel command line (played with the caps lock key off/on).
In singleuser mode, I double-checked that the caps lock functioned as expected (it did).
Still....no love.
Code:
[root@goob /]#PASSWD
bash: PASSWD: command not found
(expected...double checking capslock status)
Code:
[root@goob /]#ps
   PID TTY            TIME CMD
 1449 tty1     00:00:00 bash
 1482 tty1     00:00:00 ps
(make sure caps lock was off)
Code:
[root@goob /]#passwd
Changing password for user root.
New UNIX password: <abcd1234>
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password: <abcd1234>
passwd: all authentication tokens updated successfully.
reboot. (to runlevel 3 - skipping the gdm/xdm/kdm...
Code:
Fedora release 9 (Sulphur) Kernel 2.6.27.12-78.2.8.fc9.i686 on an i686 (tty1)

goob login:root  (I know I'm in lowercase) :)
Password: <abcd1234>
Login incorrect

login:
password for root is still not recognized.

Looks like the only recourse is a reinstall (the recovery cd doesn't help here either).
I'd sure like to figure out the issue - but it looks like this one may have to be attributed to bad luck
Reply With Quote
  #10  
Old 18th February 2009, 12:54 PM
alicemcline Offline
Registered User
 
Join Date: Dec 2008
Posts: 47
Post

hi
if you think /etc/pam.d/system-auth has been messed up with probably i could provide you 1 but, default for fc10..

one way to change the password could be editting passwd, shadow files in single user mode.. (hey just guessing)

refer to http://aplawrence.com/Linux/lostlinuxpassword.html

hope this solves your problem..
Reply With Quote
  #11  
Old 18th February 2009, 01:54 PM
PatMcLJr's Avatar
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,131
this stuff is way over my head
but my 2 cents here
can you try and log in over ssh?

OK here's a penny back, 1 cents worth
Pat Jr
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #12  
Old 18th February 2009, 04:19 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
type the password in the user field (before you type 'root') to make sure the keyboard is mapped correctly.

If it still doesn't work, create a new root account from single user mode

Code:
adduser -o -u 0 -g 0 -d /root root2
passwd root2
and login using that
Reply With Quote
  #13  
Old 19th February 2009, 04:45 PM
arvinddeshpande Offline
Registered User
 
Join Date: Jun 2007
Posts: 122
Now I am thinking that for a root account the shell has been setup as /bin/nologin or something similar to disallow users to login.
This will allow users to change the password( same in this case for root ) but at the same time even after entering correct password it will not fork a proper shell like bash or ksh.

That is again one possiblity but over my head.....cause I can't think of any reason setting root shell to be un-spawn-able.

If this is not the case I would check /etc/nsswitch.conf to make sure it is using local password DB a.k.a. /etc/shadow to authenticate users/root.

In either case output of "getent passwd root" would prove helpful to see what root login shell is set up to.

Also looking at /var/log/messages and /var/log/secure might give a hint or two why this is failing.

Once again my 2 cents.
Reply With Quote
  #14  
Old 19th February 2009, 04:50 PM
arvinddeshpande Offline
Registered User
 
Join Date: Jun 2007
Posts: 122
God! You are able to post all that output from a Single User mode? I am talking about the first part of your post where you are changing your root passwd.
I thought Single user mode takes you to console where there is no cut-paste functionality available.

Are you able to login as a normal user? Can you do "su -" to become root in a console?
Reply With Quote
  #15  
Old 24th February 2009, 03:08 AM
bobrien Offline
Registered User
 
Join Date: Feb 2007
Posts: 10
I appreciate all the help, folks.

I reinstalled - restored my data - all is well.

I still don't know what caused the situation - but my money is on the qcpasswd.so.

Thanks again - I'm back up - but when you're unable to change root's passwd via singleuser mode - that scares the bejeeezuss out of me.
Reply With Quote
Reply

Tags
pam_passwdqc, passwd, password, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change in format to /etc/passwd and /etc/group? timcoote Using Fedora 3 31st May 2009 09:51 PM


Current GMT-time: 19:19 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat