Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run as normal user #1257

Open
Yippee38 opened this issue Jul 20, 2023 · 1 comment
Open

Can't run as normal user #1257

Yippee38 opened this issue Jul 20, 2023 · 1 comment

Comments

@Yippee38
Copy link

Yippee38 commented Jul 20, 2023

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants