[bf1942] chown on start?
Reinder P. Gerritsen
reinder at strikerz.net
Fri Jun 27 02:28:45 EDT 2003
I use a generic starting script running from root that first makes sure
all files are owned by the user that runs the game, then fires up a
screen and changes to that specific user.
#Config
PATH='/usr/local/bf1942/'
USER='bf1942'
MOD='BF1942'
# Run
/bin/chown -R bfds.games $PATH
<insert any other permission handling programs such as chmod>
cd $PATH
/usr/bin/screen -dmS bfserver /bin/su $USER -c "./bf1942_lnxded
+statusMonitor 1 +game $MOD"
Or... Is this a security issue to the root user because screen is
running as root?
Gr.
Fox
-----Original Message-----
From: Casey Zacek [mailto:bfb-bf at bogleg.org]
Sent: Thursday, June 26, 2003 17:42
To: bf1942 at icculus.org
Subject: Re: [bf1942] chown on start?
Christian Lahme wrote (at Thu, Jun 26, 2003 at 05:27:22PM +0200):
>
> Hello Andreas,
>
> Is bf1942_lnxded doing a chown every start? Is it possible to set this
> by ServerSettings.con. Our System has to have different owners for the
> configfiles. The starting user is in a group with the file-owner, but
> they aren?t the same.
>
> Is there any possibilty to get this in next ob?
Only root can chown. I don't run bf1942 as root, so mine certainly
isn't chowning anything.
--
-- Casey Zacek (Zippo) Beer for Breakfast servers
66.111.111.66:27015 (CS multi-map) <http://bfb.bogleg.org/>
66.111.111.66:27016 (CS inferno/dust2/aztec/militia) Dallas, TX
66.111.111.66:14567 (BF1942)
More information about the Bf1942
mailing list