Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Date: Fri, 26 Nov 2010 14:21:51 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- References: <4CEB46A8.6000202@example.com> <AANLkTikFnEpNOH6xa48Lio3e0XSGRDD9tDyJ_SM01NLv@example.com> <4CED3243.6070002@example.com> <AANLkTi=eq-A8nXOXFxg63FBc4mNE1pjY-v+o7g-c=PVi@example.com> <87d3pubise.fsf@example.com> <4CEE84F0.3080807@example.com> <4CEF3663.5070001@example.com>
s smith writes: > On 11/25/2010 7:46 AM, Dave M G wrote: > > Looks like running an explicit chmod after creating the directory has > > solved the problem: > > > > system("chmod 777 -R $dirPath"); > > > > Though, I don't see why this should be necessary. If a user has the > > permission to change permissions, shouldn't that user be able to just > > delete the file anyway? > Does umask permissions take precedence over mkdir permissions? It might > be worth trying a umask 0 before the mkdir command. NO NO NO NO! WARNING, WARNING! Danger, Will Robinson! Danger! Warning, warning! Even if it works, you don't want to do that. It opens your system up to potential directory traversal and trojan attacks because there's a race condition. Sach is right; using chmod is just a band-aid, and those gangrene bacteria may already be hard at work in the open wound. Dave really really wants to fix the process owner/file owner skew. My guess is an old owner spec of nobody for the parent directory with set-uid bit set. (I can't remember whether that's supposed to make files inherit user ownership, but set-gid should work for inheriting group ownership.) And now apache is running under www-data or apache. Or something like that. Yes-I-took-my-melodrama-pill-today-why-do-you-ask-ly y'rs,
- Follow-Ups:
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- From: Darren Cook
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- From: s smith
- References:
- [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Dave M G
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Edmund Edgar
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Dave M G
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Sach Jobb
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Stephen J. Turnbull
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- From: Dave M G
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- From: s smith
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Next by Date: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Previous by thread: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Next by thread: Re: [tlug] Arrrg! Permissions driving me nuts in PHP [SOLVED]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links