Re: start-stop-daemon refuses to run as certain user
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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
Exit status: 0 = done 1 = nothing done (=> 0 if --oknodo) 2 = trouble
[eb@plato eb]$
--
Ethan Benson
To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/
Reply to: