On 8 May 2005 09:34:57 -0700,
el*************@yahoo.com wrote:
Basically I am trying to execute a perl script from a php script. I got
it to work by chmoding my perl script from 700 to 704 . But now I get
"permission denied errors" whenver my perl script tries to append/write
to a file?
704? Should be 755. (Better would be 750 and have the process
running the command be in the same group as the owner of the command.
Is this a perl or php configuration problem? The perl script runs fine
when called from any website. How can I change the script so when it is
called from php it has permissions to write to files?
It's not the script, it's the user running the program not having
permission to write to the directory or files.
Example User: Username Group: Groupname
Dir owned by SomeOtherUsername and Group SomeOtherGroupName with
permissions like
700
Put UserName in the SomeOtherGroupName Group and change the perms on
the group to 770. Change the perms on any file Username needs to
write to 660. (You can use 775 and 664 respectivly if you don't mind
others on your server being able to READ the files.
Thanks!
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one!
http://signup.databasix.com
================================================== =========================