LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How to set-up secure download directory (https://www.linuxquestions.org/questions/linux-security-4/how-to-set-up-secure-download-directory-585818/)

AndeAnderson 09-19-2007 09:29 AM

How to set-up secure download directory
 
I am working on setting up a secure directory for eBooks. I tried creating a root directory */download with permissions of 0444, password required and set-up a user name and password.

When I tried to access the directory I was denied access, without the option to even put in the password.

Could someone help me with this?

win32sux 09-19-2007 09:54 AM

In order to enter a directory, it needs to have executable permissions. A setting of 444 would mean only read permissions. Hence, it is completely normal that you would get a "permission denied".
Code:

win32sux@candystore:~$ mkdir /tmp/example
win32sux@candystore:~$ chmod 444 /tmp/example
win32sux@candystore:~$ cd /tmp/example
bash: cd: /tmp/example: Permission denied

win32sux@candystore:~$ chmod u+x /tmp/example
win32sux@candystore:~$ cd /tmp/example
win32sux@candystore:/tmp/example$



All times are GMT -5. The time now is 07:35 PM.