> cat /etc/shells #/bin/sh /bin/bash /sbin/nologin #/bin/tcsh #/bin/csh #/bin/ksh #/bin/zsh |
> ls -l `which chsh` -rwx------ 1 root root 19128 May 24 2008 /usr/bin/chsh |
HISTSIZE=1000 HISTTIMEFORMAT="%F %T " readonly HISTTIMEFORMAT readonly HISTFILE readonly HISTSIZE readonly HISTFILESIZE |
> cat ./fix_history for PERSON in bob sue john jimmy do echo "Doing $PERSON..." touch /home/$PERSON/.bash_history chown $PERSON:root /home/$PERSON/.bash_history chmod 600 /home/$PERSON/.bash_history chattr +a /home/$PERSON/.bash_history done |
115 2009-05-26
12:16:35 su - 116 2009-05-26 12:16:35 ls -l 117 2009-05-26 12:16:35 mkdir backup 118 2009-05-26 12:16:35 ls -l |