Unknown hostname in Terminal
I suddenly saw that my hostname in the Terminal has changed to "unknown406c8f255bd7". I checked the Computer name under System Pref>>Sharing and its the correct one("ABC_Macbook_Pro"). I further checked the environment variable or used hostname command and i could see the unknown hostname "unknown406c8f255bd7" there.
When i try to change the hostname thru terminal, it gives me this error "hostname: sethostname: Operation not permitted".
I tried opening a new terminal window but it did not help.
I searched thru the existing forum discussions but could not find anything relevant.
Can someone tell me why the hostname under Sharing and environment variable have different values?
Thanks
MacBook Pro, Mac OS X (10.7.3)