question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start application because /usr/lib/{app}/resources/app is only readable by root

See original GitHub issue

What version of electron-installer-debian are you using? 0.5.1

What version of node and npm are you using? node 6.9.1 npm 3.10.8

What operating system are you using? ubuntu 16.04

Can you compile the example app successfully?

If not, paste here the output of the following commands:

Compilation is successfull, but I can’t start it:

http://d.pr/v/kvsw6H

$ git clone https://github.com/unindented/electron-installer-debian.git
$ cd electron-installer-debian/example
$ DEBUG='electron-installer-debian' npm run build

What did you do? Please include the configuration you are using for electron-installer-debian. I’m using ember-electron, which uses electron electron-forge, which uses electron-installer-debian. I have built my project for Linux and tried to install it.

What did you expect to happen?

I expected the app to be installed and me being able to run it

What actually happened?

The app is installed, but unable to start due to a permissions issue.

Seems like electron is trying to load app from /usr/lib/my_app/reousrces/app, but after unpacking the .deb file, this location gets the permissions to be only readable by root:

image

after I change permissions manually, the app starts fine:

image

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
unindentedcommented, Aug 11, 2017

The Brave browser is using this library, and they haven’t reported any issues: https://github.com/brave/browser-laptop/blob/07c6cd993a292edba2aad8710f8bf0d94467c81d/package.json#L194

Maybe check their build pipeline.

0reactions
jochenkirstaettercommented, Aug 11, 2017

Hi, Somehow something is missing somewhere. Even an application like Ghost Desktop has this issue as reported here: https://github.com/TryGhost/Ghost-Desktop/issues/274

How is it done to package the .deb with correct permissions?

Thanks, Jochen

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make files accessible only by root? - Ask Ubuntu
I'm using Ubuntu and I'm here to know is there any way to modify access of a specific application so that it can...
Read more >
Changing file permission in Linux so that only root can see ...
I want to open some kind of application/dialog box so that when I click that file/dir as normal user, it will prompt me...
Read more >
How to enable the root user or change the root password on ...
To learn about sudo , open the Terminal app and enter man sudo . The user account named ”root” is a superuser with...
Read more >
Can root/superuser read my read-protected files?
So, root can change to any other username using su (or sudo -iu username ) and will then be able to do anything...
Read more >
How to resolve the "Permission Denied" error in Linux
Remember that only root or users with Sudo privileges can change permissions for ... permissions define if the user can read, write, or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found