Operating System - HP-UX
1756328 Members
3270 Online
108846 Solutions
New Discussion юеВ

Re: Remove last logging details in the login prompt

 
SOLVED
Go to solution
Dhananjaya Amarakoon
Regular Advisor

Remove last logging details in the login prompt

to clustering feature I need to remove all the logging display information in the prompt.
I have remove few details such as /etc/copyright etc.
I need to remove last logging details as well.
from where I can do that ?

Need some helps
6 REPLIES 6
Kenan Erdey
Honored Contributor

Re: Remove last logging details in the login prompt

Hi,

in /etc/default/security

uncomment and change the line

DISPLAY_LAST_LOGIN=0
Computers have lots of memory but no imagination
Jose Mosquera
Honored Contributor

Re: Remove last logging details in the login prompt

Hi,

All common user's login actions are in /etc/profile. Please check carefully this file to see if exist actions that could be commented.
Please keep in mind that if this file is damaged will affect at whole process of users logging. Make a copy before manipulate it.

Rgds.
Dhananjaya Amarakoon
Regular Advisor

Re: Remove last logging details in the login prompt

I have checked /etc/default/security file but there is no such entry.Also I have add that entry but that also not success.

I have go through /etc/profile file and I couldn't find any entry related to last login.

it is HP-UX 11.23


Dhananjaya

PS : /etc/profile is attached
Kenan Erdey
Honored Contributor
Solution

Re: Remove last logging details in the login prompt

ok,

change the line in /opt/ssh/etc/sshd_config

PrintLastLog no

and restart sshd. /sbin/init.d/secsh stop;/sbin/init.d/secsh start
Computers have lots of memory but no imagination
Jose Mosquera
Honored Contributor

Re: Remove last logging details in the login prompt

Hi,

Yes you have, if you need a clear login script, you could comment these:
1.- #cat /etc/copyright, to avoid legal screen
2.- Comment display login message "You have mail."
if [ -f /usr/bin/mail ]
then
#if mail -e
#then echo "You have mail."
#fi
fi

Also check for each homedir user the .profile content.

Rgds.
Dhananjaya Amarakoon
Regular Advisor

Re: Remove last logging details in the login prompt

Hi Kenan
thanks for the support.
It was success. I check that one and It was already commented. Hope default value is yes.
By the way when I un comment and restart the service after parameter set to no, my requirement was succeeded.

Thanks for the all.


Dhananjaya