You can't just "rm" a directory.
Also, regarding the permissions which are this abbbcccddd
a = identifier ( directory, link, device, etc )
b = Owner Bits
c = Group Bits
d = World Bits
For now, your basic bits are rwx ( read, write, execute ), where each letter has a value that can be associated to it. r = 4, w = 2, x = 1. To get the appropriate r, w, or x value on the file, add the numbers up. So, if you want something that has r and x permissions, that would be a total of 5, so you could do something like chmod 755 filename.sh Where 7 is all of the bits added up, so when you do an ls -l you'll see this ( or it's equivalent ):
-rwxr-xr-x filename.sh
Ok, now that we've passed through chmod and permissions on files, let's get to your question.
You can't "rm" a directory, you can with extra options, you'll find these extra options by type rm --help, for more support type, man rm. If that directory is empty you could just issue the command rmdir and that will delete it, however, that's usually more of a pain than it's worth, look in to rm more.
Likewise, so long as you own the directory, it doesn't matter what the permissions are on it, your command will override the permissions.
Last edited by Technoslave; 04-01-2005 at 08:39 AM.
|