Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 25th, 2004, 12:30 PM
Trentj Trentj is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 Trentj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 28 sec
Reputation Power: 0
Send a message via Yahoo to Trentj
Directory permission help

Hi,

I have a directory that my php script uploads images to etc and the the database has links to the images.

But i have to make the directory 777 to let my script upload the images from the web.

First: am i doing something wront there or does it need to be writeable for public.

Second: I would like that directoy set so you can't look at it and see all images in there etc so what permission should i give it so my script can write to it but the world can't see it.

Thanks

Reply With Quote
  #2  
Old June 25th, 2004, 05:52 PM
brut brut is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 367 brut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 30 sec
Reputation Power: 2
RE: Directory permission help

Change ownership(chown) of the directory to that of the user that the webserver runs as. Could be 'nobody' or 'www' or anything else.

Reply With Quote
  #3  
Old June 25th, 2004, 05:58 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Directory permission help

wouldnt that be the root user...

Reply With Quote
  #4  
Old June 25th, 2004, 05:59 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Directory permission help

No I hope your not running the server as root. In redhat mine runs as 'apache'

Reply With Quote
  #5  
Old June 28th, 2004, 09:23 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Directory permission help

Sorry to be lame as a developer I have not set up this server or know too much about it. How do I tell who it is running as, my friend who set it up is also not 100%

Thanks
Trent

Reply With Quote
  #6  
Old June 28th, 2004, 06:07 PM
brut brut is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 367 brut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 30 sec
Reputation Power: 2
RE: Directory permission help

What OS are you under, and what webserver & versions?

Reply With Quote
  #7  
Old June 28th, 2004, 06:32 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: Directory permission help

One way is to look in your httpd.conf file is should be located somewhere around
/etc/httpd/conf/httpd.conf

Look in the user/group section you'll see something like this
User apache
Group apache

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Directory permission help


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 | 
  
 





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