[Linux-Biella] Monitor per DSL
Mattia Rossi
linux@ml.bilug.linux.it
Thu, 25 Mar 2004 17:37:48 +0100
On Thu, 25 Mar 2004 16:50 +0100
Luca Bertoncello <lucabert@lucabert.de> wrote:
> Mattia Rossi <mattia@technologist.com> schrieb:
>
> > .. in setuid.c
> > commenta la riga:
> > if (setgroups(0, NULL)) { perror("Couldn't clear group list"); return 0; }
>
> Ed ora ottengo l'errore:
>
> [lucabert@bilbo wrapper]$ ./ipchainswrapper
> Couldn't setuid(0): Operazione non permessa
>
.. 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
....
Mattia