LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh login issues : hostname (https://www.linuxquestions.org/questions/linux-networking-3/ssh-login-issues-hostname-712459/)

phody_lee 03-18-2009 05:08 AM

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!

suresh.bonda 03-18-2009 05:18 AM

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..

michelle02012007 03-28-2009 05:27 AM

Quote:

Originally Posted by suresh.bonda (Post 3479203)
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?

suresh.bonda 04-02-2009 12:35 AM

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 (Post 3490441)
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?


SiliconViper 04-02-2009 12:48 AM

Quote:

Originally Posted by phody_lee (Post 3479195)
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?

michelle02012007 04-15-2009 05:29 AM

Quote:

Originally Posted by suresh.bonda (Post 3495679)
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! :)


All times are GMT -5. The time now is 07:58 AM.