RE: gethostname returns loginname on "Pather Server" version
RE: gethostname returns loginname on "Pather Server" version
- Subject: RE: gethostname returns loginname on "Pather Server" version
- From: Sanjay Arora <email@hidden>
- Date: Sat, 7 Feb 2004 17:11:31 +0530
Indeed it shows "admin" on my machine for "HOSTNAME".
But on other systems the corresponding value is "automatic".
But any way I am not able to modify the said file.
-----Original Message-----
From: Justin Walker [
mailto:email@hidden]
Sent: Saturday, February 07, 2004 6:19 AM
To: email@hidden
Subject: Re: gethostname returns loginname on "Pather Server" version
On Friday, February 6, 2004, at 11:19 AM, Allan Nathanson wrote:
>
Here's a question. You say that gethostname() returns "admin" (as in
>
the login name). Does this name change if you login as another user?
>
I would guess that the name "admin" was entered into some text field
>
when the system was originally configured and has remained the same
>
ever since.
It would be instructive if Sanjay could look at the copy of
/etc/hostconfig on the system that is causing him grief, to see what
the line that begins "HOSTNAME=" says.
Cheers,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.