AW: Re: [Linux-Biella] Monitor per DSL

Luca Bertoncello linux@ml.bilug.linux.it
Thu, 25 Mar 2004 19:15:43 +0000


Mattia Rossi schrieb:

> .. e allora non hai fatto il chmod
> 
> io ho (senza setuid bit):
> 
> gongolo<101 [tmp]>ll testiptables
> -rwxr-xr-x    1 root     root        18199 Mar 25 17:38 testiptables
> 
> con setuid:
> 
> gongolo<102 [tmp]>chmod +s testiptables
> gongolo<103 [tmp]>ll testiptables
> -rwsr-sr-x    1 root     root        18199 Mar 25 17:38 testiptables

Io ho:

[lucabert@bilbo wrapper]$ dir
totale 28
drwxr-xr-x    2 lucabert root         1024 mar 25 16:50 .
drwxr-xr-x    5 lucabert root         1024 mar 25 15:51 ..
-rwsr-sr-x    1 lucabert root        17642 mar 25 16:50 ipchainswrapper
-rw-r--r--    1 lucabert root          353 mar 25 15:52 ipchainswrapper.c
-rw-r--r--    1 lucabert root         4749 mar 25 16:49 setuid.c
-rw-r--r--    1 lucabert root         1011 mar 25 15:51 setuid.h
[lucabert@bilbo wrapper]$ ./ipchainswrapper
Couldn't setuid(0): Operazione non permessa

A me sembra di aver fatto il suid...

Ciao
Luca