31
4
I've couple of files that I cannot remove using rf -Rf
command. I'm the owner of those file and the group assigned to those files is also a group my user is in. What's even weirder is that I can edit their content and I can change the permissions for them, but I can't move or delete them.
ls -al
total 12
dr-xr-xr-x 3 rayell pg1083760 4096 2010-10-10 10:00 .
drwxr-xr-x 3 rayell pg1083760 4096 2011-09-02 04:33 ..
-rwxrwxrwx 1 rayell pg1083760 0 2011-09-02 06:38 default.settings.php
drwxrwxrwx 2 rayell pg1083760 4096 2011-09-02 04:33 files
-rwxrwxrwx 1 rayell pg1083760 0 2011-09-02 06:38 settings.php
rm -Rf *
rm: cannot remove `default.settings.php': Permission denied
rm: cannot remove directory `files': Permission denied
rm: cannot remove `settings.php': Permission denied
Can anyone tell me what is happening?
5In general, consider using rm -rf DIRECTORY_NAME and not "*". It will save you from that one time when you will think yourself in directory /some/where/safe but are instead in /home – Sardathrion - against SE abuse – 2011-09-02T15:56:04.127
Actually I did try that, it was just those 3 files that I couldn't remove so I have simplified to procedure a bit for this post's purpose. – RaYell – 2011-09-03T06:17:50.213
Don't forget the lsattr and chattr command... – None – 2014-03-13T05:36:44.983