Jan Stifter j.stifter at
Tue Oct 2 04:37:02 PDT 2001

This is in the faq. It has something to do with 2 versions of
"hostname", one coming from sh-utils, one coming fron net-utils, IIRC.
the one from sh-utils doesnt understand -f option, so if you call
hostname -f "bla" your hostname will be set to "-f".

Mayybe, your $PATH as root is taking the hostname from sh-utils.


On Tue, 02 Oct 2001 10:29:41 +0200, Heinz Kirchmann
<kirchman at> wrote:

>Yesterday I was wondering about some strange behaviour
>in correlation with XFree86_4.1.0. I missed the ~/.Xauthority
>file and my hostname was messed up to '-f' after calling
>startx (but only sometimes, i.e. when I started X as root -
>as I know now).
>So I checked the startx script and found something like
>  for x in `hostname -f`...
>in it. This prevents the .Xauthority file from being created
>correctly, since this is done in the loop above. If you are root,
>this will also mess up your hostname.
>Strange. Did I miss something?

Unsubscribe: send email to listar at
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list