Can't su into root as normal user
I added a normal user when I first installed Gentoo and I was always able to su to get root access. But recently I have been unable to get root access using su. I have checked my /etc/group and I am in wheel.
Any ideas on how to fix this Thanks |
is su in /sbin or /bin?
|
/bin
|
what actually happens when you use the
su command? any error messages? |
I type in my root password and I get
Quote:
|
can you log in as root at all? Say from a text terminal.
|
{DELETED}
|
Quote:
|
I found this:
http://lists.debian.org/debian-user/.../msg00928.html seems like it's the same problem and has something to do with /etc/pam.d/su |
In AIX there is an option when creating a user : "user can su" (yes or not), and "another user can asu to this user" (yes or not).
Is there such an option in Linux ? |
Quote:
|
Admittedly know nothing of Gentoo and am newbie, but are you using KDE? Have you recently upgraded to 3.2.2? There is a known bug:
http://www.kde.org/info/3.2.2.php#binary Perhaps related? |
Sorry for the seriously late reply, I had the problem before kde was installed, I have the following
Code:
#%PAM-1.0 Code:
auth required /lib/security/pam_unix.so nullock |
another solution
I found this post while searching for a solution to the same problem. My circumstances were a little different and the solution that worked for me may be relevant to someone else.
My OS is CentOS 5.4 in a production environment with several users who have access to the server for development so adding users to the wheel group in /etc/group is not an ideal solution. We like to try to keep our install as standard as possible across all servers. To that end, here is what I did to troubleshoot checked permissions on /bin/su. They should be set as setuid...rwsr-xr-x. To make them this way, run chmod u+s /bin/su. If that works then cat or vi the /etc/pam.d/su file. When I compared this file on the system that didn't work with one that did, I found that the working system had the following line: #auth required pam_wheel.so use_uid On the server that didn't work, this line was there but it was not commented out. Changing it to comment it out fixed the issue for me. |
All times are GMT -5. The time now is 11:08 PM. |