[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: egrep moved to /usr/sbin



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 . . .' .

Regards,

Bob
-- 
   _
  |_)  _  |_    Robert D. Hilliard        <hilliard@debian.org>
  |_) (_) |_)   1294 S.W. Seagull Way     <bob@bobhilliard.net>
                Palm City, FL 34990 USA   GPG Key ID: 390D6559 
                                            



Reply to: