Results 1 to 1 of 1

Thread: Remove ACL from a file

  1. #1
    Join Date
    Oct 2006
    Location
    New York
    Beans
    1,118
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Remove ACL from a file

    Somehow a bunch of files in my home directory got hit with ACL (access control lists), which is preventing me from creating on the fly backups of things, like when editing a file. Anyways I'd like to remove ACL's from all my files, and I seem to be having a lot of trouble with setfacl. Can anyone tell me how to remove an ACL from a file?

    I'm so happy to mark this one solved, this was a real pain. Anyways, I may have been mistaken the dot is actually an selinux security context, which can be removed with the setfattr command. To run this on everything below a given directory (i.e. everything in ~ if run from ~) one can do

    find . -print0 |xargs -0 -n 1 sudo setfattr -h -x security.selinux

    The sudo is needed (despite the fact that they're my files). Anyways hopefully this is the end of my problems with this.
    Last edited by hwttdz; November 5th, 2009 at 06:24 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •