MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
479 stars 61 forks source link

Permissions denied when executing mscs commands #330

Closed aidan-walden closed 1 year ago

aidan-walden commented 1 year ago

Note that the error does not prevent the command from successfully executing. For example, executing mscs start <world> will work and start the server, but the error still appears

find: Failed to restore initial working directory: /home/aidan: Permission denied

I have already run these commands found in the troubleshooting guide:

chmod -R u+w /opt/mscs
chown -R minecraft:minecraft /opt/mscs

I have attached my mscs.properties and mscs.defaults mscs.defaults.txt mscs.properties.txt

zanix commented 1 year ago

It could be that the minecraft user doesn't have permission to view /home/aidan. Try changing to a different directory before running mscs (like /home or /opt) and see if you get the same error.