Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as Bash by Ja ( 14 years ago )
[root@stroj /]# mkdir KNIHOVNA
[root@stroj /]# ls -ld KNIHOVNA/
drwxr-xr-x 2 root root 4096 16. úno 15.16 KNIHOVNA/
[root@stroj /]# chmod 700 KNIHOVNA/
[root@stroj /]# setfacl -m g:A:rwx KNIHOVNA/
[root@stroj /]# setfacl -m d:g:A:rwx KNIHOVNA/
[root@stroj /]# setfacl -m g:B:rx KNIHOVNA/
[root@stroj /]# setfacl -m d:g:B:rx KNIHOVNA/
[root@stroj /]# getfacl KNIHOVNA/
# file: KNIHOVNA/
# owner: root
# group: root
user::rwx
group::---
group:A:rwx
group:B:r-x
mask::rwx
other::---
default:user::rwx
default:group::---
default:group:A:rwx
default:group:B:r-x
default:mask::rwx
default:other::---
[A@stroj ~]$ cd /KNIHOVNA/
[A@stroj KNIHOVNA]$ mkdir KNIHA1
[root@stroj /]# getfacl -R KNIHOVNA/
# file: KNIHOVNA/
# owner: root
# group: root
user::rwx
group::---
group:A:rwx
group:B:r-x
mask::rwx
other::---
default:user::rwx
default:group::---
default:group:A:rwx
default:group:B:r-x
default:mask::rwx
default:other::---
# file: KNIHOVNA//KNIHA1
# owner: A
# group: A
user::rwx
group::---
group:A:rwx
group:B:r-x
mask::rwx
other::---
default:user::rwx
default:group::---
default:group:A:rwx
default:group:B:r-x
default:mask::rwx
default:other::---
[root@stroj /]# getfacl -R KNIHOVNA/
# file: KNIHOVNA/
# owner: root
# group: root
user::rwx
group::---
group:A:rwx
group:B:r-x
mask::rwx
other::---
default:user::rwx
default:group::---
default:group:A:rwx
default:group:B:r-x
default:mask::rwx
default:other::---
# file: KNIHOVNA//KNIHA1
# owner: A
# group: A
user::rwx
group::---
group:A:rwx
group:B:r-x
mask::rwx
other::---
default:user::rwx
default:group::---
default:group:A:rwx
default:group:B:r-x
default:mask::rwx
default:other::---
[root@stroj /]#
Revise this Paste
Parent: 45583