getfacl權限記錄應用
1、環境準備:
[[email protected] ~]# mkdir -p /share/wanlong [[email protected] ~]# groupadd IT-SUPPORT [[email protected] ~]# adduser wanlong1 -G IT-SUPPORT [[email protected] ~]# adduser wanlong2 -G IT-SUPPORT [[email protected] ~]# adduser wanlong3 -G IT-SUPPORT [[email protected]
2、測試過程:
[[email protected] ~]# ls -ld /share/wanlong/ drwxr-xr-x 2 root IT-SUPPORT 6 Apr 26 20:12 /share/wanlong/ 切換用戶,測試下權限 [[email protected] ~]# su - wanlong1 [[email protected] ~]$ cd /share/wanlong/ 能夠進入目錄,說明具備X權限 [[email protected] wanlong]$ ls passwd [[email protected]