logcheck
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*logcheck [#r77221cd]
【参考URL】https://bellett.moe.hm/index.php/2018/06/26/fr...
portupgrade -ar --batch をした後から、一時間に1回程度の割...
From: Cron Daemon <logcheck@sun1.smb.net>
To: root@sun1.smb.net
Subject: Cron <logcheck@sun1> if [ -x /usr/local/sbin/lo...
ls: /usr/local/etc/logcheck/cracking.d: Permission denied
ls: /usr/local/etc/logcheck/violations.d: Permission den...
ls: /usr/local/etc/logcheck/violations.ignore.d: Permiss...
ls: /usr/local/etc/logcheck/ignore.d.server: Permission ...
ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permissio...
あるいは、
Warning: If you are seeing this message, your log files ...
checked!
Details:
Could not run logtail or save output
Check temporary directory: /tmp/logcheck.LHFWZe
Also verify that the logcheck user can read all files re...
/usr/local/etc/logcheck/logcheck.logfiles!
declare -x BLOCKSIZE="K"
declare -x HOME="/var/lib/logcheck"
declare -x LANG="C.UTF-8"
declare -x LOGNAME="logcheck"
declare -x MAIL="/var/mail/logcheck"
declare -x MAILTO="root"
declare -x MM_CHARSET="UTF-8"
declare -x OLDPWD
declare -x PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/loca...
declare -x PWD="/var/lib/logcheck"
declare -x SHELL="/bin/sh"
declare -x SHLVL="1"
declare -x USER="logcheck"
とも
コンソールからコマンドを打つと
# root@sun1:/var/log:21_08_18:9:50 # su -m logcheck -c "...
ls: /usr/local/etc/logcheck/cracking.d: Permission denied
ls: /usr/local/etc/logcheck/violations.d: Permission den...
ls: /usr/local/etc/logcheck/violations.ignore.d: Permiss...
ls: /usr/local/etc/logcheck/ignore.d.server: Permission ...
ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permissio...
と表示される。
ので、
# chown -R root:logcheck /usr/local/etc/logcheck
した。
毎時のpermission エラー は抑制されるが、さらに
# chown root:logcheck /var/log/auth.log
# chmod 640 /var/log/auth.log
/etc/mail/aliases
logcheck: root
# newaliases
----
/etc/mail/aliases へ
logcheck: root
というエイリアスを作成(書き込み)して、次のワンライナー...
newaliases && chown -R root:logcheck /usr/local/etc/logc...
root@kuji:~:21_08_26:8:36 # su -m logcheck -c "/usr/loca...
ls: /usr/local/etc/logcheck/cracking.d: Permission denied
ls: /usr/local/etc/logcheck/violations.d: Permission den...
ls: /usr/local/etc/logcheck/violations.ignore.d: Permiss...
ls: /usr/local/etc/logcheck/ignore.d.server: Permission ...
ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permissio...
root@kuji:~:21_08_26:8:37 # chown -R root:logcheck /usr/...
root@kuji:~:21_08_26:8:37 # su -m logcheck -c "/usr/loca...
root@kuji:~:21_08_26:8:37 # chown root:logcheck /var/log...
root@kuji:~:21_08_26:8:37 # chmod 640 /var/log/auth.log
root@kuji:~:21_08_26:8:38 # newaliases
root@kuji:~:21_08_26:8:38 # newaliases
root@kuji:~:21_08_26:8:38 # su -m logcheck -c "/usr/loca...
----
* logcheck install 2024-02-09 [#b27f4ed2]
# cd /usr/ports/security/logcheck
# make install clean
&ref(logcheck_options.PNG);
Creating group 'logcheck' with gid '915'.
===> Creating users
Creating user 'logcheck' with uid '915'.
===> Creating homedir(s)
==> Created crontab(5) file for user "logcheck"
Please make sure that all files listed in
/usr/local/etc/logcheck/logcheck.logfiles.d/syslog.log...
are readable to the 'logcheck' group (see also /etc/news...
or remove them from the aforementioned logcheck configur...
For information on how to write local rulesets see
/usr/local/share/doc/logcheck/README.logcheck-database
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*logcheck [#r77221cd]
【参考URL】https://bellett.moe.hm/index.php/2018/06/26/fr...
portupgrade -ar --batch をした後から、一時間に1回程度の割...
From: Cron Daemon <logcheck@sun1.smb.net>
To: root@sun1.smb.net
Subject: Cron <logcheck@sun1> if [ -x /usr/local/sbin/lo...
ls: /usr/local/etc/logcheck/cracking.d: Permission denied
ls: /usr/local/etc/logcheck/violations.d: Permission den...
ls: /usr/local/etc/logcheck/violations.ignore.d: Permiss...
ls: /usr/local/etc/logcheck/ignore.d.server: Permission ...
ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permissio...
あるいは、
Warning: If you are seeing this message, your log files ...
checked!
Details:
Could not run logtail or save output
Check temporary directory: /tmp/logcheck.LHFWZe
Also verify that the logcheck user can read all files re...
/usr/local/etc/logcheck/logcheck.logfiles!
declare -x BLOCKSIZE="K"
declare -x HOME="/var/lib/logcheck"
declare -x LANG="C.UTF-8"
declare -x LOGNAME="logcheck"
declare -x MAIL="/var/mail/logcheck"
declare -x MAILTO="root"
declare -x MM_CHARSET="UTF-8"
declare -x OLDPWD
declare -x PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/loca...
declare -x PWD="/var/lib/logcheck"
declare -x SHELL="/bin/sh"
declare -x SHLVL="1"
declare -x USER="logcheck"
とも
コンソールからコマンドを打つと
# root@sun1:/var/log:21_08_18:9:50 # su -m logcheck -c "...
ls: /usr/local/etc/logcheck/cracking.d: Permission denied
ls: /usr/local/etc/logcheck/violations.d: Permission den...
ls: /usr/local/etc/logcheck/violations.ignore.d: Permiss...
ls: /usr/local/etc/logcheck/ignore.d.server: Permission ...
ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permissio...
と表示される。
ので、
# chown -R root:logcheck /usr/local/etc/logcheck
した。
毎時のpermission エラー は抑制されるが、さらに
# chown root:logcheck /var/log/auth.log
# chmod 640 /var/log/auth.log
/etc/mail/aliases
logcheck: root
# newaliases
----
/etc/mail/aliases へ
logcheck: root
というエイリアスを作成(書き込み)して、次のワンライナー...
newaliases && chown -R root:logcheck /usr/local/etc/logc...
root@kuji:~:21_08_26:8:36 # su -m logcheck -c "/usr/loca...
ls: /usr/local/etc/logcheck/cracking.d: Permission denied
ls: /usr/local/etc/logcheck/violations.d: Permission den...
ls: /usr/local/etc/logcheck/violations.ignore.d: Permiss...
ls: /usr/local/etc/logcheck/ignore.d.server: Permission ...
ls: /usr/local/etc/logcheck/ignore.d.paranoid: Permissio...
root@kuji:~:21_08_26:8:37 # chown -R root:logcheck /usr/...
root@kuji:~:21_08_26:8:37 # su -m logcheck -c "/usr/loca...
root@kuji:~:21_08_26:8:37 # chown root:logcheck /var/log...
root@kuji:~:21_08_26:8:37 # chmod 640 /var/log/auth.log
root@kuji:~:21_08_26:8:38 # newaliases
root@kuji:~:21_08_26:8:38 # newaliases
root@kuji:~:21_08_26:8:38 # su -m logcheck -c "/usr/loca...
----
* logcheck install 2024-02-09 [#b27f4ed2]
# cd /usr/ports/security/logcheck
# make install clean
&ref(logcheck_options.PNG);
Creating group 'logcheck' with gid '915'.
===> Creating users
Creating user 'logcheck' with uid '915'.
===> Creating homedir(s)
==> Created crontab(5) file for user "logcheck"
Please make sure that all files listed in
/usr/local/etc/logcheck/logcheck.logfiles.d/syslog.log...
are readable to the 'logcheck' group (see also /etc/news...
or remove them from the aforementioned logcheck configur...
For information on how to write local rulesets see
/usr/local/share/doc/logcheck/README.logcheck-database
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: