Touch /var/log/errors before chown it.
Give up chowning /etc/cron/weekly/, because the dir doesn't exist now. Chmod files under .history_log dir -> chmod -R .history_log dir, because no file under it. modified: install_shell/other.sh
This commit is contained in:
@@ -65,10 +65,11 @@ chown audadmin.audadmin /var/log/messages*
|
||||
chmod 644 /var/log/messages*
|
||||
chown audadmin.audadmin /var/log/auth*
|
||||
chmod 644 /var/log/auth*
|
||||
touch /var/log/errors
|
||||
chown audadmin.audadmin /var/log/errors*
|
||||
chmod 644 /var/log/errors*
|
||||
chown -R audadmin.audadmin /etc/cron/daily/
|
||||
chown -R audadmin.audadmin /etc/cron/weekly/
|
||||
#chown -R audadmin.audadmin /etc/cron/weekly/
|
||||
chown audadmin.audadmin /etc/logrotate.conf
|
||||
touch /var/lib/logrotate.status
|
||||
chown audadmin.audadmin /var/lib/logrotate.status
|
||||
@@ -131,7 +132,7 @@ if [ $? -ne 0 ];then
|
||||
echo "export HISTTIMEFORMAT" >> ~sysadmin/.bashrc
|
||||
fi
|
||||
if [ "${USER_SHELL}" == "tcsh" ];then
|
||||
chmod -R 644 ${USER_HOME}/.history_log/*
|
||||
chmod -R 644 ${USER_HOME}/.history_log/
|
||||
else
|
||||
grep HISTTIMEFORMAT ${USER_HOME}/.bashrc &> /dev/null
|
||||
if [ $? -ne 0 ];then
|
||||
|
||||
Reference in New Issue
Block a user