root@xxxx:~ # su -m mrtg -c '/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg' 2014-08-18 00:11:20: ERROR: Creating templock /usr/local/etc/mrtg/mrtg.cfg_l_5566: Permission denied at /usr/local/bin/mrtg line 1961.
解決方法很簡單,只要:
root@xxxx:~ # chown -R mrtg /usr/local/etc/mrtg/
就可以了。
怎麼那麼巧,就剛好出現 5566?