vi /root/.bashrc
1 2 |
myname=`who am i | awk '{print $1}'` PROMPT_COMMAND='history -a >(logger -p local2.info -t "$myname $USER[$PWD] $SSH_CONNECTION")' |
vi /etc/rsyslog.conf
1 |
$umask 0000 <br />$FileCreateMode 0666 <br />local2.info /var/log/usercommands<br />$umask 0077 |