Cannot delete folder

Hi,

I created two folders located within /srv/www like so:
/srv/www/folder1
/srv/www/folder2

I was intending to put my websites there but later learned that they are supposed to be located inside of /srv/www/htdocs. I have since put my websites into the correct location but I cannot delete the folders that I originally created. When I attempt using rmdir, I get a message like this: rmdir: failed to remove ‘folder1’: Device or resource busy. I have tried stopping the apache service and also using chmod to apply different permissions. I tried using lsof but I don’t see the directories in question.

Does anyone know what I need to do to remove these folders? It’s not a big deal but I would like to cleanup my webserver. I have searched the internet numerous times but never seem to find what I need.

Thanks for your help!

Rob

Did you go su to do it?

Hi
Try the rm command instead;


cd /srv/www
rm -rf folder1
rm -rf folder2

I’m assuming they are called folder1 etc? you don’t have folders with
spaces in the name?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.19-3.2-pae
up 0:34, 1 user, load average: 0.26, 0.42, 0.33
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

I am logged in as root and used chown to make root the owner. I will try the rm command as suggested, this evening. For some odd reason when I try to putty into my server I am getting access denied. It used to work…

I’ll have to try this once I get home.

I am logged in as root

Yikes. Not a good idea.