A couple of my items. Click to view more. I think you need something like this
 

 

3

2008-09-19

Linux Tip : Sorry, sudo must be setuid root

This was driving me batty. I had an issue with one of my linux webservers and it needed to be restored from a backup. Upon restoring the linux server I found my account that I had setup for sudo access no longer would accept the ’sudo su’ command or any sudo command for that matter. I was getting and error that read “Sorry, sudo must be setuid root“.

As I had removed the root account from accessing ssh I had to log into the physical server (lucky it’s just next to me!)

It turns out for some reason after the restore sudo had the wrong permissions.

To fix it was quite simple but took me ages to track down! (Helps if you know exactly what to search for)

I logged in as root and entered the following

chmod 4111 /usr/bin/sudo

All was fine in the land of oz after that!

This entry was posted on Friday, September 19th, 2008 at 11:11 am and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.

There are 3 Responses to “ Linux Tip : Sorry, sudo must be setuid root ”

1

Eugene Says

Now everyone is talking about the American economy and eclections, nice to read something different. Eugene


2

Jamie Le Souef Says

@Eugene -
Hi Mate, even here in Australia, it’s all about the US Economy and Elections.. thanks for reading my post.


3

Lynns Corner Says

Thanks for the tip, I had a similar problem. must be the backup program not preserving permissions properly or something.

I wonder what other files need fixing :(

Lynns Corners last blog post..Finished Off Red Hat Install


Track & Ping backs

    Leave a Reply

     

    recent projects

    My Boy (1)

    Title : My Boy (1)
    Media: Canon EOS 350D DSLR, Adobe Lightroom, Photoshop
    Description : A day out in the park with my world.

    Tasmania Corrective Services Badge

    Title : Tasmania Corrective Services Badge
    Media: Adobe Illustrator, Stitch
    Description : Badge for the Canine Drug Detection Unit

     

    Webb Martin Consulting Website Concept 1

    Title : Webb Martin Consulting Website Concept 1
    Media: Blog/Website, flash, css, xhtml, php
    Description : Website deisgn for Webb Martin Consulting

    Webb Martin Website Design Concept

    Title : Webb Martin Website Design Concept
    Media: Wordpress, CSS, xhtml, php
    Description : Concept website design for Webb Martin.

     

     

    site tags

     

    meta