Cannot set Device name (hostname) under Details section in System Settings on 12.04

Bug #962369 reported by Mark East on 2012-03-22
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)

Bug Description

The "Device name" section under Details in the system settings on 12.04 appears to be greyed out. I'm not sure why but I would expect to be able to change the hostname of the system I was using.

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Robert Roth (evfool) on 2012-03-23
affects: ubuntu → gnome-control-center (Ubuntu)
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, I think it has been reported before but I don't find it now, but a summary:
- changing hostname is not something user frequently do
- it can create issue, especially for the running session (that breaks xorg authentification tokens)
- the g-c-c interface required hostnamed from systemd which we don't use

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Andy Bovett (abovett) wrote :

I'd also like to see this fixed. It is occasionally required, and is one of the issues that makes Ubuntu seem less complete and mature. I assume that the only way to do it at the moment is to edit /etc/hostname and /etc/hosts. Anyone know otherwise? Also, I've seen rumours of minor issues when this is done (can't remember exactly but someone said they saw theold hostname hanging about somewhere). Anyone aware of anything else which needs changing?

John Baptist (jepst79) wrote :

As I recall, this is possible when booting from a live CD (or USB). Why is it possible when booting live but not otherwise?

Mark East (feasty) wrote :

That should be all you need to do Andy. You shouldn't have problems if you set those there unless you have a DNS server, in which case you should update those records too. Checks your /etc/nsswitch.conf file for the "hosts" line and check it has "files" and "dns" in that order, then your machine will use its /etc/hosts file before looking it up using DNS.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-control-center - 1:3.6.3-0ubuntu20

gnome-control-center (1:3.6.3-0ubuntu20) raring; urgency=low

  * debian/gnome-control-center.pkla, gnome-control-center-data.install:
    - Install a .pkla to allow admins to set the hostname. This can be dropped
      when Ubuntu includes policykit >=0.106 since gnome-control-center
      ships the updated rules already (LP: #962369)
  * debian/
    - Recommend libnss-myhostname (LP: #1162475, #1162478)
  * debian/patches/62_update_translations_template.patch: Refreshed
 -- Jeremy Bicha <email address hidden> Wed, 10 Apr 2013 16:15:36 -0400

Changed in gnome-control-center (Ubuntu):
status: Triaged → Fix Released
Jeremy Bicha (jbicha) wrote :

Re-opening this bug since bug 1162478 was rejected for fixing for Ubuntu 13.04 so this fix was also reverted because it was incomplete.

Changed in gnome-control-center (Ubuntu):
status: Fix Released → Triaged
V字龍(Vdragon) (vdragon) wrote :

Appending the content of Bug #1190048 here, ignore me if its not useful
1. I expected there's a pre-installed GUI utility in Ubuntu to change hostname.
2. I expected it appears in GNOME Control Center(a.k.a. System Settings) -> Details -> "Device name" textbox
    * In fact there's really a "textbox" at the location but is not editable and there's no "Unlock" button at that view.
3. I expected if I run GNOME Control Center as root (gksudo gnome-control-center) I can change my hostname
    * In fact when GNOME Control Center run as root, the "textbox" really turn's into editable, but edit the content still won't apply to the system temporarily nor permanently.
4. I supposed there's many user having the same conclusion like me, so please help ;)

Jeremy Bicha (jbicha) wrote :

This is working in Ubuntu GNOME 16.04 LTS

Changed in gnome-control-center (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers