su fails in console
Hi!
A couple of days ago I updated my system using up2date and since then I haven't been able to use su from console. Each time I type su, I get an error message at once saying "su: wrong password" even though I didn't even type a password. I've read many suggestions from others with similar problems, but no one has helped me yet. I have altered the /etc/group file, so that my user is in the wheel group: wheel:x:10:root,my_user I also read that I should uncomment one line in /etc/pam.d/su, so I did: # Uncomment the following line to require a user to be in the "wheel" group. auth required /lib/security/$ISA/pam_wheel.so use_uid I have also both chowned, chmoded and even chgrped /bin/su like some suggestions claimed would help: chown root:root /bin/su chgrp wheel /bin/su chmod 4750 /bin/su I also SUIDed /bin/su: chmod +s /bin/su And still I get the "su: wrong password" when entering su in console. Is there anything I haven't tried yet that will help? I'd like to know about it! :) Thanks |
su - root
|
Quote:
|
Does anyone have a suggestion to this problem?
|
do an
ldd `which su` and check the perms on the libs it uses ... ldd `which su` | awk '{print $3}' | xargs ls -l Cheers, Tink P.S.: Do NOT bounce your posts until 24 hours without a response have passed ... |
Quote:
lrwxrwxrwx 1 root root 13 okt 18 03:27 /lib/i686/libc.so.6 -> libc-2.3.2.so Should I change the perms so others than root can use it? Maybe the wheel group? Quote:
|
That's just a link, and the perms on it are fine.
Look at the file the link points to. ldd `which su` | awk '{print $3}' | xargs ls -lL to dereference it ... Cheers, Tink |
Quote:
-rwxr-xr-x 1 root root 1288460 nov 5 2003 /lib/i686/libc.so.6 Some different permissions there, but are they like they should be, you think? |
Yep, perms look perfectly sane to me....
But one thing is quite odd, sorry that I didn't notice that earlier ... my output looks different from yours on all machines: Here's my Slack-notebook: Code:
[tink@diggn:~]$ ldd `which su` | awk '{print $3}' | xargs ls -lL Code:
# ldd `which su` | awk '{print $3}' | xargs ls -lL Code:
$ ldd `which su` | awk '{print $3}' | xargs ls -lL it normal for the Slackware one not to have libpam* since Pat doesn't use it (yet) ... but that yours shouldn't't have ANYTHING but libc is bewildering ... Did you check your machine for rootkits lately? Cheers, Tink |
All times are GMT -5. The time now is 07:29 PM. |