Re: launch screen by root as another user

2005-11-20 Thread zeroguy
On Sun, 20 Nov 2005 13:22:46 -0600 Gary Skowronek <[EMAIL PROTECTED]> wrote: > su $user -c screen -A -m -d -S SOF2_svr /usr/local/games/sof2/sof2ded > +set net_port $2 +exec $3 +set sv_pure 1 +set fs_game rocmod What is the shell in /etc/passwd for $user? If it's /bin/false or something, you nee

Re: launch screen by root as another user

2005-11-20 Thread Folkert van Heusden
What I do is: screen -d -m /usr/local/sbin/script where that script is: su user -c /usr/local/whatever/executable That way only root can still open the screen-session. On Sun, Nov 20, 2005 at 01:22:46PM -0600, Gary Skowronek wrote: > Hello! > > I run a 24x7 game server and I use screen to con

launch screen by root as another user

2005-11-20 Thread Gary Skowronek
Hello! I run a 24x7 game server and I use screen to connect to the process etc. However, I would like to start up the server by the use of init startup scripts. But, I do not want the process owned by root. It should be a standard user. Here is the command to launch the server. screen -A -m -