[asterisk-users] Access rights between AGI and Web server?
Jay R. Ashworth
jra at baylink.com
Wed Mar 26 09:41:10 CDT 2008
On Mon, Mar 24, 2008 at 01:57:53PM -0800, Mojo with Horan & Company, LLC wrote:
> P.S. This is not typical, right? If I do NOT have write access to a
> directory, I can still write to files that already exist in that
> directory, as long as I have write access to said files, I think...
> Maybe I'm just talking out loud, but it seems like if you had write
> access to temp.sqlite, you could do what you need to do, /unless/ sqlite
> tries to create a temporary file and mv it over the top of temp.sqlite,
> as this would require write access in the directory.
Unix will permit you to write to any already existing file to which you
have write permission, regardless of any permissions on directories in
the tree leading to it.
(I've just tested this on Linux 2.4: /tmp/jra/jra/test is writeable
even though /tmp/jra is mode *0*.)
To *create* a file, you need write permission in the directory in which
you want to create it, but not merely to write or read it.
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
Those who cast the vote decide nothing.
Those who count the vote decide everything.
-- (Joseph Stalin)
More information about the asterisk-users
mailing list