Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
  #1  
Old January 25th, 2002, 11:51 AM
hayden hayden is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Akron, Ohio
Posts: 98 hayden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 16 m 41 sec
Reputation Power: 8
file vs. directory permissions

(not sure if this is an apache question or not...)

I have a php script that overwrites text files. each file must have read and write permssion.

The server I am working with is Apache on FreeBSD. currently the directory containing the text files has permission

rwxr-xr-x (755)

and one of the text files I use for testing my script is

rw-r--rw- (646)

is there a way to set server permissions so that all files within a directory have read and write permission rather than manually setting each file to 646?

Reply With Quote
  #2  
Old January 25th, 2002, 10:19 PM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
-R

Reply With Quote
  #3  
Old January 26th, 2002, 01:45 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Chmod that dir to 757 and files to 646.

Or:

Chmod the dir to 755 and chown the files to be owned by nobody with a permission of 644.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > file vs. directory permissions


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 6 hosted by Hostway
Stay green...Green IT