You don't need to create an id with a shell... it looks like FreeBSD su
doesn't include a -s option (how silly), but sudo should work to drop
priveleges, too.

Very odd, it probably is a taint restriction of some  sort, but I don't
see the logic of it.  (But, then, I never liked suid-perl and avoided
ever using it... if things needed esscalated privileges, I had then
fork/exec into a proper suid C program after I cleaned up input.  I
don't even like dealing with argv so I would specify all the args in
the exec to avoid shell-parsing.)

There is probabbly something lighter than sudo that would do the same
thing.   I see there is a 'daemon' command, but that won't set the
uid... i would think something like that would be used all over init
scripts (to chroot, then drop root, for example, so you don't have to
fill the jail with junk but can easily chroot daemons).

You may see them in other init scripts, but googling for 'bsd init
daemon' is filled with useless junk.


-- 
snarlydwarf
------------------------------------------------------------------------
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=35195

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to