Mailinglist Archive: opensuse-de (4938 mails)

< Previous Next >
Re: Aerger mit SBit
  • From: stefan.troeger@xxxxxxxxxxxxxxxxxxxxxxxxx (Stefan Troeger)
  • Date: Tue May 23 08:39:22 2000
  • Message-id: <20000523103922.A932@xxxxxxxxxxx>


On Tue, May 23 2000 at 08:41 +0200, Martin Haller wrote:

komischerweise funktioniert das SBit beim Wrapper-Programm
fuer mein Shell-Script nicht:

-rwsr-xr-x 1 cvs users 4274 May 22 15:49

...das ist der Wrapper, der das folgende Script mit system()


Lies mal `man 3 system':

Do not use system() from a program with suid or sgid privĀ­
ileges, because strange values for some environment variĀ­
ables might be used to subvert system integrity. Use the
exec(3) family of functions instead, but not execlp(3) or
---> execvp(3). system() will not, in fact, work properly from
programs with suid or sgid privileges on systems on which
/bin/sh is bash version 2, since bash 2 drops privileges
on startup. (Debian uses a modified bash which does not
do this when invoked as sh.)


To unsubscribe, e-mail: suse-linux-unsubscribe@xxxxxxxx
For additional commands, e-mail: suse-linux-help@xxxxxxxx

< Previous Next >
Follow Ups