Re: Bug#274229: System accounts with valid shells
On Thu, Jan 09, 2014 at 08:50:55AM -0800, Steve Langasek wrote:
> For a lightweight, PAM-less uid switcher in Debian's base system, you
> probably want to use start-stop-daemon --chuid.
Unless you might need to run in contexts (e.g. debootstrap, or chroots
of various kinds) where start-stop-daemon is disabled. This is why I
changed man-db to use a tiny perl wrapper instead.
perl -e '@pwd = getpwnam("man"); $( = $) = $pwd[3]; $< = $> = $pwd[2];
exec "/usr/bin/mandb", @ARGV' -- "$@" || true
--
Colin Watson [cjwatson@debian.org]
Reply to: