LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mageia (https://www.linuxquestions.org/questions/mageia-97/)
-   -   Cannot change hostname mageia 3 (https://www.linuxquestions.org/questions/mageia-97/cannot-change-hostname-mageia-3-a-4175463283/)

nigelc 05-24-2013 04:01 AM

Cannot change hostname mageia 3
 
Hi,
I have installed mageia 3 changed the hostname, but it has changed back to what it was.
Code:

cat /etc/hosts
# generated by drakconnect
127.0.0.1 endor localhost

$ cat /etc/sysconfig/network
NETWORKING=yes
CRDA_DOMAIN=US
HOSTNAME="endor"

cheers

ennael 05-24-2013 05:28 AM

try as root

echo yourhostname > /etc/hostname

nigelc 05-24-2013 06:40 AM

It worked Thank you ennael

Cheers


All times are GMT -5. The time now is 11:02 AM.