What is going on?

ablack6596

Registered
I logged into root yetserday and know I am getting soem errors first when I try to open Fink in OroborX i get this
[localhost:~] nono% sudo dselect
Sorry, sudo must be setuid root.
[localhost:~] nono%
and when I open Classic I get this error also when i try to connect to my iDisk it know says my member name or password is incorect when I know it is right and it works on my iBook I think I know what happened it is that when I went into root I chose get info on Macintosh HD and said to make everyone have read and write privilages then told it to apply that to all iclosed folders so know some files have to be put back to read only but which ones?
error.jpg
 
It looks like you messed up the permissions on the sudo program.
This is what mine looks like

Code:
[eyechart:~] vanguard% ll /usr/bin/sudo
---s--x--x  1 root  wheel  107608 Dec 20 23:24 /usr/bin/sudo

To get yours to look like that try this:

Code:
su
{it will ask for the admin password}
chmod 4111 /usr/bin/sudo

Let us know how this works.

Vanguard
 
I can't do su :( I get this.
[localhost:~] nono% su
su: setgroups: Operation not permitted
Password:
Sorry
[localhost:~] nono%
 
ablack could you possibly shorten your signature ?????


As for soing su on the terminal, you need to have the root user activated I think :)
 
I hope it's as simple as not having root enabled. Normally, to enable root you use sudo. However, since sudo seems messed up on your system try this:


1) Open NetInfo Manager

2) Select "Users" from the second list.

3) Select a user you created and know the password for!

4) Double-click on the value across from "passwd" and copy it. It is the encoded form of the password for that user.

5) Select "root" from the list of users. Find the "passwd" value (default is "*") and paste over it.

6) Exit NetInfo Manager.

7) Open the Terminal and type "su root".

8) Enter the password for the user chosen above.

BTW, did you confirm that the permissions on sudo are wrong? If not, all this advice may be off track.

Matt W.
 
OK :( I will shorten my signature. But this is what I still get after doing what you said
login: setgroups: Operation not permitted
Welcome to Darwin!
[localhost:~] nono% su root
su: setgroups: Operation not permitted
Password:
Sorry
 
Hmm, just so that I'm clear. You followed those 8 steps and you still can't su to root.

Do I have that right?

Vanguard

PS Thanks for the shorter sig. :)
 
Can you give us the output of these two commands in the terminal?

Code:
ls -al /usr/bin/su
ls -al /usr/bin/sudo

This is what I get:

Code:
[eyechart:~] vanguard% ls -al /usr/bin/su
-r-sr-xr-x  1 root  wheel  14704 Dec 20 23:21 /usr/bin/su
[eyechart:~] vanguard% ls -al /usr/bin/sudo
---s--x--x  1 root  wheel  107608 Dec 20 23:24 /usr/bin/sudo
[eyechart:~] vanguard%

I'm expecting to see that you're missing the suid bit (the "s" in the permissions) from both programs.

The trouble is, with both su and sudo broken it's not obvious to me how we're going to fix it. You need to be root to change the permissions but you can't get to root until the permissions are fixed. (Chicken and egg problem)

I'm thinking that we might have to reboot into single user mode. However, you might need root access for that too. We might end up booting from a cd or calling apple support if I fail to help you.

Anyway, for now just let us know if I'm on the right track by running those two commands.
 
Here is what I get
login: setgroups: Operation not permitted
Welcome to Darwin!
[localhost:~] nono% ls -al /usr/bin/su
-rwxrwxrwx 1 root admin 14704 Dec 21 11:32 /usr/bin/su
[localhost:~] nono% ls -al /usr/bin/sudo
-rwxrwxrwx 1 root admin 107608 Dec 21 11:32 /usr/bin/sudo
[localhost:~] nono%


Bt the way i can login to root from the login window just not from the terminal.
 
Back
Top