Azurel
Silver Pleskian
I have a bash script with this command
USER="myvhostuser"
runuser -l "$USER" -c "$DAEMON $SERVER >> $LOG_FILE &" && echo_success || echo_failure
With USER="root" its working fine, but with USER="myvhostuser" its failed. How I can use this with user from a plesk subscription (vhost domain)?
/var/www/vhosts/example.com
Owner: myvhostuser
Group psaserv
For security reason I can't use the bash with "root" user.
I hope anyone understand what I mean. ^^
USER="myvhostuser"
runuser -l "$USER" -c "$DAEMON $SERVER >> $LOG_FILE &" && echo_success || echo_failure
With USER="root" its working fine, but with USER="myvhostuser" its failed. How I can use this with user from a plesk subscription (vhost domain)?
/var/www/vhosts/example.com
Owner: myvhostuser
Group psaserv
For security reason I can't use the bash with "root" user.
I hope anyone understand what I mean. ^^