I am trying to run this command from console:
# HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
But got this error:
Try `cut --help' for more information.
I've tried the answer on this post but is not working for me since commands after (listed below) doesn't properly works.
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs
How I can fix the issue I am having?