/l3/users/16-10-2018/NT-Ladm/debian2.net.nt/root :1 :2 :3 :4 :5 |
|
#chattr +a ~ivan/my
![]() chattr: No such file or directory while trying to stat /home/ivan/my |
#chattr +a ~ivan/my
![]() chattr: No such file or directory while trying to stat /home/ivan/my |
#apt-get install acl
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: acl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 70.8 kB of archives. After this operation, 264 kB of additional disk space will be used. Get:1 http://ftp.ua.debian.org/debian/ wheezy/main acl amd64 2.2.51-8 [70.8 kB] Fetched 70.8 kB in 0s (584 kB/s) Selecting previously unselected package acl. (Reading database ... 28850 files and directories currently installed.) Unpacking acl (from .../acl_2.2.51-8_amd64.deb) ... Processing triggers for man-db ... Setting up acl (2.2.51-8) ... |
#apt-get install acl
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: acl 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 70.8 kB of archives. After this operation, 264 kB of additional disk space will be used. Get:1 http://ftp.ua.debian.org/debian/ wheezy/main acl amd64 2.2.51-8 [70.8 kB] Fetched 70.8 kB in 0s (584 kB/s) Selecting previously unselected package acl. (Reading database ... 28850 files and directories currently installed.) Unpacking acl (from .../acl_2.2.51-8_amd64.deb) ... Processing triggers for man-db ... Setting up acl (2.2.51-8) ... |
#ls -l
![]() total 4 drwxrwx--- 2 root developers 4096 Oct 18 16:00 project |
#setfacl -m user:user:r project/
![]() |
#getfacl project/
![]() # file: project/ # owner: root # group: developers user::rwx user:user:r-- group::rwx mask::rwx other::--- |
#getfacl project/
# file: project/ # owner: root # group: developers user::rwx user:user:r-- group::rwx mask::rwx other::--- |
#ls -l ..
![]() total 8 drwxrwx---+ 2 root developers 4096 Oct 18 16:00 project drwxrwxrwx 2 root root 4096 Oct 18 16:13 public |
#ls -l ..
total 8 drwxrwx---+ 2 root developers 4096 Oct 18 16:00 project drwxrwxrwx 2 root root 4096 Oct 18 16:13 public |