/etc/logrotate.conf
$ ls -l /etc/logrotate.d
total 64
-rw-r--r--. 1 root root 155 Aug 20 2014 aide
-rw-r--r--. 1 root root 178 Jun 23 2015 chrony
-rw-r--r-- 1 root root 292 Mar 19 09:50 content_gateway_rotate
-rw-r--r--. 1 root root 71 Jul 21 2015 cups
-rw-r--r-- 1 root root 172 Jun 29 2016 iscsiuiolog
-rw-r--r-- 1 root root 165 May 26 2016 libvirtd
-rw-r--r-- 1 root root 163 May 26 2016 libvirtd.qemu
-rw-r--r--. 1 root root 106 Sep 5 2014 numad
-rw-r--r--. 1 root root 136 Jan 27 2014 ppp
-rw-r--r--. 1 root root 408 Oct 1 2014 psacct
-rw-r--r-- 1 root root 115 Jul 4 2016 samba
-rw-r--r--. 1 root root 71 Oct 13 2015 subscription-manager
-rw-r--r--. 1 root root 224 Sep 8 2015 syslog
-rw-r--r--. 1 root root 32 Dec 9 2013 up2date
-rw-r--r--. 1 root root 100 May 20 2015 wpa_supplicant
-rw-r--r--. 1 root root 100 Sep 11 2015 yum
$cat /etc/cron.daily/logrotate
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
Monday, March 19, 2018
Thursday, February 15, 2018
redhat su: Permission denied
edit
/etc/pam.d/su
remark the following line
auth required pam_wheel.so use_uid
It requires users to be in the wheel group to be able to switch user.
User switching as non-root works again when this pam module is disabled for su.
Subscribe to:
Posts (Atom)