forked from vaamonde/samba4-l1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAula-43-PermissoesDeDisco
More file actions
23 lines (19 loc) · 901 Bytes
/
Copy pathAula-43-PermissoesDeDisco
File metadata and controls
23 lines (19 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Comandos utilizados no vídeo: Aula 43 – Permissões de Disco ACL (Access Control List) e ATTR (Extended Attributes Associated)
#Testando as ACL’s
sudo cd /arquivos/
sudo touch testing_acl.txt
sudo setfacl -m user:jose.assis:rwx -d testing_acl.txt
sudo setfacl -m group:DL-PastaVendas:rwx -d testing_acl.txt
sudo getfacl -p testing_acl.txt
sudo setfacl -R -m group:"PTI\Domain Admins":rwx /share
sudo setfacl -R -m group:"PTI\Domain Users":rwx /share/common
sudo getfacl -p testing_acl.txt
sudo setfattr -n user.jose.assis -v teste1 testing_acl.txt
sudo getfattr testing_acl.txt
#Criando o diretório Público
sudo mkdir -p /arquivos/pti.intra/Publica
sudo chmod 2777 /arquivos/pti.intra/Publica
sudo getent group "PTI\Domain Users"
sudo chgrp "PTI\Domain Users" /arquivos/pti.intra/Publica
sudo setfacl -R -b /arquivos/pti.intra/Pubica
sudo setfacl -R -m default:group:"PTI\Domain Users":rwx