Testing for su verses remote login

From: Donovan, Jeffrey (Jeff), ALABS (jmd@att.com)
Date: Fri Jan 30 2004 - 09:58:44 EST


_____________________________________________
From: Donovan, Jeffrey (Jeff), ALABS
Sent: Friday, January 30, 2004 9:48 AM
To: 'sunmanagers@sunmanagers.org'
Subject: RE: testing for telnet vs su

Hi all,

Hope this is an easy one. I want to suppress login messages from
/etc/profile (ie; you have mail, motd, etc) if su is used to login to a
user but don't suppress if it's a remote login. How do you test in
/etc/profile whether a login came remotely ie; telnet/rsh/ssh or was
locally done with su.

Thanks for the help

Jeff
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:55 EDT