I've spent 2 days googling for an answer to this one, and come up short. So I'm
asking here in case someone knows the (obvious to some) simple answer.
The system is SME-server 6.0 final.
I've changed the user apache runs as (to jserver) and added that account name as
a user on the system, and added jserver to the user group which has access to
the relevant ibays.
>From php, doing
$result = mkdir ("$FOLDERPATH", 0777);
(where $FOLDERPATH = /home/e-smith/files/ibays/jobs/files/<some number>)
works just fine with the directory listing as drwxrwxrwx (0777).
If I then do
if(!move_uploaded_file($_FILES['userfile']['tmp_name'], $dest_file))
(snip error messages for clarity)
it uploads the file just fine, but permissions are set to -rw-------
If I then do
$result = chmod ("$dest_file", 0777);
if (!$result)
{
echo "<P>ERROR CHANGING PERMISSIONS FOR $dest_file";
}
I get the error message saying it couldn't change the permissions.
If anybody can offer some help, it would be greatly appreciated.
Amanda
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html