Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

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

Open
Thom-Ernst opened this issue Feb 4, 2022 · 1 comment
Open

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

Thom-Ernst opened this issue Feb 4, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Thom-Ernst
Copy link

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.

@issuelabeler issuelabeler bot added the question Further information is requested label Feb 4, 2022
@LoV432
Copy link

LoV432 commented Feb 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants