From a user that is part of the sudoers group, I can normally run any command by doing sudo <command>
But the following command fails stating "Permission denied"
sudo echo "myhostname" > /etc/hostname
It doesn't even ask me for the password. How do I change the hostname ?