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

upack 7zip,rar error #11

Open
liuchuang opened this issue Feb 24, 2017 · 1 comment
Open

upack 7zip,rar error #11

liuchuang opened this issue Feb 24, 2017 · 1 comment

Comments

@liuchuang
Copy link

pip install sflock in centos7,upack 7zip and rar file,the error message:
Traceback (most recent call last):
f = unpack(sys.argv[1])
File "/root/sflock/lib/python2.7/site-packages/sflock/main.py", line 49, in unpack
f.children = plugin.unpack(password, duplicates)
File "/root/sflock/lib/python2.7/site-packages/sflock/unpack/rar.py", line 33, in unpack
filepath, dirpath,
File "/usr/lib64/python2.7/subprocess.py", line 568, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

after chmod +x sflock/lib/python2.7/site-packages/sflock/data/zipjail.elf it will be ok。

@jbremer
Copy link
Member

jbremer commented Feb 24, 2017

Interesting. Fortunately I don't have a CentOS environment to test this, but do you think it'd make sense to add a os.chmod("sflock/data/zipjail.elf", ...) call to setup.py? And if so, what would be the desired permission (0555)?

psrok1 pushed a commit to CERT-Polska/sflock that referenced this issue Apr 6, 2023
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

2 participants