General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old July 26th, 2002, 12:57 AM
johnn johnn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Southern California, USA
Posts: 48 johnn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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.

Reply With Quote
  #2  
Old July 26th, 2002, 05:43 AM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > How do I setup the right folder permission for client?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway