Hello,

Am Tue, 02 Nov 2010 18:28:54 +0100
schrieb Csanyi Pal <[email protected]>:

> Then I must do the following commands to compile it and give it SETUID
> permission: 
> 
>  $ sudo gcc -ggdb -O DPResetBit0.c -o DPResetBit0
>  $ sudo chmod +s DPResetBit0

Let me just point out that there is never a need to run gcc as root
(and in fact it is usually a bad idea, as it hasn't been audited to be
safe). The right way to do this is something along these lines:

$ gcc -ggdb -O DPResetBit0.c -o DPResetBit0
$ sudo chown root:root DPResetBit0
$ sudo chmod +s DPResetBit0

... or just

$ make
$ sudo make install

(which I believe is one of the major reasons for having a separate
install target in the first place).

Mit freundlichen Grüßen aus Münster /
with kind regards - Kai Henningsen

-- 
SPUeNTRUP Software
An der Kleimannbrücke 52
D-48157 Münster, Germany

Reg:    Münster Nr.29047

Fon:    +49 700 CALL CATS (=22552287)
Fon:    +49 251 322 311 0
Fax:    +49 251 322 311 99

Web:    http://www.cats.ms
Mail:   [email protected]

_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to