I was wrong. Sorry.

I realize now that this cannot be your problem, sudo tell you that it
is not setuid if it's not.

  $ sudo chmod -s sudo
  $ sudo ls
  sudo: must be setuid root

>
> Thanks Christer, never saw that command before, but
> like I told Walter, a listing for sudo is indeed:
> ---s--x--1 2 root root                                
>               ^
>                             Is this supposed to be a
> one?

Did you type that line instead of cut'n paste?  If not, I fail to.
understand the 1 in ---s--x--1

If you ask about the first number directly after the permission
string, it is the number of hard links to that file. If it is other
than one it means that the file has an other name also, you can find
that by using -i to ls to show the inode-number, and then find the
other with find -inum

Example:

  $ pwd
  /usr/bin
  $ ls -li sudo
  8803772 ---s--x--x 2 root root 107240 2007-05-21 11:11 sudo*
  $ find . -inum 8803772
  ./sudo
  ./foo
  $ ls -li foo
  8803772 ---s--x--x 2 root root 107240 2007-05-21 11:11 foo*


Unfortunately I do not know what's wrong, try to strace sudo to see
what it does, remember that you have to bee root to strace a setuid
program. Look for

open("/etc/sudoers", O_RDONLY)          = 4

The 4 is what filedescriptor open returned, and is -1 for a failed
open. 


--
 Christer

-- 
[EMAIL PROTECTED] mailing list

Reply via email to