Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Like the subject says, I can no longer "su root". I'm running Slackware 10.1 and it goes like this...
Code:
slackaddict@slackbox:~$ su
Password:
Sorry.
slackaddict@slackbox:~$
I'm entering the password correctly and if I CTRL+ALT+F6 to a terminal I can login directly as root with no problems. Also, if I click on "Administrator Mode" in the KDE Control Center it keeps telling me the password I enter is wrong, but I know its right.
I think this may have something to do with recently installing Ubuntu as a dual boot. Ubuntu handles the root account differently and it may have changed some config file somewhere.
Good suggestion XavierP, unfortunately I'm still stuck.
I thought you were on to something because I know in KDE you can switch between multiple keyboard layouts, which would explain why I could login in a text terminal but not in X. However if I type the password in an editor it shows up correctly every time, including symbols such as '$' and '!'.
I think this is a case of my user account no longer being allowed to su, even if the password is correct. I don't know if thats possible but it seems reasonable, disabling su for general users would be a good security move in some cases.
In the terminal (not KDE), login as your user and then try to su. If it still complains about the password being wrong then I'd suggest that somehow you've managed to remove yourself from the wheel group. This would also have removed your permission to use su
As for your problem, what did you do right before you couldn't su? Did you upgrade or install any packages? Reinstalling the shadow package most likely fixed and reverted a configuration file for you possibly.
But you should really setup sudo and using it instead of plain ol su. It's more secure as you don't need to use root's password and you won't be logging in directly as root when you do su as root.
trickykid, you're right about using sudo instead of su. I usually do, I only noticed the su problem when I was trying to access "Administrator Mode" in the KDE Control Center.
As for what caused the problem in the first place, I can only think it has something to do with installing Ubuntu on a separate partition. I don't see how, because the only partitions that were shared were /home and /usr/local, but I don't have any other ideas
Also, I have seen an article about using pam to restrict which users can use su. I don't know anything about pam but if some distros come set up like this by default then you may need to be in the wheel group to su.
Anyway, the system is running beautifully again now, thanks guys.
Originally posted by slackaddict trickykid, you're right about using sudo instead of su. I usually do, I only noticed the su problem when I was trying to access "Administrator Mode" in the KDE Control Center.
As for what caused the problem in the first place, I can only think it has something to do with installing Ubuntu on a separate partition. I don't see how, because the only partitions that were shared were /home and /usr/local, but I don't have any other ideas
Also, I have seen an article about using pam to restrict which users can use su. I don't know anything about pam but if some distros come set up like this by default then you may need to be in the wheel group to su.
Anyway, the system is running beautifully again now, thanks guys.
Installing another OS on the same computer would not affect su in any way shape or form. The only thing that can occur when installing multiple OS's on the same computers is screwing up the MBR or boot loader.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.