|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi!
I have the following problem: I want to provide the users of a big php project an automatic installer, because it's needed for running my program that lots of files get the "write" (666) permission for the httpd process (PHP has to change some values in these files). But my installer can't change the file permissions automatically, because his process (httpd) isn't the owner of the files, this is the ftp-"user", e.g. ftp3196. Of course, the users could change the file attributes manually (with the FTP program) to 666, but for about 30 files (in different directories) this is not the comfotable way! Isn't there any command with which I can change the permissions of these files under another user context? It would be no problem, if the user had to give his ftp-username and password to the script (through a html form). |
|
#2
|
|||
|
|||
|
re:
I don't know how to do it in PHP but why not write a shell script and just put it in cron to run as frequent as you need it to change the file permissions?
|
|
#3
|
|||
|
|||
|
Unfortunately, this isn't allowed for nobody and the webserver runs under this account...
|
|
#4
|
|||
|
|||
|
You can log in to your FTP server using the Command Line DOS Client and when you are in You type the command
quote site chmod ###(that is the file permissions digits) filename.... But make sure you first cd into the directory you want to chmod....This should flow pretty fast that way. |
|
#5
|
||||
|
||||
|
ronniekyazze, thank you for trying to assist in resolving this issue; but I can only presume that this issue is already resolved or no longer relevant after almost five years.
I'm locking this thread so it can die off as it should. @frindler or others: If you need me to reopen it for further discussion of this problem, please PM me. Thanks.
__________________
~~ Peter ~~ ( My Blog: It's exactly like normal nerdiness, but completely different. ) :: ( Supporter of the EFF & FSF ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key ) |
| Viewing: Dev Shed Forums > System Administration > FTP Help > file permissions / FTP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|