在我配置 postfix 和 opendkim 的过程中,我决定升级 Debian jessie (oldstable) 以进行扩展。从那以后,我无法让 opendkim 正常启动。
我期望的是 /etc/default/opendkim 中的配置应该得到尊重,特别是 RUNDIR 和 SOCKET 设置应该放在后缀 chroot 中:
# Command-line options specified here will override the contents of
# /etc/opendkim.conf. See opendkim(8) for a complete list of options.
#DAEMON_OPTS=""
# Change to /var/spool/postfix/var/run/opendkim to use a Unix socket with
# postfix in a chroot:
RUNDIR=/var/spool/postfix/var/run/opendkim
# Uncomment to specify an alternate socket
# Note that setting this will override any Socket value in opendkim.conf
SOCKET=local:$RUNDIR/opendkim.sock
USER=opendkim
GROUP=opendkim
PIDFILE=$RUNDIR/$NAME.pid …Run Code Online (Sandbox Code Playgroud) 我有一个文件,该文件应该由一个普通用户拥有,该用户大约每 4 到 20 分钟就会被某个东西 chown 为 root。我怎样才能知道这是做什么的?
/etc/crontab 或 root 的 4/20 分钟的 crontab 中似乎没有任何内容可以做到这一点......
为了解决这个问题,我一直在这样做:
while true; do
inotifywait -e attrib /path/to/file
chown userid:usergroup /path/to/file
done
Run Code Online (Sandbox Code Playgroud)
但我真的很想知道如何找出哪个进程正在即时修改文件并一劳永逸地解决这个问题