1 |
I was wrong. Sorry. |
2 |
|
3 |
I realize now that this cannot be your problem, sudo tell you that it |
4 |
is not setuid if it's not. |
5 |
|
6 |
$ sudo chmod -s sudo |
7 |
$ sudo ls |
8 |
sudo: must be setuid root |
9 |
|
10 |
> |
11 |
> Thanks Christer, never saw that command before, but |
12 |
> like I told Walter, a listing for sudo is indeed: |
13 |
> ---s--x--1 2 root root |
14 |
> ^ |
15 |
> Is this supposed to be a |
16 |
> one? |
17 |
|
18 |
Did you type that line instead of cut'n paste? If not, I fail to. |
19 |
understand the 1 in ---s--x--1 |
20 |
|
21 |
If you ask about the first number directly after the permission |
22 |
string, it is the number of hard links to that file. If it is other |
23 |
than one it means that the file has an other name also, you can find |
24 |
that by using -i to ls to show the inode-number, and then find the |
25 |
other with find -inum |
26 |
|
27 |
Example: |
28 |
|
29 |
$ pwd |
30 |
/usr/bin |
31 |
$ ls -li sudo |
32 |
8803772 ---s--x--x 2 root root 107240 2007-05-21 11:11 sudo* |
33 |
$ find . -inum 8803772 |
34 |
./sudo |
35 |
./foo |
36 |
$ ls -li foo |
37 |
8803772 ---s--x--x 2 root root 107240 2007-05-21 11:11 foo* |
38 |
|
39 |
|
40 |
Unfortunately I do not know what's wrong, try to strace sudo to see |
41 |
what it does, remember that you have to bee root to strace a setuid |
42 |
program. Look for |
43 |
|
44 |
open("/etc/sudoers", O_RDONLY) = 4 |
45 |
|
46 |
The 4 is what filedescriptor open returned, and is -1 for a failed |
47 |
open. |
48 |
|
49 |
|
50 |
-- |
51 |
Christer |
52 |
|
53 |
-- |
54 |
gentoo-user@g.o mailing list |