Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-16-2003, 12:33 PM   #1
LQ Newbie
Registered: Feb 2003
Location: Sweden
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Cannot su to root.

I have a strange problem, recently i havn't been able to su to root. I can login as root from console so the password is right. I have tried switching permissions on shadow and passwd without luck. And honestly i have no clue what to do next. Anyone have an idea?


su: Permission denied


/thx for any advice
Old 10-16-2003, 12:49 PM   #2
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Well....Cant tell u the exact solution...but I can suggest u some....

log in from console as root and check the permissions for 'su' command using 'ls -l /bin/su'

It may be the case that somehow, the execute permission has been taken off.....If that is the case you should see something in the first column....


The default permissions should however be:

rwsr-xr-x (where 's' refers to SUID permission).....

If thats not the case, give all users the execute permission for the /bin/su command .....

chmod u+s /bin/su

I hope that helps...


Old 10-16-2003, 01:32 PM   #3
LQ Newbie
Registered: Feb 2003
Location: Sweden
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
That doesn't seem to be the problem either. I get this output when i run ls -l /bin/su

-rwsr-xr-x 1 root root 24304 Sep 2 02:16 /bin/su

Same as you mentioned above.
Old 10-16-2003, 02:24 PM   #4
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
Check to see that you weren't somehow removed from the 'wheel' group. Membership to this group is required for anyone who wishes to be able to su to root.
Old 10-16-2003, 03:36 PM   #5
LQ Newbie
Registered: Feb 2003
Location: Sweden
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Thx Mike, that did the trick ! Im most grateful


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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM
Why does kppp.desktop require root userid for non-root user? Linux - Networking 4 08-27-2001 09:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 PM.

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