[Cialug] Unable to remove a directory in RedHat7

Tom Sellers tomsellers2001 at yahoo.com
Fri Aug 22 15:28:23 CDT 2014


The system does not recognize the 1st command setfacl  and runs the second but with no change in the directory not empty error that I receive when trying to delete the directory.

I also shut the system down and had it run the fsck check during the boot up which did not help.

Very frustrated with this system!

 

________________________________
 From: Zachary Kotlarek <zach at kotlarek.com>
To: Central Iowa Linux Users Group <cialug at cialug.org> 
Sent: Friday, August 22, 2014 1:19 PM
Subject: Re: [Cialug] Unable to remove a directory in RedHat7
  





On Aug 21, 2014, at 6:02 PM, Tom Sellers <tomsellers2001 at yahoo.com> wrote:

> I did try that and it would not let me move the directory.  It gave me an error that indicated there was some kind of permissions issue.  However, I set the permissions on all the directories from the top down to 777 which should give all rights.


Unless it’s got an ACL or another permissions flags set.

Based on your `ls -la` output I don’t think you’ve got an ACLs set (typically the permissions segment ends with a + in `ls` output when any ACL exist), but you can guarantee that with:
    setfacl -R -b <path>
which will remove all ACLs from all files and folders under <path>.

And there’s the immutable bit I mentioned before, which doesn’t show up in `ls` output:
    chattr -R -i <path>
which recursively clears the immutable flag on everything under <path>.

I also still think it’s worth checking for processes with an open handle, and if you can stand to remount read-only for a bit, for filesystem corruption.

    Zach


_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug


More information about the Cialug mailing list