LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-18-2009, 05:08 AM   #1
phody_lee
LQ Newbie
 
Registered: Jul 2008
Distribution: RHEL 4-5.2
Posts: 17

Rep: Reputation: 0
ssh login issues : hostname


Hi everyone,
Can somebody tell me what to do. I am using a computer which was used before by another employee. Now, my problem is. Why is it when usually login to a linux server this message shows after?

"Last login: Wed Mar 18 17:53:38 2009 from <old user hostname> "

I already have new hostname as me but still the server see my machine as the old user.

Can anyone tell me what to do so that it was me who will appear?

Thanks!
 
Old 03-18-2009, 05:18 AM   #2
suresh.bonda
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
changing the hostname on your linux box may not solve the problem.

It is how the server has in its records.

Most probably you should be having a resolver in your network or on
the server itself(in /etc/hosts file). So the mapping of IP vs hostname
need to be changed.

check on that..
 
Old 03-28-2009, 05:27 AM   #3
michelle02012007
LQ Newbie
 
Registered: Jul 2008
Posts: 21

Rep: Reputation: 16
Quote:
Originally Posted by suresh.bonda View Post
changing the hostname on your linux box may not solve the problem.

It is how the server has in its records.

Most probably you should be having a resolver in your network or on
the server itself(in /etc/hosts file). So the mapping of IP vs hostname
need to be changed.

check on that..
Hi Everyone,

Just like to ask. Every time we log in to a linux server via ssh. It gives us report when we last login, is there a way where we can reset this logs? check the logs of the people who login?
 
Old 04-02-2009, 12:35 AM   #4
suresh.bonda
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
The following link talks of somethings:
http://www.cyberciti.biz/faq/howto-d...n-information/

Does that answer your question?

If you dont want the last information to be stored at all.
Then you can try emptying /var/log/lastlog and remove the write permissions. I have not tried that.

-Suresh

Quote:
Originally Posted by michelle02012007 View Post
Hi Everyone,

Just like to ask. Every time we log in to a linux server via ssh. It gives us report when we last login, is there a way where we can reset this logs? check the logs of the people who login?
 
Old 04-02-2009, 12:48 AM   #5
SiliconViper
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by phody_lee View Post
Hi everyone,
Can somebody tell me what to do. I am using a computer which was used before by another employee. Now, my problem is. Why is it when usually login to a linux server this message shows after?

"Last login: Wed Mar 18 17:53:38 2009 from <old user hostname> "

I already have new hostname as me but still the server see my machine as the old user.

Can anyone tell me what to do so that it was me who will appear?

Thanks!
It sounds like the problem is it recalling the last remote host to connect to it, rather than the local hostname. Should be able to clear that pretty easily by just... logging in from another host, no?
 
Old 04-15-2009, 05:29 AM   #6
michelle02012007
LQ Newbie
 
Registered: Jul 2008
Posts: 21

Rep: Reputation: 16
Quote:
Originally Posted by suresh.bonda View Post
The following link talks of somethings:
http://www.cyberciti.biz/faq/howto-d...n-information/

Does that answer your question?

If you dont want the last information to be stored at all.
Then you can try emptying /var/log/lastlog and remove the write permissions. I have not tried that.

-Suresh
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 02:21 PM
Hostname for SSH llagunocap Linux - Newbie 10 05-16-2008 07:57 AM
ssh login using hostname linuxguy08 Linux - Server 4 05-01-2008 08:03 PM
can't ssh using hostname deepesh1081 Linux - Networking 1 05-06-2007 07:11 AM
can't ssh through hostname romel Linux - Networking 4 07-25-2004 01:54 PM


All times are GMT -5. The time now is 08:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration