Mats-Gxran Karlsen <matsg...@gmail.com> wrote:

> I'm trying to create a startup script that executes the transmission-daemon as
> a regular user.

> /usr/bin/sudo -u $USERNAME -p $PASSWD $DAEMON -g $CONFIGDIR

You are going about this the wrong way.  sudo(8) is primarily
designed to give additional priviledges to an unpriviledged user.
You want to use su(1):

su $USERNAME -c $DAEMON -g $CONFIGDIR

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to