Skip to content

Commit

Permalink
Run Game Servers Under Different Users Linux (#44)
Browse files Browse the repository at this point in the history
* Security Changes

* Additional Security - Run Game Servers in Limited User Account

* Apply New Group Right Away

* Apply Proper Permissions to FTP User

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Use Different Linux User Per Home

* Minor Changes

* Minor Changes

* Minor Changes

* Minor Changes

* Minor Changes

* Minor Changes

* Minor Changes

* Cleaned up Per DieFeM

* Fix sudo prompt stderr issue in some linux versions (ubuntu 18.04 confirmed)

* Fix sudo prompt stderr issue in some linux versions (ubuntu 18.04 confirmed)

* Fix sudo prompt stderr issue in some linux versions (ubuntu 18.04 confirmed)

* Add Trim Routine

* Revert to using prompt

* Cleanup and Handle Deleting User

* Cleanup and Handle Deleting User

* Cleanup and Handle Deleting User

* Cleanup and Handle Deleting User

* Apply suggestions from code review

13 suggestions, 12 are the same repeated, the parameter for sudo prompt needs a string. <prompt>.
The other one is an ownership change that is done twice, one as the agent, and right after it, one with sudo.

Co-authored-by: DieFeM <danifmdelloret@hotmail.com>
  • Loading branch information
own3mall and DieFeM authored Oct 5, 2022
1 parent 2081df6 commit 1497074
Show file tree
Hide file tree
Showing 3 changed files with 370 additions and 85 deletions.
1 change: 1 addition & 0 deletions agent_conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ then
prefs="${prefs}\tftp_method => '${ftpMethod}',\n"
prefs="${prefs}\togp_autorestart_server => '${autoRestart}',\n"
prefs="${prefs}\tprotocol_shutdown_waittime => '10',\n"
prefs="${prefs}\tlinux_user_per_game_server => '1',\n"
if [ "X${proftpd}" == "Xyes" ]
then
prefs="${prefs}\tproftpd_conf_path => '${proFTPdConfPath}'\n"
Expand Down
Loading

0 comments on commit 1497074

Please sign in to comment.