assigning permission to folders in mkdir
Moderator: General Moderators
assigning permission to folders in mkdir
Hello
I was wondering if someone could give me an insight to the value that I should give as permission when I create folders.
What permission should I give to folders?
READ - does it allow people to read the content of the folder?
WRITE - does it allow people to delete the folder?
EXECUTE - does it allow people access into the folder?
I am not certain what the different access rights mean for a folder.
So if I would want to me and people in my group permission to only enter a folder and read its contain, should I set the permission to: 0550
regards
Jason
I was wondering if someone could give me an insight to the value that I should give as permission when I create folders.
What permission should I give to folders?
READ - does it allow people to read the content of the folder?
WRITE - does it allow people to delete the folder?
EXECUTE - does it allow people access into the folder?
I am not certain what the different access rights mean for a folder.
So if I would want to me and people in my group permission to only enter a folder and read its contain, should I set the permission to: 0550
regards
Jason
I came here after reading the manual on chmod.
I was hoping someone could give me a better insight.
I also would like to ensure the following:
- People will not be able to execute files on the server after uploading them
- People will not be able to see the file structure of the server by browsing between folders (typing a direct folder name in the address bar)
regards
I was hoping someone could give me a better insight.
I also would like to ensure the following:
- People will not be able to execute files on the server after uploading them
- People will not be able to see the file structure of the server by browsing between folders (typing a direct folder name in the address bar)
regards
I am not talking about the ability of users to request random files.
I am trying to understand how to solve two problems:
1) I don't want people to browse through my file structure using their browser. They can see the directory structure and the content of each directory like this. Will not giving any folder permissions to the rest of the world will do that?
2) I would want the users to be able to execute files after they upload them to the server
I am trying to understand how to solve two problems:
1) I don't want people to browse through my file structure using their browser. They can see the directory structure and the content of each directory like this. Will not giving any folder permissions to the rest of the world will do that?
2) I would want the users to be able to execute files after they upload them to the server
(1) If you have control of your server you can set <Directory> options. If not an .htaccess file with:
Order deny,allow
deny from all
See http://httpd.apache.org/docs/howto/htaccess.html or google around for .htaccess tutorials.
Your host might not allow you to set .htaccess files.
Order deny,allow
deny from all
See http://httpd.apache.org/docs/howto/htaccess.html or google around for .htaccess tutorials.
Your host might not allow you to set .htaccess files.
Tell me how they can see the structure and content of each directory if the directory is not public available? It would only be possible if your script provided them access to do so.jasongr wrote: 1) I don't want people to browse through my file structure using their browser. They can see the directory structure and the content of each directory like this. Will not giving any folder permissions to the rest of the world will do that?
Instead of using [php_man]readfile[/php_man] use [php_man]require[/php_man] or [php_man]include[/php_man] in the private-to-public scriptjasongr wrote: 2) I would want the users to be able to execute files after they upload them to the server