diff --git a/files/fuel-ha-utils/ocf/mysql-wss b/files/fuel-ha-utils/ocf/mysql-wss index ca8aef2f9b..a6c5e2fbfc 100755 --- a/files/fuel-ha-utils/ocf/mysql-wss +++ b/files/fuel-ha-utils/ocf/mysql-wss @@ -687,7 +687,7 @@ mysql_start() { # already existed, check whether it is writable by the configured # user for dir in $pid_dir $socket_dir; do - if ! su -s /bin/sh - $OCF_RESKEY_user -c "test -w $dir"; then + if ! /usr/bin/sudo -n -u $OCF_RESKEY_user /usr/bin/test -w $dir; then ocf_log err "${LH} Directory $dir is not writable by $OCF_RESKEY_user" exit $OCF_ERR_PERM; fi