[SOLVED] Re: Execute startup script as user

2010-04-11 Thread Mats-Gøran Karlsen
On 10. apr. 2010, at 17.16, Christian Weisgerber wrote: 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

Re: Execute startup script as user

2010-04-10 Thread Jussi Peltola
On Sat, Apr 10, 2010 at 12:38:25PM +0200, Mats-Gxran Karlsen wrote: -rw-r- 1 root wheel 390 Jul 13 18:30 rc.transmission it's not executable The following is appended to /etc/rc.conf use rc.conf.local

Re: Execute startup script as user

2010-04-10 Thread Christian Weisgerber
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

Re: Execute startup script as user

2010-04-10 Thread Owain Ainsworth
On Sat, Apr 10, 2010 at 12:38:25PM +0200, Mats-G?ran Karlsen wrote: Hello. I'm running a headless OpenBSD server. I'm trying to create a startup script that executes the transmission-daemon as a regular user. Details: located in /etc/transmission/rc.transmission permissions

Re: Execute startup script as user

2010-04-10 Thread Abel Abraham Camarillo Ojeda
na...@mips.inka.de (Christian Weisgerber) wrote: 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

Re: Execute startup script as user

2010-04-10 Thread Rod Whitworth
On Sat, 10 Apr 2010 22:27:06 -0500, Abel Abraham Camarillo Ojeda wrote: 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