i=Andrew.Perepechko
make check_runas_id_ret () more verbose
local missing_users=""
for user in $SANITY_QUOTA_USERS; do
- check_runas_id_ret $user quota_usr "runas -u $user -g quota_usr" >/dev/null 2>/dev/null || \
+ check_runas_id_ret $user quota_usr "runas -u $user -g quota_usr" || \
missing_users="$missing_users $user"
done
- [ -n "$missing_users" ] && { skip_env "the following users are missing: $missing_users" ; return 0 ; }
+ [ -n "$missing_users" ] && { skip_env "different uid-s on client and servers, or missing users: $missing_users" ; return 0 ; }
cleanupall
formatall
mkdir $DIR/d0_runas_test
chmod 0755 $DIR
chown $myRUNAS_UID:$myRUNAS_GID $DIR/d0_runas_test
- $myRUNAS touch $DIR/d0_runas_test/f$$ || myRC=1
+ if ! $myRUNAS touch $DIR/d0_runas_test/f$$ ; then
+ do_nodes --verbose $(comma_list $(nodes_list)) grep -w $myRUNAS_UID /etc/passwd
+ myRC=1
+ fi
rm -rf $DIR/d0_runas_test
return $myRC
}