a perfect example of this is the passwd command it runs as root
check the owner & perms of passwd   should match sudo

On Fri, Nov 20, 2009 at 12:31 AM, patricia campbell
<[email protected]> wrote:
> +10 that's the final step owner=root
> setuid bit in 1st set = when I run run me as that userid not current
> userid so setuid bit is set but running as aires (owner of sudo)
>
>
> On Fri, Nov 20, 2009 at 12:13 AM, Philippe Gauthier
> <[email protected]> wrote:
>> Le vendredi 20 novembre 2009 à 04:40 +0000, concepts a écrit :
>>> Yet, when I try anything, I STILL get;
>>>
>>> ar...@aries:~$ ls -l `which sudo`
>>> -rwsr-xr-x 1 aries root 123448 2009-06-22 12:14 /usr/bin/sudo
>>> ar...@aries:~$ sudo apt-get install super
>>> sudo: must be setuid root
>>> ar...@aries:~$
>>
>> Yes, the sudo program is running "setuid aries". The third and fourth
>> fields in the output of `ls' are the owner and group of the file,
>> respectively. A program with the setuid bit set (shown as an `s' in the
>> first field) will run with the privileges of the program file's owner.
>> So the owner of /usr/bin/sudo must be root for "setuid root" to work. To
>> change this back to correct settings, use:
>>
>>  chown root:root /usr/bin/sudo
>>
>> with root privileges (such as when running in recovery mode.)
>>
>> Good luck!
>>
>> --
>> Philippe Gauthier <[email protected]>
>> http://www.deuxpi.ca/
>>
>>
>>
>> _______________________________________________
>> mlug mailing list
>> [email protected]
>> https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
>>
>
>
>
> --
> ___..____._..___._..___.
> ...|...|___/..|..|......|..|___|
> ...|...|.....\..|..|___.|..|.....|
>
> "I am always doing what I cannot do yet in order to learn how to do
> it."   -Vincent Van Gogh
>



-- 
___..____._..___._..___.
...|...|___/..|..|......|..|___|
...|...|.....\..|..|___.|..|.....|

"I am always doing what I cannot do yet in order to learn how to do
it."   -Vincent Van Gogh
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca

Reply via email to