Lines Matching refs:user

37 #	Verify the user with write_attributes permission or
42 # 1. Loop super user and non-super user to run the test case.
44 # 3. Grant user has write_attributes permission or
70 typeset user=$3
77 if [[ -n $user ]]; then
78 su $user -c "chmod S+c${attr} $object"
99 typeset user=$3
106 if [[ -n $user ]]; then
107 su $user -c "chmod S-c${attr} $object"
118 # Grant the ace of write_attributes to the given user
120 # $1: The given user
125 typeset user=$1
128 if [[ -z $user || -z $object ]]; then
129 log_fail "User($user), Object($object) not defined."
134 # Only grant the user explicitly while it's not root neither owner.
136 if [[ $user == "root" ]]; then
137 log_must chmod A+user:root:write_attributes:deny $object
138 elif [[ $user == $(get_owner $object) ]]; then
142 log_must chmod A+user:$user:write_attributes:deny \
146 log_must chmod A+user:$user:write_attributes:allow $object
152 # Revoke the ace of write_attributes from the given user
154 # $1: The given user
159 typeset user=$1
162 if [[ -z $user || -z $object ]]; then
163 log_fail "User($user), Object($object) not defined."
175 # $3: Execute user
183 typeset user=$4
187 log_fail "Func($func), Object($object), User($user), \
191 # If user is superuser or has write_attributes permission or
195 if [[ -z $user || $user == "root" || $user == \
200 $expect $func $object $opt $user
203 log_assert "Verify set/clear DOS attributes will succeed while user has " \
219 for user in root $ZFS_ACL_STAFF2 ; do
222 $object $opt $user
224 $object $opt $user
226 log_must grant_attr $user $object
229 $object $opt $user
231 $object $opt $user
233 log_must revoke_attr $user $object
240 log_pass "Set/Clear DOS attributes succeed while user has " \