Re: egrep moved to /usr/sbin
On Thu, Jan 02, 2003 at 02:40:10PM -0500, Bob Hilliard wrote:
> Matt Zimmerman <mdz@debian.org> writes:
>
> > Hard-coding paths to programs is evil. Don't do it.
>
> Sometimes it is necessary. For instance, four years ago (before
> dictd was patched to drop root privileges), the init scripts used 'su
> nobody -c "start-stop-daemon . . .' A bug report was filed because
> on systems where su is secure-su, 'su nobody' gets a path that doesn't
> include /sbin. To fix the bug, I had to change that to 'su nobody -c
> "/sbin/start-stop-daemon . . .' .
An argument could be made that start-stop-daemon would be rightfully placed
in /bin, but this is not a problem in practice:
start-stop-daemon --chuid nobody ...
--
- mdz
Reply to: