Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

PHP/Scripting on *nix Q

Thread Tools
 
Search this Thread
 
Old 05 February 2003, 11:19 AM
  #1  
dsmith
Scooby Regular
Thread Starter
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Question

I would like a php script on my web-site to be able to edit a text file uploaded via ftp.

Default permission for ftp'd files are:-

rw-r--r-- User="bob" Group="www"

PHP runs as nobody so can read the file but not change it.
If I login as "bob" and manually change to rw-rw-r--, then the PHP works as I want ("nobody" member of "www" ? ).

Its hosted webspace so my options to change OS/FTP/Users/Groups settings are non-existant.

Can I do anyting with a PHP triggered shell script to change the permissions or something ????

Thanks

Deano

Edit: I dont want to have to manually change file details for all new files uploaded!

[Edited by dsmith - 5/2/2003 11:20:27 AM]




All times are GMT +1. The time now is 09:32 PM.