Slackware This Forum is for the discussion of Slackware Linux.
|
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-31-2007, 10:06 AM
|
#1
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Rep:
|
su no longer works
Hi all, back for more
Ok this is, hopefully, just a quick one.
Su no longer works either from the shell or console. I know I type in the pw correctly but it is always rejected.
However when I logout to the X session manager, select user root, I can login no problem.
So any ideas??
Thanks in advance, all advice much appreciated as always.
BashTin.
PS: On slack 11.0
Last edited by BashTin; 07-31-2007 at 10:08 AM.
|
|
|
|
07-31-2007, 10:19 AM
|
#2
|
|
Member
Registered: Mar 2006
Posts: 381
Rep:
|
caps lock , num lock , different keyboard layout?
|
|
|
|
07-31-2007, 10:20 AM
|
#3
|
|
Senior Member
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288
Rep:
|
Have you tried 'su -' instead of just 'su'?
|
|
|
|
07-31-2007, 10:34 AM
|
#4
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Original Poster
Rep:
|
caps lock..... no
num lock..... no
different keyboard layout....no. Tried all those under the settings menu, just the same result.
Have you tried 'su -' instead of just 'su'? Yeah tried that, still the same.
Incidentally, and I know I shouldn't, but if I just type the pw on the command line it is correct so it tends to suggest it is an authentication issue rather than an input issue, wouldn't you think?
Thanks, BashTin.
|
|
|
|
07-31-2007, 12:48 PM
|
#5
|
|
Senior Member
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288
Rep:
|
I would say it is either an authentication issue (pam may be blocking su to root) or something in your environment is causing you to immediately log out (that was why my first question). Look at http://www.redhat.com/docs/manuals/e...rivileges.html for more info. I know it is Red Hat and not Slackware, but the concepts should be the same.
|
|
|
|
07-31-2007, 02:42 PM
|
#6
|
|
Member
Registered: Mar 2006
Posts: 381
Rep:
|
slackware doesn't have pam, but i think an immediate logout is our best bet here.
|
|
|
|
07-31-2007, 02:52 PM
|
#7
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,325
|
Su sbit removed ?
What says:
|
|
|
|
08-01-2007, 02:01 AM
|
#8
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Original Poster
Rep:
|
This is the result of 'ls -l /bin/su'
-rws--x--x 1 root root 31776 2006-08-23 04:08 /bin/su*
Thanks for all the replies so far.
Ater I type the pw in all I get is the message 'sorry'.
BashTin.
|
|
|
|
08-01-2007, 02:26 AM
|
#9
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,325
|
It could be your system has been hacked and a malicious su is installed.
You may want to try rootkit hunter for figuring it out: http://sourceforge.net/projects/rkhunter/
|
|
|
|
08-01-2007, 04:28 AM
|
#10
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Original Poster
Rep:
|
Run rkhunter and comes up clean, except a few warnings about httpd time services.
|
|
|
|
08-01-2007, 05:02 AM
|
#11
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,325
|
Are other files in /bin also having a modify time around 2006-08-23 04:08 ?
|
|
|
|
08-01-2007, 07:00 AM
|
#12
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Original Poster
Rep:
|
jlliagre edited result of 'ls -lt /bin' and (don't flame me now) but this has been irritating me a while but I have just had to login to root from x session manager. BUT, if I recall correctly, this issue seemed to arise after I recompiled the kernel...
60 -rwsr-xr-x 1 root root 60576 2006-09-25 16:48 mount*
20 -rwxr-xr-x 1 root root 18368 2006-09-25 16:48 setterm*
452 -rwxr-xr-x 1 root root 459880 2006-09-25 16:48 sln*
32 -rwsr-xr-x 1 root root 31796 2006-09-25 16:48 umount*
52 -rwxr-xr-x 1 root root 51364 2006-09-20 02:46 gzip*
28 -rwxr-xr-x 1 root root 27880 2006-09-18 15:39 bzip2*
8 -rwxr-xr-x 1 root root 7576 2006-09-18 15:39 bzip2recover*
44 -rwxr-xr-x 1 root root 44856 2006-08-23 04:08 login*
32 -rws--x--x 1 root root 31776 2006-08-23 04:08 su*
192 -rwxr-xr-x 1 root root 192720 2006-08-21 12:27 tar*
116 -rwxr-xr-x 1 root root 115580 2006-08-21 12:27 tar-1.13*
32 -rws--x--x 1 root root 29364 2006-08-14 06:20 ping*
28 -rws--x--x 1 root root 26764 2006-08-14 06:20 ping6*
4 -rwxr-xr-x 1 root root 3884 2006-08-14 06:19 ipmask*
72 -rwxr-xr-x 1 root root 71984 2006-08-14 06:19 telnet*
68 -rwxr-xr-x 1 root root 66212 2006-08-14 06:18 ftp*
BashTin
|
|
|
|
08-01-2007, 09:32 PM
|
#13
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Original Poster
Rep:
|
Ok sorted it.
Of course the solution was obvious and simple....
change root pw!!
Thanks for all your help and suggestions, BashTin.
|
|
|
|
08-01-2007, 09:33 PM
|
#14
|
|
Member
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 13.37
Posts: 245
Original Poster
Rep:
|
Ok sorted it.
Of course the solution was obvious and simple....
change root pw!!
Thanks for all your help and suggestions, BashTin.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:27 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|