[mohaa] run as non-root in Linux

jpoz jpoz at quickscribble.com
Mon Apr 21 14:45:27 EDT 2003


Thanks for the help! My security thanks you also!  ;-)

Just out of curiosity, is it possible to CHROOT MOHAA:SH? Or is it even
necessary?

John

----- Original Message -----
From: "Matrix" <Matrix at ServerXtreme.com>
To: "jpoz" <mohaa at icculus.org>
Sent: Monday, April 21, 2003 11:31 AM
Subject: RE: [mohaa] run as non-root in Linux


Definatly need to move those from running on root! :)

1. useradd <name>  (creates "/home/<name>")
2. passwd <name>  (set the pass)
2. Move the "MOHAA" folder to the "/home/<name>" dir or copy.
3. chown -R /home/<name>:/home/<name> <name>
4. su <name>  (..or login as the new <name>)
5. execute the startup script as the new <name>

If you have any shared libs needed, drop them in your libs dir.  MOH does
not need anything like this, but games like HalfLife and SOF2 need it to
avoid doing the darn "EXPORT <VAR>" commands before starting up the game.
...and I do not like adding them to each startup script as well... LOL

I do not use a GUI, so this is based on just using a console... I am sure
there are GUI tools to create users and move files and permissions, but as
you see it is easy to do it in the console. :)

-Matrix




Original Message -----------------------
Sorry if this is a stupid question, but I am a bit of a Linux novice.

I read in one of Ryan's beta text files that MOHAA:SH on Linux could be run
as a user other than root.

Could some tell me how to set this up, or point me to a good tutorial? Like,
if I create a new user (give him a unique ID and such), what will I have to
CHMOD and CHOWN and whatever.

Thanks in advance,
John





More information about the Mohaa mailing list