Re: mandb wrapper scripts
- To: Ethan Benson <erbenson@alaska.net>
- Cc: debian-devel@lists.debian.org
- Subject: Re: mandb wrapper scripts
- From: Fabrizio Polacco <fab@prosa.it>
- Date: Tue, 8 Feb 2000 16:50:12 +0200
- Message-id: <20000208165012.N449@none>
- In-reply-to: <20000208050130.G8996@plato.localdomain.local>; from erbenson@alaska.net on Tue, Feb 08, 2000 at 05:01:30AM -0900
- References: <20000206025410.A1475@socrates.localdomain.local> <20000207140315.D449@none> <20000207034450.B5936@plato.localdomain.local> <20000207224437.D23673@ulysses.dhis.net> <20000208121401.J449@none> <20000208112545.A29408@atrey.karlin.mff.cuni.cz> <20000208134656.L449@none> <20000208034503.D8996@plato.localdomain.local> <20000208035850.E8996@plato.localdomain.local> <20000208050130.G8996@plato.localdomain.local>
On Tue, Feb 08, 2000 at 05:01:30AM -0900, Ethan Benson wrote:
>
> this works.. really this time it does!
>
> its obviously too late...
It's never too late ...
#!/bin/sh -e
pgm=`basename $0`
edir=/usr/lib/man-db
cmd="${edir}/${pgm} ${1+$@}"
[ `id -u` = 0 ] || exec ${cmd}
su nobody -c "/bin/true" && exec su nobody -c "$cmd"
su -s /bin/true 2>/dev/null && exec su -s /bin/sh nobody -c "$cmd"
exec su man -c "$cmd"
If nobody else conplains loudly I will do -71 tomorrow (let's the world
go one round at least :-)
meanwhile, someone who tests this on hurd?
with or without shell for nobody!
fab
--
| fab@pukki.ntc.nokia.com fpolacco@prosa.it fpolacco@debian.org
| 6F7267F5 fingerprint 57 16 C4 ED C9 86 40 7B 1A 69 A1 66 EC FB D2 5E
| fabrizio.polacco@nokia.com gsm: +358 (0)40 707 2468
Reply to: