Screen - Multiuser access + Start as root from other users
Hi!
I am trying to figure out how to write a bash script to start a screen session, turn multi-user on, allow about 11 users access to this screen, and then execute a command to startup our game server. It will need to be run as root (only way to start the game properly), but the script may be executed by a user other than the root account (I also only want the user to be able to run the one line of code to start the server, and not be able to do the other fun things the root account can do) Any ideas on how I would go about doing this? Cheers! -A |
You can run something like this to prompt for the root password, and then launch a detached screen session with the command start_game_server executed within:
Code:
gksu -u root 'screen -S gameOn -md start_game_server'& as root: Code:
screen -X multiuser on Code:
gksu -u root 'screen -X multiuser on' Code:
screen -X addacl bob |
Awesome thanks!
So, what would a screenrc config file look like? I looked at the file, But I was confused as to how to add the specific lines to the file, and how they should be implemented. Thanks! -A |
Quote:
Code:
multiuser on |
All times are GMT -5. The time now is 02:43 PM. |