Ubuntu – newaliases in script results in permission denied
Running Ubuntu. After updating the /etc/aliases file, the newaliases command must be run to build an alias database /etc/aliases.db. I can successfully run sudo newaliases but when I created a shell script (named myscript.sh) that uses the newaliases command, I…