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 deniedWhen I look at the permission on the /tmp directory everything is ok as below:
2 Answers
Use this command in command line tool
chmod 0777 /tmp/f.zip if you have ran your script as root and now as normal user. Then you may not have permission to read/write f.zip