arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
681 stars 144 forks source link

Can't run as normal user #1257

Open Yippee38 opened 1 year ago

Yippee38 commented 1 year ago

I had ark-server-tools running on my server fine for quite a while, but we stopped playing ark a few years ago. I recently replaced Ubuntu on my system with OpenSUSE Tumbleweed. This did not impact /home as it's on a different partition. I removed steamcmd and re-installed it. I installed arkmanager and restored my backed up .cfg files. To install those, I followed the wiki here and used the "manual install" for linux for steamcmd.

I've been having trouble with permissions if I run arkmanager as a normal user.

If I run "arkmanager printconfig" as a normal user, I get:

[  ERROR  ]     Your SteamCMD root seems not valid.
[  ERROR  ]     Your SteamCMD exec could not be found.
[  ERROR  ]     You do not have permission to write to the log directory.
Running command 'printconfig' for instance 'main'
[  ERROR  ]     Your SteamCMD root seems not valid.
[  ERROR  ]     Your SteamCMD exec could not be found.
[  WARN  ]  Your ARK server exec could not be found.
mkdir: cannot create directory ‘/home/steam’: Permission denied
[  ERROR  ]     The ARK SavedArks directory is not writable, and saveworld will fail
mkdir: cannot create directory ‘/home/steam’: Permission denied
[  ERROR  ]     The ARK Mods directory is not writable, and installmod will fail
[  ERROR  ]     You do not have permission to write to the log directory.

If I run it as the "steam" user, I do not get any errors. I've set up my steam user per the instructions. While logged in as the steam user, I was getting the same log directory error as above. To fix it I had to manually create the logfile directory, change it's group to users, add steam to the users group, and add write permissions for the group on the directory.

Is this normal? Do I have to change users over to the steam user any time I want to run arkmanager? If I should be able to run it as a normal user, what should I be looking at to fix this problem?

klightspeed commented 1 year ago

Do I have to change users over to the steam user any time I want to run arkmanager?

Yes, or run it using sudo -u steam