Gentoo Archives: gentoo-user

From: Flophouse Joe <flophousejoe-gentoo-user-xdzvne@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Several questions -- various topics
Date: Mon, 20 Nov 2006 23:34:37
Message-Id: Pine.LNX.4.64.0611201823050.9804@becky16.halibutdepot.org
In Reply to: Re: [gentoo-user] Several questions -- various topics by Mick
1 On Mon, 20 Nov 2006, Mick wrote:
2 > On Monday 20 November 2006 21:20, Mrugesh Karnik wrote:
3 >> On Tuesday 21 November 2006 01:20, Mick wrote:
4 >> Can't run scripts suid on Linux afaik.
5 > Hmm, shows I haven't tried it yet . . . Don't know if there's a way of
6 > bypassing the restriction (I think you can in Unix?).
7
8 Linux purposefully ignores the setuid bit on shell scripts, so there's
9 no way to get around this restriction. This is for the best.
10
11 There are-- or were-- other UNIXes that honored the setuid bit on shell
12 scripts by default, but I haven't come across any of them in the last five or so years.
13
14 If you really needed to run a shell script as root, you could try using
15 djb's "envuidgid" [1] available in Gentoo package
16 sys-process/daemontools . But before you do so, remember that there's a
17 good reason why so many UNIXes have disabled this feature; you might
18 think of a better way to solve your problem.
19
20 [1] http://cr.yp.to/daemontools/envuidgid.html
21
22 Joe
23 --
24 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Several questions -- various topics Flophouse Joe <flophousejoe-gentoo-user-xdzvne@××××××××××××.org>