Re: unable to copy and chmod

From: Date: Tue, 15 Jan 2002 09:14:39 +0000
Subject: Re: unable to copy and chmod
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80525@lists.php.net to get a copy of this message
Any file copied with PHP will stay writable from PHP, as the owner is set to whatever PHP is running under. Explain how the file got there and how you'd like to change it (through PHP, FTP etc.) bvr. >Hi Edgard, > >> I'm trying to copy a file and chmod it to make it writable, but after I copy >> it using PHP I can't even chmod in ftp ! > >since you upload it using PHP, most likely the owner of the file is >nobody.nobody, that's why you can't chmod thru ftp. (unless you login >to ftp as nobody ;)) > >> I can't change the file owner too. > >only root can chown > >You need root access to fix your problem...or re-upload your file using >ftp, not php.

« previous php.general (#80525) next »