i can't delete folder

Having a problem with your shell account? Post here.

i can't delete folder

Postby Dilyan on Fri Jan 06, 2006 5:47 pm

when i want to delete folder i get massages "permission denied"
i try with rm -rf

and rm -r see:
dilyan@infinity:~/public_html$ rm -r zadqlkane/
rm: descend into write-protected directory `zadqlkane//administrator/components/com_zoom'?

thank you advanced!
Dilyan
Newbie
Newbie
 
Posts: 15
Joined: Fri Mar 11, 2005 8:55 am

Postby De Kus on Mon Jan 09, 2006 8:54 pm

you cannot delete dirs which has open files or you dont have write permision to. Check for both and look if you still have problems.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby Dilyan on Sat Jan 14, 2006 2:54 am

i try but no effect
Dilyan
Newbie
Newbie
 
Posts: 15
Joined: Fri Mar 11, 2005 8:55 am

Postby thebeast on Mon Jan 16, 2006 1:19 pm

Maybe try to delete it trought FTP, or SFTP.
Sarunas B.
Phoenix Network Still Alive!
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
thebeast
Phoenix Veteran
Phoenix Veteran
 
Posts: 646
Joined: Wed Mar 23, 2005 1:20 pm
Location: Lithuania

Re: i can't delete folder

Postby snailian on Mon Jan 16, 2006 4:39 pm

Dilyan wrote:when i want to delete folder i get massages "permission denied"
i try with rm -rf

and rm -r see:
dilyan@infinity:~/public_html$ rm -r zadqlkane/
rm: descend into write-protected directory `zadqlkane//administrator/components/com_zoom'?

thank you advanced!


go into /administrator/components/com_zoom and delete some files until you find the one that is keeping you from removing the directory. Then ask Tim to remove that file.
snailian
Contributer
Contributer
 
Posts: 28
Joined: Fri Dec 30, 2005 3:05 pm
Location: Necrophiladelphia

Postby Dilyan on Tue Jan 17, 2006 11:50 pm

Permission denied
rm: cannot remove `mambo//templates/bulgaria_103/images/readon.png': Permission
denied
rm: cannot remove `mambo//templates/bulgaria_103/images/spacer.png': Permission
denied
rm: cannot remove `mambo//templates/bulgaria_103/images/tabbar_bg.gif': Permissi
on denied
rm: cannot remove `mambo//templates/bulgaria_103/images/th_bg.png': Permission d
enied
rm: cannot remove `mambo//templates/bulgaria_103/images/top.gif': Permission den
ied
rm: cannot remove `mambo//templates/bulgaria_103/css/template.css': Permission d
enied
rm: cannot remove `mambo//templates/bulgaria_103/css/joomla-bg.css': Permission
denied

///
problem is for all files in folder
Dilyan
Newbie
Newbie
 
Posts: 15
Joined: Fri Mar 11, 2005 8:55 am

Postby krod on Wed Jan 18, 2006 12:46 am

chmod 755 thedir/*
I went to the woods because I wished to live deliberately, to front only the essential facts of life, and see if I could not learn what it had to teach, and not, when I came to die, discover that I had not lived.-Thoreau
User avatar
krod
Phoenix Veteran
Phoenix Veteran
 
Posts: 616
Joined: Thu Mar 10, 2005 4:03 am
Location: USA/Georgia

Postby Dilyan on Thu Jan 26, 2006 6:45 am

dilyan@infinity:~/domains/dilyan.phoenix-hosting.org$ chmod 755 archive/*
dilyan@infinity:~/domains/dilyan.phoenix-hosting.org$ rm -rf archive/
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/JPY.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/LTL.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/LVL.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/MTL.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/NOK.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/NZD.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/PLN.gif': Permission denied
rm: cannot remove `archive//Joomla/modules/mod_cucolive/images/ROL.gif': Permission denied

....
Dilyan
Newbie
Newbie
 
Posts: 15
Joined: Fri Mar 11, 2005 8:55 am

Postby nene on Thu Jan 26, 2006 10:41 am

there is a problem with mambo or joomla, whatever... if you upload templates and modules over the admin panel, you cant manually delete it then... I didnt figure out a way to do this... do the admins have an idea? i didnt try this on infinity because i dont have an account but this error appers on all servers...
Image
nene
Regular
Regular
 
Posts: 128
Joined: Wed Apr 13, 2005 10:24 am
Location: Slovenia

Postby Tim on Fri Jan 27, 2006 12:59 am

I can't remember if chmod works the same as chown in this situation but meh...

chmod -R 755 ~/domains/dilyan.phoenix-hosting.org
rm -fr archive
User avatar
Tim
root
root
 
Posts: 736
Joined: Thu Mar 10, 2005 6:31 am
Location: Australia

Postby ravenhair on Fri Jan 27, 2006 4:36 pm

first off find out what the setings currently are:

use ls -l to get something like the following:

ravenhair@infinity:~$ ls -l
total 112
drwx--x--x 3 ravenhair ravenhair 4096 2005-12-28 10:28 domains
-rw-r--r-- 1 ravenhair ravenhair 2518 2005-12-28 16:21 index.html
drwx------ 2 ravenhair ravenhair 4096 2005-12-28 10:28 mail
drwxr-xr-x 15 ravenhair ravenhair 4096 2005-12-28 16:19 perl
-rwxr-xr-x 1 ravenhair ravenhair 115 2005-12-29 08:45 phoenixip.sh
lrwxrwxrwx 1 ravenhair ravenhair 51 2005-12-28 10:28 public_html -> ./domains/ravenhair.phoenix-hosting.org/public_html


Short version is that this shows that I am the owner and group for all these files / directories.

-rwxr-xr-x shows the permissions on the file. check url]http://www.perlfect.com/articles/chmod.shtml[/url] for help understanding how the permissions are shown and apllied.

then if you are the owner you can reset the permissions using chmod.
ravenhair
Regular
Regular
 
Posts: 80
Joined: Tue Nov 08, 2005 5:51 pm

Postby MB_cro on Mon Feb 06, 2006 6:16 pm

try CHMOD 777 by FTP..777 is full deleteble and writable...
good luck Razz
MB_cro
Newbie
Newbie
 
Posts: 15
Joined: Mon Feb 06, 2006 5:55 pm

Postby BrajanBG on Tue Aug 22, 2006 2:46 pm

chmod 755 thedir/* doesn`t work ?!?!
BrajanBG
Newbie
Newbie
 
Posts: 15
Joined: Mon Aug 21, 2006 3:08 pm

Postby Pete on Thu Aug 24, 2006 11:20 pm

BrajanBG wrote:chmod 755 thedir/* doesn`t work ?!?!


As Tim pointed out; use the " -R " flag in chmod; which makes the file permissions recursive. Once the files have been changed then you should be able to rm -rf the directory.

IE: chmod -R 600 DirName && rm -rf DirName

PS: No files should be in use; aka no application should be using said files; so kill the actual application; then do the steps listed in the above example.

Let us know how it goes.
Regards,
Pete
Pete
Regular
Regular
 
Posts: 114
Joined: Fri May 05, 2006 10:41 pm
Location: 0.0.0.0


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron