How can I avoid those annoying copyright notices on login?
The following code in /etc/profile prints the copyright notice only the
very first time a user logs in:
NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
[ $NUMLOGINS -lt 2 ] && cat /etc/copyright
And, for /etc/csh.login:
set NUMLOGINS=`/etc/last -2 $LOGNAME | wc -l`
if ( $NUMLOGINS<2 ) cat /etc/copyright
Technically, each user will get the copyright on their first login after
each time the /etc/wtmp file is pruned, but that needn't be often.
[an error occurred while processing this directive]