Hi there,
Does anybody know of some restriction that stops the apache user on
doing a dos2unix on a file upload from php? I'm getting 'permission
denied' on some temp file that it tries to create.
I tried doing it from the command line by manually placing a fake
upload file in /tmp:
[dave@willow dave]$ ls -ltr /tmp
-rw------- 1 apache apache 307 Mar 10 11:32 phpjmyaQR
[dave@willow dave]$ sudo -u apache dos2unix /tmp/phpjmyaQR
dos2unix: converting file /tmp/phpjmyaQR to UNIX format ...
Failed to open output temp file: Permission denied
dos2unix: problems converting file /tmp/phpjmyaQR
However if I change the owner and group to me, it will work fine:
[dave@willow dave]$ ls -l /tmp
-rw------- 1 dave dave 307 Mar 10 14:53 phpjmyaQR
[dave@willow dave]$ sudo -u dave dos2unix /tmp/phpjmyaQR
dos2unix: converting file /tmp/phpdave to UNIX format ...
[dave@willow dave]$
Red Hat Linux 3.2.2-5
Apache 2.0.40
Ta,
Dave