#Короче прикол: $ ls -al total 0 drwxrwx---+ 4 root root 80 Jul 22 11:49 ./ drwxrwxrwt 3 root root 140 Jul 22 11:28 ../ $ getfacl . # file: . # owner: root # group: root user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- #defaul mask::rwx типа того #Далее #Вариант первый $ pushd . ; for i in {1..5}; do mkdir a$i; cd a$i; done; popd #Вариант второй $ mkdir -p b1/b2/b3/b4/b5 #Смотрим результат, думаем :) смотрим в сторону mask :) $ getfacl -R . # file: b1 # owner: user1 # group: user1 user::rwx user:user1:rwx #effective:--- user:user2:r-x #effective:--- group::--- mask::--- other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: b1/b2 # owner: user1 # group: user1 user::rwx user:user1:rwx #effective:--- user:user2:r-x #effective:--- group::--- mask::--- other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: b1/b2/b3 # owner: user1 # group: user1 user::rwx user:user1:rwx #effective:--- user:user2:r-x #effective:--- group::--- mask::--- other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: b1/b2/b3/b4 # owner: user1 # group: user1 user::rwx user:user1:rwx #effective:--- user:user2:r-x #effective:--- group::--- mask::--- other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: b1/b2/b3/b4/b5 # owner: user1 # group: user1 user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: a1 # owner: user1 # group: user1 user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: a1/a2 # owner: user1 # group: user1 user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: a1/a2/a3 # owner: user1 # group: user1 user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: a1/a2/a3/a4 # owner: user1 # group: user1 user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- # file: a1/a2/a3/a4/a5 # owner: user1 # group: user1 user::rwx user:user1:rwx user:user2:r-x group::--- mask::rwx other::--- default:user::rwx default:user:user1:rwx default:user:user2:r-x default:group::--- default:mask::rwx default:other::--- #Вопрос на засыпку: где баг то? в mkdir -p или чё?
Ответ на:
комментарий
от mky
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум samba acl (2004)
- Форум Как правильно готовить ACL? (2017)
- Форум Samba default acl windows оснастка (2010)
- Форум [acl]меняет effective при создании файла (2010)
- Форум Проблема с ACL. Разное значение mask при создании и копировании файлов. (2016)
- Форум acl и работа с samba, etc (2008)
- Форум ACL разрешения для каталога БД postgresql (2024)
- Форум samba игнорировать попытки изменения прав на файлы (2020)
- Форум root игнорирует acl (2013)
- Форум SAMBA ACL LDAP Наследование (2010)