0

In Linux I would like to give a hostname to an IP address so that I can do

vncviewer hostname

Is this possible without root permission?

I am looking for something like HostName in .ssh/config but not limited to ssh.

  • Editing /etc/hosts does require root, an alternative solution is to ask your sys admin to add entry on dns srv – adampski Oct 4 '16 at 10:03
1

No. a root permission is needed to change hostname!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.