|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
How do I setup the right folder permission for client?
Hi,
Say if a client wants to upload an image to his website that will be stored in folder x, and he is the only person allowed to write to folder x, what is the correct file permission? I think my client is actually a world user since he uses the content management system I created to upload images and permission 777 is needed, but I think giving folder x a permission 777 is bad, not secure. How do you handle it? Can I do something with php? This is for an account in a shared server. Thanks, John Last edited by johnn : July 26th, 2002 at 03:12 AM. |
|
#2
|
|||
|
|||
|
If you know the user and group apache is using (Most of the time it's either nobody:nobody or www:www), and you have permission to do so, you can chown the folder.
for example: chown nobody:nobody folder/ for help, you can type: chown --help Since you're on a shared host you're probably not allowed to chown it (at least I'm not), but maybe you can send a mail to the admin and ask if he can do it for you?
__________________
Best Regards, Håvard Lindset |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > How do I setup the right folder permission for client? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|