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

set original permissions for unpacked files #51

Merged
merged 1 commit into from
Jul 22, 2015
Merged

set original permissions for unpacked files #51

merged 1 commit into from
Jul 22, 2015

Conversation

mephi42
Copy link
Contributor

@mephi42 mephi42 commented Jul 22, 2015

Currently the following scenario is broken:

developer@dev-machine$ makeself.sh --notemp app/ app.run app

...

root@user-machine# cd /opt && ~/Downloads/app.run
user@user-machine$ /opt/app/bin/app
bash: /opt/app/bin/app: Permission denied

The problem is that users on user-machine cannot access unpacked files,
since they are created with umask 077.

The proposed solution is to use the original umask for untar.

Currently the following scenario is broken:

  developer@dev-machine$ makeself.sh --notemp app/ app.run app

  ...

  root@user-machine# cd /opt && ~/Downloads/app.run
  user@user-machine$ /opt/app/bin/app
  bash: /opt/app/bin/app: Permission denied

The problem is that users on user-machine cannot access unpacked files,
since they are created with umask 077.

The proposed solution is to use the original umask for untar.
megastep added a commit that referenced this pull request Jul 22, 2015
Set original permissions for unpacked files
@megastep megastep merged commit be1c982 into megastep:master Jul 22, 2015
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

Successfully merging this pull request may close these issues.

2 participants