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

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

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

Post 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=""
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
gapan
Salix Wizard
Posts: 6236
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

If you used gtkhostsetup to change the hostname, it will be applied upon reboot.
Image
Image
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

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

Post by SalixManiac »

If you used gtkhostsetup to change the hostname, it will be applied upon reboot.
darkstar always remains the hostname of root.
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
gapan
Salix Wizard
Posts: 6236
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

How did you change the hostname?
Image
Image
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

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

Post by SalixManiac »

gksu gtkhostsetup and reboot.
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
gapan
Salix Wizard
Posts: 6236
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

And what does

Code: Select all

sudo hostname
report?
Image
Image
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

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

Post by SalixManiac »

Code: Select all

sudo hostname

report?
$sudo hostname
coquelicot
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
gapan
Salix Wizard
Posts: 6236
Joined: 6. Jun 2009, 17:40

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

Post by gapan »

So not a different hostname?
Image
Image
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

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

Post 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
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

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

Post 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?
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
Post Reply