Re: start-stop-daemon refuses to run as certain user
Ethan Benson <erbenson@alaska.net> writes:
> On 11/1/2000 Stefan Hornburg wrote:
>
> > start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
> > --user $USERNAME --exec $DAEMON -- -f
> >/etc/minivend/minivend.cfg
> ^^^^^^^^^^^^^^^^^
>
> I think what you need is --chuid $USERNAME rather then --user, see below:
>
> [eb@plato eb]$ /sbin/start-stop-daemon --help
>
> [...]
>
> -c|--chuid <name|uid[:group|gid]>
> change to this user/group before starting process
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> -u|--user <username>|<uid> stop processes owned by this user
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Argh. You are completely right. RTFM is not enough, RTFMT is required
(last T is thoroughly). Thank you very much for fixing my braindead !.
Ciao
Racke
--
LinuXia Systems, eCommerce and more => http://www.linuxia.de/ or 0511-3941290.
Unsere Partner: Cobolt NetServices (http://www.cobolt.ch), CAPCON Systemhouse
(http://www.capcon-systemhouse.com), ecoservice gmbh (http://www.ecoservice.de)
Unser Fokus liegt auf Open-Source-Software (MiniVend, Debian GNU/Linux, etc.)
Reply to: