[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: launch screen by root as another user
From: |
Folkert van Heusden |
Subject: |
Re: launch screen by root as another user |
Date: |
Sun, 20 Nov 2005 21:11:43 +0100 |
User-agent: |
Mutt/1.5.10i |
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 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 -d -S SOF2_svr /usr/local/games/sof2/sof2ded +set net_port
> $2 +exec $3 +set sv_pure 1 +set fs_game rocmod
>
> Does anyone know of a way to launch a screen process by root and have it
> owned by a different user?
> I have tried.....
> 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
>
> I also tried putting the screen command in a separate script and just
> run it.
>
> Basically, the process dies right after it is launched. No errors or
> warnings.
>
> In a nutshell, I'm trying to launch screen and a process by root, but as
> another user.
>
>
> _______________________________________________
> screen-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/screen-users
Folkert van Heusden
--
Try MultiTail! Multiple windows with logfiles, filtered with regular
expressions, colored output, etc. etc. www.vanheusden.com/multitail/
----------------------------------------------------------------------
Get your PGP/GPG key signed at www.biglumber.com!
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
signature.asc
Description: Digital signature