Attempting to set up an SSH-server running Ubuntu 12.04. Went to "HowToForge" to scout for potentially advanced or knowledgeable advice upon how to accomplish this, then I ended up running into a problem; off of one of their "Perfect Server Setup" how-to's, I am hitting a point where the instructions want me to echo the following command to /etc/hostname:
echo server1.example.com > /etc/hostname
then the following error is thrown:
-bash: /etc/hostname: Permission denied
Great, don't know why, I should have administrative privileges. Then I tried to see whether /etc/hostname is writable via lsattr, and I get:
-------------e- /etc/hostname
Last time I checked, this implied that my file was not immutable.
In either case, what is happening, and what am I doing wrong?