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

unzip: can't Set permissions of Directory #591

Closed
mskian opened this issue Feb 17, 2018 · 4 comments
Closed

unzip: can't Set permissions of Directory #591

mskian opened this issue Feb 17, 2018 · 4 comments

Comments

@mskian
Copy link

mskian commented Feb 17, 2018

How to fix this error?

while downloading a zip file from wget Method (bash script)
it will display the error Message while it unzipping the files/folders

unzip: can't set permissions of directory 'FOLERNAME/' Operation not permitted

PS: File unzipped successfully But I got this error while unzipping

@Grimler91
Copy link
Member

Looks like you are downloading it into the shared internal storage. Android doesn't allow certain properties for files there for security reasons so unzip and many other programs output warnings/information like that when operating in shared storage.

If you would download into $HOME instead then that message isn't shown.

@mskian
Copy link
Author

mskian commented Feb 17, 2018

@Grimler91 Let me Try & Update

@mskian
Copy link
Author

mskian commented Feb 17, 2018

@Grimler91 Perfect its working so we can view this kind of warnings/errors while installing the files Directly via wget, git, cURL on Device Storage & SDcard right?

@Grimler91
Copy link
Member

Yes, you get that warning/message in device storage/sdcard.

Try for example:

cd $HOME 
touch testfile
chmod u+x testfile 
# no message
cd /storage/emulated/0
touch testfile
chmod u+x testfile
# you get something like: chmod: changing permissions of 'testfile': Operation not permitted

@ghost ghost deleted a comment from Dimroid Sep 3, 2020
@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants