Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsidian runs as root #80

Open
gmag11 opened this issue Nov 17, 2023 · 0 comments
Open

Obsidian runs as root #80

gmag11 opened this issue Nov 17, 2023 · 0 comments

Comments

@gmag11
Copy link
Contributor

gmag11 commented Nov 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant