LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 07: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, 07:30 AM   #2
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

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

jrtayloriv
 
Old 01-23-2005, 07: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, 07:54 AM   #4
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
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, 08: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, 09:25 AM   #6
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
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, 09: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, 12:15 PM   #8
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 05: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



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 04: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 12:02 AM
thread switch results in kernel stack switch superstition Linux - General 1 05-17-2005 11:48 PM
How switch root to another user? Xiangbuilder Linux - Newbie 1 09-15-2003 07:19 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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