Hi.

I have a script that creates a folder and a bunch of jpegs... however
instead of creating them into the user/group I'm in (let's call it
"myGroup") it creates them into "Nobody". The problem becomes that when I
ftp in to delete the files and idenitfy myself as myGroup, it fails to
delete any of the files or folders and spits out a 550 permission denied.
Having to delete the files from a script is a real pain too.

I'm wondering how I can create the files and folders in my scripts so that
they are under the un/grp of myGroup.


here's how the folder is being created:

  if (!is_dir($thumbnailsPath))
    mkdir ($thumbnailsPath, 0755);

and the files:

    $src = ImageCreateFromJpeg($defImagesPath.$fileWExt);
    $dst = ImageCreateTrueColor($maxWidth, $maxHeight);
    $white = ImageColorAllocate($dst, 255, 255, 255);
    ImageFill ($dst, 0, 0, $white);
    ImageCopyResampled($dst, $src, 0, 0, 0, 0, $thumbWidth, $thumbHeight,
$width, $height);

    ImageJpeg($dst, $defImagesPath."thumbnails/thumb_".$fileWExt, 100);
    ImageDestroy($src);
    ImageDestroy($dst);


I've tried chown and chgrp, but I get an error that tells me basically I
don't have sufficient privileges to do so.

Linux server
Apache 1.3.29 (Unix)
PHP 4.3.3

If you're going to ask me if suEXEC is installed and enabled I'm not sure...
You're going to have to instruct me how to check because I'm totally
ignorant on that subject. I see a suexec in a usr/sbin/ directory two levels
below my home directory:

-r-s--x---    1 root     apache      11312 Oct 23  2002 suexec

When I try "enable suexec" I get this:

jailshell: enable: suexec: not a shell builtin

Any advice?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to