Retourner au contenu associé (entrée de forum : Créer de nouveaux droits ACL lors d'une copie...)
Posté par matthieu bollot (site web personnel, Mastodon) le 17 juin 2009 à 16:17. En réponse au message Créer de nouveaux droits ACL lors d'une copie.... Évalué à 1.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: acl et heritage
Posté par matthieu bollot (site web personnel, Mastodon) . En réponse au message Créer de nouveaux droits ACL lors d'une copie.... Évalué à 1.
bmatthieu@pherousa:~/testACL2$ mv ../rep1 .
bmatthieu@pherousa:~/testACL2$ cp -R ../rep2 .
bmatthieu@pherousa:~/testACL2$ getfacl *
# file: rep1
# owner: bmatthieu
# group: stagiaires
user::rwx
group::r-x
other::r-x
# file: rep2
# owner: bmatthieu
# group: stagiaires
user::rwx
group::r-x
group:boulot:rwx #effective:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::r-x
default:group:boulot:rwx
default:mask::rwx
default:other::r-x
bmatthieu@pherousa:~/testACL2$ ls -l
total 12
drwxr-xr-x 2 bmatthieu stagiaires 4096 2009年06月17日 13:30 rep1
drwxr-xr-x+ 2 bmatthieu stagiaires 4096 2009年06月17日 13:30 rep2
bmatthieu@pherousa:~/testACL2$
bmatthieu@pherousa:~/testACL2$ mkdir rep3
bmatthieu@pherousa:~/testACL2$ getfacl rep3
# file: rep3
# owner: bmatthieu
# group: stagiaires
user::rwx
group::r-x
group:boulot:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::r-x
default:group:boulot:rwx
default:mask::rwx
default:other::r-x