Re: egrep moved to /usr/sbin
Matt Zimmerman <email@example.com> 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 . . .' .
|_) _ |_ Robert D. Hilliard <firstname.lastname@example.org>
|_) (_) |_) 1294 S.W. Seagull Way <email@example.com>
Palm City, FL 34990 USA GPG Key ID: 390D6559