[mohaa] run as non-root in Linux

Matrix Matrix at ServerXtreme.com
Mon Apr 21 12:51:35 EDT 2003


hehe... but I still fuxOred it up.. ROFL

3. chown -R /home/[name]:/home/[name] [name]

should be:

3. chown -R [name]:[name] /home/[name]

-Matrix

Original Message -----------------------
You got there in the end though ;) thats all that counts...

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


Sorry for the mail spam, #3 still had an HTML tag on it... :-p

Original Message -----------------------
OOps, I used HTML tags on accident.. lol..  I changed this to "[" and "]"
this time.. :)  Sorry

Original Message -----------------------
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