FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP 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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 8th, 2004, 01:09 PM
Coopercentral2 Coopercentral2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: US
Posts: 261 Coopercentral2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 29 sec
Reputation Power: 6
Send a message via AIM to Coopercentral2
Can't delete folder in FTP

Hi:

Don't know if this is in the right forum, but couldn't find an FTP forum. Ok, I'm currently running Fedora with proFTPd. When I login with FTP, there are some folders. I created a folder called "manager", and put a file manager script in there. I didn't like it, and tryed to delete it, and it just stayed there. When I used rmdir() in PHP, I get:

Code:
Warning: rmdir(/var/www/html/manager): Permission denied in /var/www/html/exec.php on line 4


How do I change the permissions to the folder, so I can delete it? In FTP, I already chmodded the folder manager, and the other folder inside of manager. Anything I can do? Thanks a lo!!!

Ken Cooper
__________________
Thanks!

Reply With Quote
  #2  
Old May 8th, 2004, 07:10 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Check to make sure the user trying to delete the folder owns the folder...

Reply With Quote
  #3  
Old May 9th, 2004, 08:54 AM
Coopercentral2 Coopercentral2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: US
Posts: 261 Coopercentral2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 29 sec
Reputation Power: 6
Send a message via AIM to Coopercentral2
How do I change the owner of a folder? Isn't it chown or chroot, or something like that? Well, I just assume the the enter /var/www/html directory folder is owned by the admin user, as it's the admin's home directory. Thanks!!!

Ken Cooper

Reply With Quote
  #4  
Old May 10th, 2004, 05:42 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
If the folder is root and php is being executed by another user, than you need to set permissions to 0757. As root, you can change the owner of a file by using the commands chown and/or chgrp.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Can't delete folder in FTP


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 3 hosted by Hostway