Active Topics

 


Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Feb 2006
#1
I have a nokia 770 with the 2007Hacker OS. I tried to change the hostname now I cannot use sudo gainroot I have no way of becoming root on the lpocal machine. I get the error sudo: unable to lookup via gethostbyname(). I can ssh into the nokia via ip addy as root but no local access as root.

How Can I fix this?

Thanx
SunRA
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#2
Changing the hostname is not a good idea, lots of things fall apart. Set the hostname back to what it was originally.
 
Posts: 4 | Thanked: 0 times | Joined on Feb 2006
#3
Does anyone know what the default hostname is for the 2007hacker os?
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#4
Try "Nokia-N800-48".

If you really want to change the hostname, you need to change it in both /etc/hostname and /etc/hosts.
 
Posts: 4 | Thanked: 0 times | Joined on Feb 2006
#5
Thanx for your help. I can now sudo gainroot but the hostname doesn't stay when I reboot. I've edited the /etc/hostname and the /etc/hosts files but still it doesn't stay. can you post your copies of these files so I can compare them. I don't know where my problem lies.

Thanx,

SunRA
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#6
/etc/hostname

Code:
Nokia-N800-48
/etc/hosts

Code:
127.0.0.1 Nokia-N800-48 localhost

# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
 
Posts: 4 | Thanked: 0 times | Joined on Feb 2006
#7
hmmm......... my file are the exact same but when I type hostname its blank and I cannot sudo to root.

Any Ideas?
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#8
No, sorry. My advice: reflash and don't try changing it again!
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:02.