Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old June 25th, 2002, 11:28 PM
flashwebhostcom flashwebhostcom is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Alappuzha, Kerala, India
Posts: 6 flashwebhostcom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to flashwebhostcom
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

Reply With Quote
  #2  
Old June 26th, 2002, 05:14 AM
NoXcuz's Avatar
NoXcuz NoXcuz is offline
Wiking
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Sep 2000
Location: Sweden
Posts: 3,608 NoXcuz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 49 m 27 sec
Reputation Power: 11
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

Reply With Quote
  #3  
Old June 26th, 2002, 06:58 AM
flashwebhostcom flashwebhostcom is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Alappuzha, Kerala, India
Posts: 6 flashwebhostcom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to flashwebhostcom
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

Reply With Quote
  #4  
Old June 26th, 2002, 09:41 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> In my previous host, i think i don't face such problem

Because their setup might vary.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Permission problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway