|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
Check to make sure the user trying to delete the folder owns the folder...
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Can't delete folder in FTP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|