Shell – how to fix Permission denied on directory in unix

kshpermissionsshellunix

I have a ksh file which will download a zip file from the internet in the /tmp directory with name f.zip

Why do I get Permission denied?

$ ./downloadbcfi
Current name is /download.files.R1201BHtm.zip
/tmp/f.zip: Permissin denied

When I look at the permission on the /tmp directory everything is ok as below:
enter image description here

Best Answer

Use this command in command line tool

chmod 0777 /tmp/f.zip
Related Question