sytone/obsidian-remote

Obsidian runs as root

gmag11 opened this issue · 0 comments

gmag11 commented

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
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