system ("mv $old_loc $new_loc");
chmod (0755, "$new_loc");
Called within script from browser. Move file to new location and chmod. Simple enough but this generates a "Operation not permitted" error. Appears to involve ownership conflicts (paths are all correct). The ownership of the file is ftp.user.
Any ideas? Change ownership of file before changing permissions?
Dan
chmod (0755, "$new_loc");
Called within script from browser. Move file to new location and chmod. Simple enough but this generates a "Operation not permitted" error. Appears to involve ownership conflicts (paths are all correct). The ownership of the file is ftp.user.
Any ideas? Change ownership of file before changing permissions?
Dan