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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-23-2005, 08:12 AM
|
#1
|
Member
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73
Rep:
|
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?
|
|
|
01-23-2005, 08:30 AM
|
#2
|
Member
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Rep:
|
is your user a member of the group wheel?
jrtayloriv
|
|
|
01-23-2005, 08:35 AM
|
#3
|
Member
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73
Original Poster
Rep:
|
um no... does that matter?
if so how do i change my group?
|
|
|
01-23-2005, 08:54 AM
|
#4
|
Member
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Rep:
|
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
|
|
|
01-23-2005, 09:13 AM
|
#5
|
Member
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73
Original Poster
Rep:
|
sorry im kind of a newbie...
when i did that, it said...
unknown group: wheel
|
|
|
01-23-2005, 10:25 AM
|
#6
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Rep:
|
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
|
|
|
01-23-2005, 10:52 AM
|
#7
|
Member
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73
Original Poster
Rep:
|
how do I change the group of a user?
|
|
|
01-23-2005, 01:15 PM
|
#8
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
01-23-2005, 06:37 PM
|
#9
|
Member
Registered: Nov 2003
Location: Cebu, Philippines
Distribution: Ubuntu
Posts: 73
Original Poster
Rep:
|
yeey!!! It worked! I'm saved!
thanks btmiller, and all you guys for the effort.
|
|
|
All times are GMT -5. The time now is 03:38 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
|
|