niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » AIX
"who am i" returns always "localhost"
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
地球人
*nix forums beginner


Joined: 25 May 2005
Posts: 43

PostPosted: Tue Jul 18, 2006 12:36 pm    Post subject: "who am i" returns always "localhost" Reply with quote

Hi there,

being far away from being an expert - but need to be the administrator
of my own RS/6000 (7044-170) because I need this machine for development
purposes. Anyway, I have managed to install 5.3 plus all fix packs I
could find for this version. Network is set up very simple - static IP
(10.0.0.5), gateway and subnet (255.255.252.0). From what ever machine
within this LAN I connect to the AIX-box via telnet, the "who am i"
always returns "localhost". Because the .profile sets the DISPLAY to
what ever "who am i" returns, the DISPLAY is set to "localhost" as well,
forcing me for any X-session to set the DISPLAY manually.

Any hint in that regard?
Back to top
<bela@bluedog.cc.emory
*nix forums beginner


Joined: 09 Aug 2005
Posts: 10

PostPosted: Tue Jul 18, 2006 1:43 pm    Post subject: Re: "who am i" returns always "localhost" Reply with quote

user@domain.invalid wrote:
udi> Hi there,
udi>
udi> being far away from being an expert - but need to be the administrator
udi> of my own RS/6000 (7044-170) because I need this machine for development
udi> purposes. Anyway, I have managed to install 5.3 plus all fix packs I
udi> could find for this version. Network is set up very simple - static IP
udi> (10.0.0.5), gateway and subnet (255.255.252.0). From what ever machine
udi> within this LAN I connect to the AIX-box via telnet, the "who am i"
udi> always returns "localhost". Because the .profile sets the DISPLAY to
udi> what ever "who am i" returns, the DISPLAY is set to "localhost" as well,
udi> forcing me for any X-session to set the DISPLAY manually.
udi>
udi> Any hint in that regard?

Have you set the host name (smitty mktcpip)? In /etc/hosts?
--
"... I shook my family tree, and a bunch of NUTS fell out ..."
Back to top
地球人
*nix forums beginner


Joined: 25 May 2005
Posts: 43

PostPosted: Tue Jul 18, 2006 2:27 pm    Post subject: Re: "who am i" returns always "localhost" Reply with quote

bela@bluedog.cc.emory.edu wrote:
Quote:
user@domain.invalid wrote:
udi> Hi there,
udi
udi> being far away from being an expert - but need to be the administrator
udi> of my own RS/6000 (7044-170) because I need this machine for development
udi> purposes. Anyway, I have managed to install 5.3 plus all fix packs I
udi> could find for this version. Network is set up very simple - static IP
udi> (10.0.0.5), gateway and subnet (255.255.252.0). From what ever machine
udi> within this LAN I connect to the AIX-box via telnet, the "who am i"
udi> always returns "localhost". Because the .profile sets the DISPLAY to
udi> what ever "who am i" returns, the DISPLAY is set to "localhost" as well,
udi> forcing me for any X-session to set the DISPLAY manually.
udi
udi> Any hint in that regard?

Have you set the host name (smitty mktcpip)? In /etc/hosts?

Yes, the /etc/hosts has an entry ala

10.0.0.5 AIX-FIH-00-0010
Back to top
Bela
*nix forums beginner


Joined: 20 Jul 2005
Posts: 40

PostPosted: Tue Jul 18, 2006 3:22 pm    Post subject: Re: "who am i" returns always "localhost" Reply with quote

user@domain.invalid wrote:
udi> bela@bluedog.cc.emory.edu wrote:
Quote:
user@domain.invalid wrote:
udi> Hi there,
udi
udi> being far away from being an expert - but need to be the administrator
udi> of my own RS/6000 (7044-170) because I need this machine for development
udi> purposes. Anyway, I have managed to install 5.3 plus all fix packs I
udi> could find for this version. Network is set up very simple - static IP
udi> (10.0.0.5), gateway and subnet (255.255.252.0). From what ever machine
udi> within this LAN I connect to the AIX-box via telnet, the "who am i"
udi> always returns "localhost". Because the .profile sets the DISPLAY to
udi> what ever "who am i" returns, the DISPLAY is set to "localhost" as well,
udi> forcing me for any X-session to set the DISPLAY manually.
udi
udi> Any hint in that regard?

Have you set the host name (smitty mktcpip)? In /etc/hosts?
udi

udi> Yes, the /etc/hosts has an entry ala
udi>
udi> 10.0.0.5 AIX-FIH-00-0010

Do the two commasnds `uname -n' and `hostname' give the same result?
--
"... I shook my family tree, and a bunch of NUTS fell out ..."
Back to top
temp_acc@yahoo.de
*nix forums beginner


Joined: 18 Jul 2006
Posts: 4

PostPosted: Tue Jul 18, 2006 7:19 pm    Post subject: Re: "who am i" returns always "localhost" Reply with quote

Bela wrote:
Quote:
user@domain.invalid wrote:
udi> bela@bluedog.cc.emory.edu wrote:
user@domain.invalid wrote:
udi> Hi there,
udi
udi> being far away from being an expert - but need to be the administrator
udi> of my own RS/6000 (7044-170) because I need this machine for development
udi> purposes. Anyway, I have managed to install 5.3 plus all fix packs I
udi> could find for this version. Network is set up very simple - static IP
udi> (10.0.0.5), gateway and subnet (255.255.252.0). From what ever machine
udi> within this LAN I connect to the AIX-box via telnet, the "who am i"
udi> always returns "localhost". Because the .profile sets the DISPLAY to
udi> what ever "who am i" returns, the DISPLAY is set to "localhost" as well,
udi> forcing me for any X-session to set the DISPLAY manually.
udi
udi> Any hint in that regard?

Have you set the host name (smitty mktcpip)? In /etc/hosts?
udi
udi> Yes, the /etc/hosts has an entry ala
udi
udi> 10.0.0.5 AIX-FIH-00-0010

Do the two commasnds `uname -n' and `hostname' give the same result?

Yes they do, exactly the same output.

(Telnet session)
[AIX-FIH-00-0010] /home/develop > uname -n
AIX-FIH-00-0010
[AIX-FIH-00-0010] /home/develop > hostname
AIX-FIH-00-0010
[AIX-FIH-00-0010] /home/develop > who am i
develop pts/1 18 Jul 21:16 (localhost)
[AIX-FIH-00-0010] /home/develop >
Back to top
Ashok Sangra
*nix forums beginner


Joined: 16 Mar 2006
Posts: 8

PostPosted: Fri Jul 21, 2006 1:35 pm    Post subject: Re: "who am i" returns always "localhost" Reply with quote

The hostname in the output of "who" or "who am i" is the name of the
machine the user is logged in from. You might have not set/configured
the hostname/ip of the machine from where you telnet to the system. In
most of the cases I have seen the IP of the machine instead of
localhost.

Rgds
Ashok

temp_acc@yahoo.de wrote:
Quote:
Bela wrote:
user@domain.invalid wrote:
udi> bela@bluedog.cc.emory.edu wrote:
user@domain.invalid wrote:
udi> Hi there,
udi
udi> being far away from being an expert - but need to be the administrator
udi> of my own RS/6000 (7044-170) because I need this machine for development
udi> purposes. Anyway, I have managed to install 5.3 plus all fix packs I
udi> could find for this version. Network is set up very simple - static IP
udi> (10.0.0.5), gateway and subnet (255.255.252.0). From what ever machine
udi> within this LAN I connect to the AIX-box via telnet, the "who am i"
udi> always returns "localhost". Because the .profile sets the DISPLAY to
udi> what ever "who am i" returns, the DISPLAY is set to "localhost" as well,
udi> forcing me for any X-session to set the DISPLAY manually.
udi
udi> Any hint in that regard?

Have you set the host name (smitty mktcpip)? In /etc/hosts?
udi
udi> Yes, the /etc/hosts has an entry ala
udi
udi> 10.0.0.5 AIX-FIH-00-0010

Do the two commasnds `uname -n' and `hostname' give the same result?

Yes they do, exactly the same output.

(Telnet session)
[AIX-FIH-00-0010] /home/develop > uname -n
AIX-FIH-00-0010
[AIX-FIH-00-0010] /home/develop > hostname
AIX-FIH-00-0010
[AIX-FIH-00-0010] /home/develop > who am i
develop pts/1 18 Jul 21:16 (localhost)
[AIX-FIH-00-0010] /home/develop
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:44 pm | All times are GMT
navigation Forum index » *nix » AIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix localhost tls tammer Postfix 0 Thu Sep 18, 2008 7:46 pm
No new posts ConfigParser: what read('non-existent-filename') returns ... Danil Dotsenko python 4 Thu Jul 20, 2006 5:50 pm
No new posts CGI.pm and lost carriage returns Joseph Czapski Perl 21 Thu Jul 20, 2006 3:52 pm
No new posts clock() returns 0 gramos2000@gmail.com apps 1 Mon Jul 17, 2006 4:16 pm
No new posts urllib (in thread) never returns Kingsley python 1 Mon Jul 17, 2006 12:53 am

New Cars | Mobile Phones | Mortgage Calculator | Loans | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.9818s ][ Queries: 16 (0.8732s) ][ GZIP on - Debug on ]