By Keith Hurst on
Hi,
I have my file system set to PRIVATE FILE SYSTEM and all appears to be working well, with image and video uplaods into serparate folders via a customised CCK form.
However I need to manually move a couple of files into one of these folders via ftp and rightly so my Apache hosted server is not allowing it giving a Permission Denied message.
I have trawled through htaccess files up the chain but cannot find any which might influence this behaviour, so my quetion is where should I start looking... what is stopping me manually uploading a file.
My intention is to find out whats stopping this, override it whilst I need to upload these two files, then set it back to its default.
Thanks,
Keith
Comments
Anyone... TIA, Keith
Anyone...
TIA,
Keith
Probably the folders were
Probably the folders were created by the Apache web process (i.e. via Drupal) and are owned by that "user id" (typically something like 99) rather than your own "user id" on the system. Default folder permissions are 755 which basically means that the folder can be read and searched by any user on the system (subject to other constraints/restrictions that may be in place) but only written to by the owner - i.e. not by you, unless you do it via PHP/Apache.
The easiest thing might be to ask your host to temporarily grant global write permissions on the folder in question (i.e. set the permissions to 757, then change them back afterwards). You can also do clever things with "group" permissions that would permanently give you but no one else the ability to write to these folders but that might just confuse you and would be more work for your host.
The other way would be to use a PHP script such as "Shell Commander" - this emulates a command prompt and would let you alter the permissions yourself using the UNIX chmod command. However bear in mind that this is potentially a huge security hole so be very careful with it!
gpk
----
www.alexoria.co.uk