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

Resources folder of app is owned by root, app can't access files because of permissions #3918

Closed
chrisknepper opened this issue May 23, 2019 · 4 comments

Comments

@chrisknepper
Copy link

chrisknepper commented May 23, 2019

  • Version: 20.40.2

electron-updater: 4.0.6

  • Target: .deb (Linux: Ubuntu 18.04)

Basically the exact same thing as #786, but it seems recent. On Ubuntu 18.04, installing my app from the .deb, the install directory /opt/<app name> is owned by root, as are all files within. This seems like a recent change. My app interacts with files under /opt/<app name>/resources such as CRUD operations. Again, seems the same behavior as in the issue from years ago.

Is it now intended behavior that files under the resources folder should be owned by root and have permissions such that the user the app runs as cannot perform CRUD operations on files within? If so, why does this only happen on Linux?

permissions

@alex-dow
Copy link

I have a similar issue.

When running the built application, all is extracted into /tmp/.mount_[randomId] and everything in there is owned by root.

unfortunately, I have to start a service that is bundled by my application, but since the service is started by the user that started the application, it fails.

I'm not sure how to work around this without forcing a linux user to run the application as root.

@develar
Copy link
Member

develar commented Jun 27, 2019

@alex-dow Please try 21.0.3

@alex-dow
Copy link

alex-dow commented Jul 2, 2019

@develar unfortunately I can't do this quickly as I am using a plugin for the VueJS ecosystem that handles a lot of the boilerplate that comes with setting up a modern JS webapp these days.

Is there a workaround that does not involve upgrading?

@develar
Copy link
Member

develar commented Jul 2, 2019

Duplicates #2682

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

No branches or pull requests

3 participants