easy-wi / developer

Gameserver, Voiceserver Webinterface
https://easy-wi.com
GNU General Public License v3.0
228 stars 82 forks source link

Fix Valve servers #806

Closed Pandry closed 8 years ago

Pandry commented 8 years ago

The valve servers have some problems: When the panel makes the link, it doesn't make the steamclient.so link, so I've found how to fix... (And I'm actually trying to make it in the panel)

mkdir /home/<userdir>/.steam/
mkdir /home/<userdir>/.steam/sdk32/
ln -s /home/<easywi-masteruser>/masterserver/steamCMD/linux32/steamclient.so /home/<userdir>/.steam/sdk32/steamclient.so
chmod -R 777 /home/<userdir>/.steam/
ulrichblock commented 8 years ago

I guess chmod 777 is way to much and also probably a security problem. Can you please check if 700 is sufficient?

Which files are placed in the folder by the lib itself?

Pandry commented 8 years ago

Maybe the 777 is too much, a 700 should be fine. (anyway, talking about security, it's just a dlopen(it should be a library), so it doesn't require a lor of things) Answer to the 2nd question: just the "steamclient.so"

Pandry commented 8 years ago

Just checked... With chmod 700 it gives: /home//.steam/sdk32/steamclient.so: cannot open shared object file: Permission denied But, once i try to do ls to list again the file, the sdk32 folder is empty... I've tryed to copy it too... It get deleted anyway...

ulrichblock commented 8 years ago

I tried it myself. The server seeks the file in the home of the master server. Meaning following with the master account was sufficient:

mkdir -p ~/.steam/sdk32/
chmod 750 -R ~/.steam/
ln -s ~/masterserver/steamCMD/linux32/steamclient.so ~/.steam/sdk32/
Pandry commented 8 years ago

Hooh, thx for the fix <3

ragnos commented 8 years ago

Not fixed.

steamclient.so needs to be placed inside $USERs .steam/sdk32, not the one of $MASTERUSER.

So you need to place a symlink in $USERHOME/.steam/sdk32, but there it will be deleted at server restart.

Forum Thread