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? |
is your user a member of the group wheel?
jrtayloriv |
um no... does that matter?
if so how do i change my group? |
you need to login in as root and run
Code:
gpasswd -a username wheel hope this helps, jrtayloriv |
sorry im kind of a newbie...
when i did that, it said... unknown group: wheel |
Quote:
Then there's some links in my sig (try "rute user") or look at this one Maybe that helps a little ??? regards John |
how do I change the group of a user?
|
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.
|
yeey!!! It worked! I'm saved!
thanks btmiller, and all you guys for the effort. |
All times are GMT -5. The time now is 11:50 AM. |