Re: (Forcing?) Permissions on Web Server

2004-12-28 Thread Antony N. Lord

To make this ownership persistent,
change the enclosing folder's group to 'www'


Brilliant! Thanks for that - its working a treat.



Cheers, Antony.

--
==
==   =
=   Antony N. Lord   = http://antonylord.com =
=   [EMAIL PROTECTED]   = Perth, Western Australia  =
==   =
==


Re: (Forcing?) Permissions on Web Server

2004-12-28 Thread James Devenish
In message <[EMAIL PROTECTED]>
on Tue, Dec 28, 2004 at 11:29:58AM +0800, Antony N. Lord wrote:
> I have just rechecked - they are -rw-r- by default - this does 
> not seem adequate for the Apache webserver (at least for non local 
> clients).

That is certainly adequate for the Apache webserver *provided* that the
'group ownership' of the file is correct. FYI under Mac OS X Server, the
/etc/httpd/httpd.conf file specifies that Apache runs as User 'www' and
Group 'www'. So, the permissions -rw-r- would be entirely adequate
*if* the file's group is 'www'. To make this ownership persistent,
change the enclosing folder's group to 'www', too. If that doesn't work
on its own, try `chmod g+s foldername` as per my previous advice. Most
of this can be done either via the command line or via the Finder's Get
Info.

In message <[EMAIL PROTECTED]>
on Mon, Nov 08, 2004 at 07:54:33PM +0800, James Devenish wrote:
> (b) Change the group ownership of the file to whatever group the
> webserver runs as. You may also need to change the group ownership of
> the enclosing directory to make it stick (and set `chmod g+s .`, if
> necessary for the filesystem/file functions used with your FTP).




Re: (Forcing?) Permissions on Web Server

2004-12-28 Thread Antony N. Lord

Other than that, the question must be asked as to *why* the
privileges are not adequate in the first place.


I have just rechecked - they are -rw-r- by default - this does 
not seem adequate for the Apache webserver (at least for non local 
clients).


 At the very least, change the 'group' of the files so that they are 
readable by the web server.


The owner of the files is the current user "blah" (an Admin) and the 
group is "admin" - what should I change the group to?



 Also, are you still sure that the PC can't be fixed?


Yes, its truly awful software that runs the multichannel video card 
so I seem to be stuck with it.


Thanks for your help - I'm really keen to knock this one on the head!

Cheers, Antony.

--
==
==   =
=   Antony N. Lord   = http://antonylord.com =
=   [EMAIL PROTECTED]   = Perth, Western Australia  =
==   =
==


Re: (Forcing?) Permissions on Web Server

2004-12-27 Thread James Devenish
In message <[EMAIL PROTECTED]>
on Mon, Dec 27, 2004 at 06:26:56PM +0800, Antony N. Lord wrote:
> >It may also be worthwhile looking up info on Apple's site about "Folder
> >Action Scripts" . This should allow for an action where all files uploaded
> >to that folder automatically have their permissions changed to whatever you
> >need.
> 
> I gave this a crack - sadly it doesn't work. I'm not sure if its 
> because the file already exists in the folder (and is overwritten) or 
> because the file is FTPed there...
> 
> I shall have to keep trying...

Assuming Tiger has support for POSIX ACLs, this will be possible with
ACLs. Other than that, the question must be asked as to *why* the
privileges are not adequate in the first place. At the very least,
change the 'group' of the files so that they are readable by the
web server. Also, are you still sure that the PC can't be fixed?




Re: (Forcing?) Permissions on Web Server

2004-12-27 Thread Antony N. Lord

It may also be worthwhile looking up info on Apple's site about "Folder
Action Scripts" . This should allow for an action where all files uploaded
to that folder automatically have their permissions changed to whatever you
need.


I gave this a crack - sadly it doesn't work. I'm not sure if its 
because the file already exists in the folder (and is overwritten) or 
because the file is FTPed there...


I shall have to keep trying...
--
==
==   =
=   Antony N. Lord   = http://antonylord.com =
=   [EMAIL PROTECTED]   = Perth, Western Australia  =
==   =
==


Re: (Forcing?) Permissions on Web Server

2004-11-08 Thread Greg Sharp
It may also be worthwhile looking up info on Apple's site about "Folder
Action Scripts" . This should allow for an action where all files uploaded
to that folder automatically have their permissions changed to whatever you
need. I haven't used this method but others on my servers mail list have and
say it works fine. I imagine there's a few ways you could approach this.

Greg

On 8/11/04 10:54 PM, "James Devenish" <[EMAIL PROTECTED]> wrote:

> In message <[EMAIL PROTECTED]>
> on Mon, Nov 08, 2004 at 07:45:52PM +0800, Antony N. Lord wrote:
>> A PC here in the office uploads (FTPs) a webcam image to an OS X
>> machine (webserver) with -rw-r- permissions. This image can't be
>> seen when used in a HTML document.
> 
> (a) Fix the webcam software (which you have ruled out).
> 
> (b) Change the group ownership of the file to whatever group the
> webserver runs as. You may also need to change the group ownership of
> the enclosing directory to make it stick (and set `chmod g+s .`, if
> necessary for the filesystem/file functions used with your FTP).
> 
> 
> 
> -- The WA Macintosh User Group Mailing List --
> Archives - 
> Guidelines - 
> Unsubscribe - 
> 
> WAMUG is powered by Stalker CommuniGatePro
> 



Re: (Forcing?) Permissions on Web Server

2004-11-08 Thread James Devenish
In message <[EMAIL PROTECTED]>
on Mon, Nov 08, 2004 at 07:45:52PM +0800, Antony N. Lord wrote:
> A PC here in the office uploads (FTPs) a webcam image to an OS X 
> machine (webserver) with -rw-r- permissions. This image can't be 
> seen when used in a HTML document.

(a) Fix the webcam software (which you have ruled out).

(b) Change the group ownership of the file to whatever group the
webserver runs as. You may also need to change the group ownership of
the enclosing directory to make it stick (and set `chmod g+s .`, if
necessary for the filesystem/file functions used with your FTP).




(Forcing?) Permissions on Web Server

2004-11-08 Thread Antony N. Lord
A PC here in the office uploads (FTPs) a webcam image to an OS X 
machine (webserver) with -rw-r- permissions. This image can't be 
seen when used in a HTML document.


I can do a "chmod o+r image.jpg" but this only lasts until the next upload!

Is there anyway to force the permissions seeing that I can't change 
the way the PC FTPs the image?


Cheers, Antony.

--
==
==   =
=   Antony N. Lord   = http://antonylord.com =
=   [EMAIL PROTECTED]   = Perth, Western Australia  =
==   =
==