Page 1 of 2

user.and root différente hostname, is it normal?

Posted: 28. Jun 2022, 17:08
by SalixManiac
$uname -n
coquelicot

$sudo dmesg
(root@darkstar)

----------------------------------------------------------------

$sudo find / -type f -exec grep -H 'coquelicot' {} \;
/etc/HOSTNAME:coquelicot
/etc/rc.d/rc.M: echo "coquelicot.example.net" > /etc/HOSTNAME
/etc/rc.d/rc.M: /bin/hostname coquelicot
/etc/hosts:127.0.0.1 coquelicot

$sudo find / -type f -exec grep -H 'darkstar' {} \;
Mot de passe :
/etc/ssh/ssh_host_ed25517_key.pub:ssh-ed25517 AAAAC3NzaC1lZDI1NTE6AAAAIO+CvUDEpzBjqOrAzOywjEbRuTgNbQwfhWENSpwuWkLd root@darkstar

i have a kernel based on the slackware source kernel but without: CONFIG_DEFAULT_HOSTNAME="darkstar"
only
CONFIG_DEFAULT_HOSTNAME=""

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 10:59
by gapan
If you used gtkhostsetup to change the hostname, it will be applied upon reboot.

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 14:21
by SalixManiac
If you used gtkhostsetup to change the hostname, it will be applied upon reboot.
darkstar always remains the hostname of root.

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 16:00
by gapan
How did you change the hostname?

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 16:54
by SalixManiac
gksu gtkhostsetup and reboot.

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 17:05
by gapan
And what does

Code: Select all

sudo hostname
report?

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 17:41
by SalixManiac
Code: Select all

sudo hostname

report?
$sudo hostname
coquelicot

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 17:43
by gapan
So not a different hostname?

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 17:49
by SalixManiac
but always,

$sudo dmesg
(root@darkstar)

$sudo find /etc/ssh/ -type f -exec grep -H 'darkstar' {} \;
/etc/ssh/ssh_host_ed25519_key.pub:ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+CvUDEpzBjqOrAzOywjEbRuTgNbQwfhWENSpwuWkLd root@darkstar

Re: user.and root différente hostname, is it normal?

Posted: 29. Jun 2022, 17:56
by SalixManiac
the change of hostname user works perfectly; my question is, is it normal that the root hostname does not change?
two hostnames on one machine is this normal?