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

Temporary build directory created with insufficient permissions #133

Closed
lweberk opened this issue Mar 5, 2018 · 1 comment
Closed

Temporary build directory created with insufficient permissions #133

lweberk opened this issue Mar 5, 2018 · 1 comment
Labels

Comments

@lweberk
Copy link

lweberk commented Mar 5, 2018

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

What version of node and npm are you using?
8.9.4 / 5.6.0

What operating system are you using?
Debian GNU/Linux 9.x

Can you compile the example app successfully?
No

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

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

output.txt

What did you do? Please include the configuration you are using for electron-installer-debian.
–does not apply–

What did you expect to happen?
A debian package being built.

What actually happened?
Mode of created temporary directory of the package is being set short of the permissions dpkg requires; dpkg-deb: error: control directory has bad permissions 750 (must be >=0755 and <=0775).

My current umask is 0027, which is probably the cause.
Any way around other than defaulting to a more permissive umask?

Thanks,
lwk

@lweberk lweberk changed the title Temporary build directory created with with insufficient permissions Temporary build directory created with insufficient permissions Mar 5, 2018
@lweberk
Copy link
Author

lweberk commented Mar 5, 2018

Can confirm that the restricted umask is the culprit. Current workaround is to umask 022 and open a new sub-shell before proceeding to execute build.

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

No branches or pull requests

2 participants