PDA

View Full Version : Linux Permissions from system command?


sexydawg
08-19-2002, 02:17 PM
I am using djpeg, pnmscale, and cjpeg to scale an image with PHP. When I use djpeg to decompress the image to a portable anymap, the resulting file is moded owner read and write only, no other permissions. As a result, pnmscale can not modify the image. When I try to CHMOD the temp files through FTP, it gives me a permission denied error. I am trying to figure out either how to make it so that the resulting temp files are created with the correct permissions or so that I can make a system call to change the modes on the temp files before I hand them off to pnmscale. Any insight? Thanks...

eisforian
12-16-2002, 02:18 AM
Who is the user/group that owns the temporary files that are created? What are the permissions on the file?

Paste the output from the FTP transcript of listing the directory if you can. Lines of the output will start similar to "-rw-r--r--".