root4u Posted August 17, 2014 Report Share Posted August 17, 2014 Mam takie pytanie, wykonano sekwencję poleceń co się utworzy i jakie będą prawa dostępu: //cześc1 ... umask(0137); mkdir("kot",0755); mkfifo("pies",0755); ... //część2 $ setfacl -m user::rwx kot $ setfacl -m mask::r-- pies No to początek rozumiem: K1) 0137 = 001 011 111 ->(negacja)->110 100 000 K2) 111 101 101 (AND) 110 100 000 110 100 000 ->folder kot i kolejka fifo ma uprawnienia 0640 K3) No i część pierwszą to rozumiem (jeśli się mylę proszę mnie poprawić) ale części 2 z setfacl już nie. setfacl -m user::rwx kot dodaje uprawnienia ale komu i jakie ? daje 777? dla faolderu daje 777 a kolejki 700? Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2014 Report Share Posted August 18, 2014 setfacl -m user::rwx kot nada uprawnienia rwx właścicielowi pliku kot. setfacl -m mask::r pies maskuje uprawnienia wszystkich nazwanych acli, aby maksymalnym dozwolonym uprwnieniem było "r" (nie dotyczy właściciela). W tym wypadku, nie robi nic praktycznego, gdyż nie masz utworzonych nazwanych acli. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now