-   Linux - Desktop (
-   -   problem with sudo (

mouse46 08-21-2006 01:38 PM

problem with sudo
I made a mistake while doing chown, I accidently used the -L function allowing the chown syslinks, shortly after I executed the command, the machine froze and after a reboot sudo doesn't work.

when sudo'ing I get

sudo: must be setuid root

how d I fix this?

also, how do I undo chown -L as some programs are not working ans internet on that machine has stopped too.

I'm using ubuntu 6.06
thank you

w3bd3vil 08-21-2006 02:28 PM

chown root:root /usr/bin/sudo
chmod 4111 /usr/bin/sudo

mouse46 08-21-2006 02:35 PM


Originally Posted by w3bd3vil
chown root:root /usr/bin/sudo
chmod 4111 /usr/bin/sudo

Thanks for the reply, but for this I get the following

sudo: must be setuid root

w3bd3vil 08-21-2006 02:36 PM

since you cant become root in here, you will have to boot into single user mode and do that.

mouse46 08-21-2006 08:14 PM

okay i've done that, now a new message comes up when trying to use sudo

sudo: /etc/sudoers is owned by uid 1000, should be 0

I tried to use the single user mode again to correct this but it didn't work. I got this message

chown: cannot access '/usr/sudoers': no such file or directory

So i'm guessing I need to create this now?

w3bd3vil 08-21-2006 08:22 PM

sudo: /etc/sudoers
access '/usr/sudoers'

its /etc/sudoers

mouse46 08-24-2006 10:49 AM

Oh sorry about that, I think I was more tired than I thought, it's working now. thank you.

All times are GMT -5. The time now is 10:56 PM.