01-18-2010, 10:48 PM
hello i try to start linux server with certain user like that :
#!/bin/sh
st_user="MY USER"
chown $st_user -R /home/MY USER/srcds/cstrike/addons/sourcemod/logs/
cd /home/MY USER/srcds/
su - $st_user screen -A -m -d -S test ./srcds_run -game cstrike -console +maxplayers 32 +port 27023 +ip 1.2.3.4 -tickrate 66 +map de_dust2
but the server starts with root ... can someone help me to fix it
#!/bin/sh
st_user="MY USER"
chown $st_user -R /home/MY USER/srcds/cstrike/addons/sourcemod/logs/
cd /home/MY USER/srcds/
su - $st_user screen -A -m -d -S test ./srcds_run -game cstrike -console +maxplayers 32 +port 27023 +ip 1.2.3.4 -tickrate 66 +map de_dust2
but the server starts with root ... can someone help me to fix it