LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2005, 08:12 AM   #1
lemuel
Member
 
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73

Rep: Reputation: 15
can't switch to root


hello


I cant seem to switch to root. i typed in "su", typed my password, and this is what came out:

$ su
Password:
setgid: Operation not permitted

I go "sudo passwd" and what came out is this

Sorry, sudo must be setuid root.


anyone here know how to fix this?
 
Old 01-23-2005, 08:30 AM   #2
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 365
Blog Entries: 1

Rep: Reputation: 44
is your user a member of the group wheel?

jrtayloriv
 
Old 01-23-2005, 08:35 AM   #3
lemuel
Member
 
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
um no... does that matter?

if so how do i change my group?
 
Old 01-23-2005, 08:54 AM   #4
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 365
Blog Entries: 1

Rep: Reputation: 44
you need to login in as root and run
Code:
gpasswd -a username wheel
where "username" is the name of the user you wish to su from. Log out of root, log back in as regular user and try to su then.

hope this helps,
jrtayloriv
 
Old 01-23-2005, 09:13 AM   #5
lemuel
Member
 
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
sorry im kind of a newbie...

when i did that, it said...
unknown group: wheel
 
Old 01-23-2005, 10:25 AM   #6
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Quote:
bash-2.05b$ groups
wheel audio games users
bash-2.05b$
That's how I check what groups I'm in for user.

Then there's some links in my sig (try "rute user") or look at this one

Maybe that helps a little ???

regards

John
 
Old 01-23-2005, 10:52 AM   #7
lemuel
Member
 
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
how do I change the group of a user?
 
Old 01-23-2005, 01:15 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Modify /etc/group. Bost most Linux distros don't require you to be in the wheel group to su to root (it's a BSD thing, that can be activated on Linux but usually isn't). Judging by your errors, it looks like your su and sudo binaries don't have the SUID bit set. Can you do "ls -l /bin/su" and "ls -l /usr/bin/sudo"./ The permissions on each should be 4755 (note the leading 4, which enables the SUID bit), owner root, and group root.
 
Old 01-23-2005, 06:37 PM   #9
lemuel
Member
 
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73

Original Poster
Rep: Reputation: 15
yeey!!! It worked! I'm saved!

thanks btmiller, and all you guys for the effort.
 
  


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
Can't switch root partition to a new HD jclu Linux - Hardware 1 11-28-2005 05:30 PM
How do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 01:02 AM
thread switch results in kernel stack switch superstition Linux - General 1 05-18-2005 12:48 AM
How switch root to another user? Xiangbuilder Linux - Newbie 1 09-15-2003 08:19 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 01:07 PM


All times are GMT -5. The time now is 02:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration