Describe the bug
All files created using Obsidian inside container are created as root. This is because program is actually running as root.
To Reproduce
Create a new note in Obsidian.
Check owner
Expected behavior
Start Obsidian program as normal user with id as PUID variable
Screenshots
Desktop (please complete the following information):
Any
Additional context
I've tried to modify Dockerfile to run apt-get remove sudo, but it is not allowed as root user has no password.
I've used rm /usr/bin/sudo instead
After that I've removed sudo references in root/autostart and root/menu.xml and now Obsidian works as non root user. Removing sudo makes that xterm cannot scale to root, making the container more secure.
Describe the bug All files created using Obsidian inside container are created as root. This is because program is actually running as root.
To Reproduce
Expected behavior Start Obsidian program as normal user with id as PUID variable
Screenshots
Desktop (please complete the following information): Any
Additional context I've tried to modify Dockerfile to run
apt-get remove sudo
, but it is not allowed as root user has no password. I've usedrm /usr/bin/sudo
instead After that I've removed sudo references inroot/autostart
androot/menu.xml
and now Obsidian works as non root user. Removing sudo makes that xterm cannot scale to root, making the container more secure.I can do a PR if you like
Regards