设置带sgid的目录权限
[[email protected] home]# chmod g+s admins/ #所属组与上级文件夹一样
[[email protected] home]# ll
total20
drwx------.5 a a 4096 Oct 1 18:50 a
drwx------.5 abc abc 4096 Oct 1 16:59 abc
drwxrws---.2 root adminuser 16 Oct 1 19:39 admins
[[email protected] home]# cdadmins/
[[email protected] admins]# touch bbbb
[[email protected] admins]# ll
total0
-rw-r--r--.1 root adminuser 0 Oct 1 19:47 bbbb
[[email protected] admins]#
时间: 2024-09-28 20:33:35