sytone / obsidian-remote

Run Obsidian.md in a browser via a docker container.
MIT License
1.32k stars 126 forks source link

Obsidian runs as root #80

Open gmag11 opened 10 months ago

gmag11 commented 10 months ago

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 image

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.

image

I can do a PR if you like

Regards