LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-14-2005, 07:21 AM   #1
bulldogzerofive
LQ Newbie
 
Registered: Oct 2004
Location: Germany
Distribution: Mandriva LE2005, Ubuntu Hoary Hedgehog
Posts: 26

Rep: Reputation: 15
su stopped working


I am running mandrake 10.1 with KDE 3.2.2. I don't know why this happened, but the "su" command just stopped working. I get the response:

su: cannot set groups: Operation not permitted

I can log into root initially, and then "su bob" and get into bob, but it will not let me back into root. Also, i can only get into other accounts if i am starting from root.

I think the problem might be a problem with the password recognition, since even if i create an account with a null password su will ask for one and then give me the same denial unless i am attempting to su as root.

Anybody know what is going on here?
 
Old 01-14-2005, 09:44 AM   #2
jerm1701
Member
 
Registered: Nov 2004
Location: Wisconsin
Distribution: Mandriva 2007
Posts: 94

Rep: Reputation: 15
I believe you have to be in the wheel group in order to su. You can use the groups command to see whether or not your in it.

Jeremy
 
Old 01-14-2005, 10:45 AM   #3
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Also verify that the SUID bit is set for su with ls -l /bin/su
 
Old 01-14-2005, 11:15 AM   #4
bulldogzerofive
LQ Newbie
 
Registered: Oct 2004
Location: Germany
Distribution: Mandriva LE2005, Ubuntu Hoary Hedgehog
Posts: 26

Original Poster
Rep: Reputation: 15
it says
-rwxrwxs-x 1 root root 20408 JUL 25 12:12 /bin/su*

which, if i am not mistaken, means user can read, write, and execute; group can read, write, and execute, others can execute.

Is this what i want to see?
 
Old 01-14-2005, 12:51 PM   #5
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
SUID needs to be set so it can run with root privileges for ordinary users like this:

-rwsr-xr-x 1 root root 52770 Oct 5 18:50 su

Set the SUID bit with

chmod u+s /bin/su

and try again
 
Old 01-17-2005, 02:05 AM   #6
bulldogzerofive
LQ Newbie
 
Registered: Oct 2004
Location: Germany
Distribution: Mandriva LE2005, Ubuntu Hoary Hedgehog
Posts: 26

Original Poster
Rep: Reputation: 15
Smile thanx

thanks, dude

that took care of it
 
  


Reply



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
Network stopped working enemorales Linux - Wireless Networking 5 08-24-2005 05:01 AM
X stopped working sueno Fedora 15 10-02-2004 12:23 PM
It stopped working. UmneyDurak Fedora 8 08-15-2004 02:41 PM
mozilla stopped working master Linux - General 13 07-05-2004 10:39 AM
My X just stopped working??? freeindy Linux - Newbie 4 11-30-2002 10:53 AM

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

All times are GMT -5. The time now is 09:29 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