SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 13th, 2001, 09:20 AM
Sheriff's Avatar
Sheriff Sheriff is offline
Oheim
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Austria
Posts: 69 Sheriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Unhappy File/Directory Permissions...

Hy-
I have a real problem understanding those permissions, especially when it comes to directories. I mean, how does the main dir permission affect the permisssions of the files in there and the sub dirs?
If anybody knows a tutorial I could read, or wants to attempt to explain it to me, please go ahead...
thanks
Sheriff
__________________
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

God is just hacker who rooted the world!

Reply With Quote
  #2  
Old June 13th, 2001, 06:39 PM
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
>> how does the main dir permission affect the permisssions of the files in there and the sub dirs?

Say you have a docroot /home/httpd/www

/home, /home/httpd and /home/httpd/www directories need SEARCH ACCESS for the user Apache runs as. So what is search access? Say Apache runs as nobody, then nobody user needs READ and EXECUTE in order to have search access. That is drwxr-xr-x.
Keep in mind, search access by all means doesn't mean write access. Say you have a directory test under your docroot /home/httpd/www/test as http://www.domain.com/test/ , and your script needs to write to this test directory, then test needs drwxr-xrwx (757) because user nobody needs READ, EXECUTE and WRITE permission.
Now that user nobody has Write access to it, say your script needs to append/modify a file called log.txt as /text/log.txt, then log.txt also need to give nobody write permission, that is rw-r--rw- (646).
It doesn't matter which subdirectory, all the top directory of this subdirectory still need read+execute (search access).

Is this clear?

Reply With Quote
  #3  
Old July 26th, 2001, 03:24 AM
Sheriff's Avatar
Sheriff Sheriff is offline
Oheim
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Austria
Posts: 69 Sheriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Unhappy Netter late than never, huh?

I'm sorry, I never thanked you for your help!!!!
It really was and is highly appreciated!
Regards
Sheriff

Reply With Quote
  #4  
Old July 26th, 2001, 03:37 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
It's never too late. In fact, I don't need any thanks from anyone, really. What I'd like is to see original poster follows up to the message and say something like: it worked!!, so whoever reads this message later on can ensure its correctness and benefit from it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > File/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