By pradhap on Jul 20, 2008
If you are logging into remote Solaris / OpenSolaris, it could take quite a few seconds to get the login prompt. If your home directories are exported with NFS while logging (ssh, rsh & telnet) into remote machine this delay can be noticed. The bottleneck here is with the /etc/profile file.
case "$0" in
-sh | -ksh | -ksh93 | -jsh | -bash)
if [ ! -f .hushlogin ]
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
/bin/cat -s /etc/motd
trap "" 2
case $? in
echo "You have new mail."
echo "You have mail."
Each time a user logs in /etc/profileshell script is executed. The script runs quota,mail and displays motd . If your sure that you d'nt need any of this, then go ahead and just touch .hushlogin file in your home directory
Now login to remote machine and see the difference.