
# mkdir -p /test/music # created this dir as a root
# chmod g=x,o= /test # rwx--x---
# gpasswd -a x1 root # adding x1 user into the root group
# su - x1 # login as x1
$ cd /test
permission denied
x1
屬於root群組,而群組有執行權限,x1
應該可以進入該/test
目錄,但是為什麼權限被拒絕呢?