GameServerManagers / LinuxGSM-Docker

The Official LinuxGSM Docker image (experimental)
https://linuxgsm.com
MIT License
169 stars 73 forks source link

Mounting Azure file shares on containers sets root as owner #45

Open Thom-Ernst opened 2 years ago

Thom-Ernst commented 2 years ago

While running the machine and trying to start anything we receive the following error: [ FAIL ] Viewing details (servertype): Ownership issues found Information! The current user (linuxgsm) does not have ownership of the following files: User Group File root root /home/linuxgsm/serverfiles root root /home/linuxgsm/serverfiles/logs root root /home/linuxgsm/serverfiles/test

It is impossible for these file shares to change their ownership after creation, so the owner remains root, however access is still given, why is it important who is the owner for the folder? While the limitation of the used SMB protocol is not an issue to be solved by LinuxGSM, it also calls into question why a non-root user is being used? Usually containers just run in root.

LoV432 commented 2 years ago

line 230 of /home/linuxgsm/lgsm/functions/check_permissions.sh is where this check happens...You could try commenting it out but i have no idea if having ownership is necessary or not so it might break things