LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2004, 07:38 PM   #1
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Rep: Reputation: 15
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
 
Old 10-19-2004, 09:27 PM   #2
Doomhammer
Member
 
Registered: Oct 2003
Location: Montreal Qc, Canada
Posts: 105

Rep: Reputation: 15
su - root
 
Old 10-20-2004, 06:41 AM   #3
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Doomhammer
su - root
Thanks, but I get the same result as before...
 
Old 10-20-2004, 04:35 PM   #4
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Original Poster
Rep: Reputation: 15
Does anyone have a suggestion to this problem?
 
Old 10-20-2004, 04:54 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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 ...

 
Old 10-21-2004, 10:44 AM   #6
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Tinkster
do an
ldd `which su` and check the perms on the libs
it uses ...

ldd `which su` | awk '{print $3}' | xargs ls -l
Thanks, I tried that and I got a response like this one:
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:
Originally posted by Tinkster
P.S.: Do NOT bounce your posts until 24 hours without
a response have passed ...
Sorry, won't happen again...
 
Old 10-21-2004, 11:43 AM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 10-21-2004, 04:21 PM   #8
rundjuling
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Tinkster
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 ...
Yeah, that gives me:
-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?
 
Old 10-21-2004, 05:56 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
-rwxr-xr-x  1 root root   83268 May 25 16:44 /lib/ld-linux.so.2
-rwxr-xr-x  1 root root 1250840 May 25 16:44 /lib/libc.so.6
-rwxr-xr-x  1 root root   18992 May 25 16:44 /lib/libcrypt.so.1
Here's one of our debian-servers:
Code:
# ldd `which su` | awk '{print $3}' | xargs ls -lL
-rwxr-xr-x    1 root     root        90144 Nov  6  2003 /lib/ld-linux.so.2
-rw-r--r--    1 root     root      1243076 Nov  6  2003 /lib/libc.so.6
-rw-r--r--    1 root     root        18636 Nov  6  2003 /lib/libcrypt.so.1
-rw-r--r--    1 root     root         9796 Nov  6  2003 /lib/libdl.so.2
-rw-r--r--    1 root     root        29420 Jan 22  2002 /lib/libpam.so.0
-rw-r--r--    1 root     root         7500 Jan 22  2002 /lib/libpam_misc.so.0
And a RedHat AS:
Code:
$ ldd `which su` | awk '{print $3}' | xargs ls -lL
-rwxr-xr-x    1 root     root       106912 Aug 31 10:42 /lib/ld-linux.so.2
-rwxr-xr-x    1 root     root        23388 Aug 31 10:42 /lib/libcrypt.so.1
-rwxr-xr-x    1 root     root        14868 Aug 31 10:42 /lib/libdl.so.2
-r-xr-xr-x    1 root     root         8548 Aug 25 02:19 /lib/liblaus.so.1
-rwxr-xr-x    1 root     root         8472 Aug 19 09:43 /lib/libpam_misc.so.0
-rwxr-xr-x    1 root     root        30488 Aug 19 09:43 /lib/libpam.so.0
-rwxr-xr-x    1 root     root      1568924 Aug 31 10:42 /lib/tls/libc.so.6
I don't know what the liblaus on the RH box does, and find
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP fails, IP fails, packet framing errors? alonsomosely Fedora 2 09-17-2004 11:22 AM
EsounD fails to start in Gnome and console... mrvikki Linux - Newbie 1 08-25-2004 06:56 PM
EsounD fails to start in Gnome or in console... mrvikki Linux - Software 1 08-23-2004 03:16 PM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 10:00 PM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration