LinuxQuestions.org

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

nigelc 05-24-2013 05: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 06:28 AM

try as root

echo yourhostname > /etc/hostname

nigelc 05-24-2013 07:40 AM

It worked Thank you ennael

Cheers


All times are GMT -5. The time now is 08:26 PM.