Documentos de Académico
Documentos de Profesional
Documentos de Cultura
/bin/sh
#TIMEOUT de sesión
#Traps
touch /var/log/btmp
chown root:root /var/log/btmp
chmod 600 /var/log/btmp
touch /etc/cron.allow
touch /etc/at.allow
#NFS
#Comandos Remotos
#Deshabilitar sendmail
/etc/init.d/sendmail stop
chkconfig --list sendmail
chkconfig --level 0123456 sendmail off
#FTP
#Profile
echo "#" >> /etc/profile
echo "#" >> /etc/profile
echo "if echo $SHELL | grep -q ksh;then" >> /etc/profile
echo "HISTFILE=$HOME/.sh_history" >> /etc/profile
echo "HISTSIZE=1000" >> /etc/profile
echo "TTY=`who am i -R`" >> /etc/profile
echo "export HISTFILE HISTSIZE TTY" >> /etc/profile
echo "function dlog" >> /etc/profile
echo "{" >> /etc/profile
echo " typeset -i stat=$?" >> /etc/profile
echo " typeset x" >> /etc/profile
echo " x=$(fc -ln -0)" >> /etc/profile
echo " logger -p user.notice -t "ksh $LOGNAME $$" $TTY Status $stat PWD
$PWD \'${x# }\'" >> /etc/profile
echo "}" >> /etc/profile
echo "trap dlog DEBUG" >> /etc/profile
echo "fi" >> /etc/profile