[Acl-Devel] setfacl --restore and capital X
Fabio Muzzi
liste at kurgan.org
Tue Oct 4 16:58:10 CEST 2005
Hello acl-devel,
I was trying to set up an ACL backup procedure, and I have found a
strange behaviour in setfacl --restore. It seems I cannot get it to
distinguish between "x" (execute for every file) and "X" (execute only
for directories or already executable files) in setting the default
acls.
I wanted to set a default acl to group:test:rX (with a capital X, so to
have only directories that are executable) and if I set it by hand,
with "setfacl -m -R d:g:test:rX <directory>" it works.
Then I tried editing a previuous dump of getfacl, that gives execute
permission on both files and directories, with lowercase "x", as
follows:
# file: acquisti
# owner: root
# group: acquisti
user::rwx
group::rwx
group:direzione:r-x
group:responsabili:r-x
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:direzione:r-x
default:group:responsabili:r-x
default:mask::rwx
default:other::---
and modified it so that some of the "x" are now uppercase, like this:
# file: acquisti
# owner: root
# group: acquisti
user::rwx
group::rwx
group:direzione:r-X
group:responsabili:r-X
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:direzione:r-X
default:group:responsabili:r-X
default:mask::rwx
default:other::---
Now, when I remove every ACL from the "acquisti" directory, and then apply
the previously modified dumop with setfacl --restore, the uppercase "X" in
the dump are restored as if they were lowercase ones, so files and
directories created later all get the default execution acl.
Is this a bug, or I am doing something wrong?
--
Fabio "Kurgan" Muzzi
More information about the acl-devel
mailing list