Detta har sysselsatt mig hela dagen. Vad gör jag gör fel?
Kod: Markera allt
root@se:/home/deejam# mkdir test
root@se:/home/deejam# ls -lah test/
total 8,0K
drwxr-xr-x 2 root root 4,0K 2010-05-10 18:50 .
drwxr-xr-x 5 deejam deejam 4,0K 2010-05-10 18:50 ..
root@se:/home/deejam# setfacl -dm u::rwx,g::rwx,o::---,m::rwx test/
root@se:/home/deejam# setfacl -m u::rwx,g::rwx,o::---,m::rwx test/
root@se:/home/deejam# ls -lah test/
total 12K
drwxrwx---+ 2 root root 4,0K 2010-05-10 18:50 .
drwxr-xr-x 5 deejam deejam 4,0K 2010-05-10 18:50 ..
root@se:/home/deejam# getfacl test/
# file: test
# owner: root
# group: root
user::rwx
group::rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::---
root@se:/home/deejam#
Verkar även fungera fint om jag skapar en mapp i mappen. Den ärver ACLen som den bör.
Kod: Markera allt
root@se:/home/deejam# mkdir test/test
root@se:/home/deejam# ls -lah test/test/
total 16K
drwxrwx---+ 2 root root 4,0K 2010-05-10 18:53 .
drwxrwx---+ 3 root root 4,0K 2010-05-10 18:53 ..
root@se:/home/deejam# getfacl test/test/
# file: test/test
# owner: root
# group: root
user::rwx
group::rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::---
root@se:/home/deejam#
Kod: Markera allt
root@se:/home/deejam# touch test/hej
root@se:/home/deejam# ls -lah test/
total 24K
drwxrwx---+ 3 root root 4,0K 2010-05-10 18:55 .
drwxr-xr-x 5 deejam deejam 4,0K 2010-05-10 18:50 ..
-rw-rw----+ 1 root root 0 2010-05-10 18:55 hej
drwxrwx---+ 2 root root 4,0K 2010-05-10 18:53 test
root@se:/home/deejam# getfacl test/hej
# file: test/hej
# owner: root
# group: root
user::rw-
group::rwx #effective:rw-
mask::rw-
other::---
root@se:/home/deejam#