|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Permission problem
Hi,
I host my site on linux server. I used to upload files using FTP. One of my PHP script create files under directory /count/ It is a counter script, users can signup and get a counter for there web page. I want to edit one of this file and up load it again. I have downloaded, modified the file and try to upload. It says "permission Denied" I can't over write the files. The directory "cont" have permission of drwxrwxrwx and all files inside the directory is having permission of -rw-r--r-- When i try change the permission using CuteFTP it says [biju104.txt] COMMAND:> SITE CHMOD 777 boby104.txt 550 boby104.txt: Operation not permitted Can anybody suggest how i can modify the file. Thanks in advance Regards, Yujin Boby |
|
#2
|
||||
|
||||
|
Since you've created the file thru PHP without changing the permissons or owner of it, the file owner now is the apache user. And only that user can modify/delete it...
So create a php script that removes the file and then ftp your new file... //NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#3
|
|||
|
|||
|
Thanks for the help.
I am finding this for the first time. In my previous host, i think i don't face such problem. Not sure. Regards, Yujin Boby |
|
#4
|
|||
|
|||
|
>> In my previous host, i think i don't face such problem
Because their setup might vary. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Permission problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|