Solved

ROOT password OK su password not!

Posted on 2004-09-18
5
598 Views
Last Modified: 2010-04-22
-I have been frequently going in and out of 'su' mode with my password to do some admin on my Mandrake 10.0 box.  

-I have also been able to login as "ROOT"  using the same password(with the nasty red screen and the "be careful" warning).

-I have not changed my password.

recently when I try to go to 'su' mode, I type in the password and it says the password is invalid.  I'm certain that I have typed it correctly (many times over, and I'm certain caps locks were off)

-I still am able to logout, and relog in as "root" with the same password!  So the password works if I totally log out and back in, but not if I try to go to 'su' from the command prompt. hmmm..

Why will this password not work with 'su', and how can I fix it?
The only thing I can think of is that I have just recently downloaded the security fixes (RPMs) from the Mandrake website.

Thanks..
0
Comment
Question by:Darrell Thomas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12092441
I don't use Mandrake and I don't know what changes the latest security fixed may have introduced, but I'd guess they've placed restrictions on the use of su. It could be that, like FreeBSD, the user must be listed as a member of a specific group, or that the user must be mentioned in some specific file. The man page for su (see 'man su') should tell you.

Of course it is also possible that the latest fixes broke something.
0
 
LVL 1

Author Comment

by:Darrell Thomas
ID: 12092468
I think the latest fix broke something.  I ended up re-installing the entire operating system (not too bad, I hadn't started putting much on there yet) and when I patched with the updates, I persistantly checked to see if I could use "su".  All of the updates were installed, and "su" has returned its functionality.  

Maybe a bad install of some of the updates.  There should be a way to easily "uninstall" them.

I shouldn't have to go back to a clean hard drive just to fix this, but in my case it worked because I didn't really lose any work.

dt
0
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 12092551
Actually it is possible to fix anything that happens to a Linux system short of a failed disk drive without re-installing. Even in a case where the OS won't boot it can be repaired from a rescue boot. The difficulty lies in figuring out what's broken/missing. Sometimes that means setting up an identical system and comparing what packages are installed on each, adding/removing packages on the damaged system to bring then into sync. Other times it may be just a matter of running an 'rpm -q --verify -a' and see what is shown as corrupt.

Having said that I will also say that one has to weigh the amount of time it will take for a fix against the "cost" of a re-install. I always examine the failing system enough to figure out which is the "cheapest" solution.
0
 
LVL 1

Author Comment

by:Darrell Thomas
ID: 12092634
true... very true...
0
 
LVL 1

Expert Comment

by:fcisler
ID: 12343072
i know this answer was accepted, but heres my $0.02.....does mandrake possible use a "wheel" group like i know freebsd does?
if user is not in group wheel, user cannot su.
I dont think i have ever seen a linux system do this, but i am a unix/bsd guy.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Fine Tune your automatic Updates for Ubuntu / Debian
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question