I keep getting the e-mail from one of my big file servers which reads
That is not good as there is whole bunch of periodic scripts which I need running. Since periodic is called from cron my first hunch was to check
.cshrc since crontab is using relative paths.
This is the crontab permission and file
Finally this is my periodic.conf file
~
Any hints what am I doing wrong?
Code:
/etc/periodic.conf: /root: Permission denied
That is not good as there is whole bunch of periodic scripts which I need running. Since periodic is called from cron my first hunch was to check
.cshrc since crontab is using relative paths.
Code:
# $FreeBSD: releng/10.1/etc/root/dot.cshrc 243893 2012-12-05 13:56:39Z eadler $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
# more examples available at /usr/share/examples/csh/
#
alias h history 25
alias j jobs -l
alias la ls -aF
alias lf ls -FA
alias ll ls -lAF
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv EDITOR vi
setenv PAGER more
setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
set prompt = "%N@%m:%~ %# "
set promptchars = "%#"
set filec
set history = 1000
set savehist = (1000 merge)
set autolist = ambiguous
# Use history to aid expansion
set autoexpand
set autorehash
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
This is the crontab permission and file
Code:
root@uranus:~ # ls -l -d /etc/crontab
-rw-r--r-- 1 root wheel 670 May 14 2015 /etc/crontab
Code:
root@uranus:~ # more /etc/crontab
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD$
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
#
#minute hour mday month wday who command
#
*/5 * * * * root /usr/libexec/atrun
#
# Save some entropy so that /dev/random can re-seed on boot.
*/11 * * * * operator /usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0 * * * * root newsyslog
#
# Perform daily/weekly/monthly maintenance.
1 3 * * * root periodic daily
15 4 * * 6 root periodic weekly
30 5 1 * * root periodic monthly
#
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time. See adjkerntz(8) for details.
1,31 0-5 * * * root adjkerntz -a
Finally this is my periodic.conf file
Code:
root@uranus:~ # ls -l /etc/periodic.conf
-rw-r--r-- 1 root wheel 747 Oct 31 10:05 /etc/periodic.conf
Code:
#!/bin/sh
# Predrag Punosevac options
daily_status_zfs_enable="YES" # Check ZFS
daily_status_zfs_zpool_list_enable="YES"
daily_status_ntpd_enable="YES" # Check NTP status
# 800.scrub-zfs
daily_scrub_zfs_enable="YES"
daily_scrub_zfs_pools="" # empty string selects all pools
daily_scrub_zfs_default_threshold="15" # days between scrubs
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
daily_status_security_enable="NO"
daily_show_success="NO"
daily_show_info="NO"
daily_show_badconfig="NO"
weekly_show_success="NO"
weekly_show_info="NO"
weekly_show_badconfig="NO"
monthly_show_success="NO"
monthly_show_info="NO"
monthly_show_badconfig="NO"
Any hints what am I doing wrong?