/tmp 안을 정리하는 유용한 cron 인 /etc/cron.daily/tmpwatch 를 사용하는데 error가 나올 수 있다.
error: failed to unlink /tmp: readonly
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp
/usr/sbin/tmpwatch "$flags" 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 720 "$d"
fi
done
-> 그리고 /var/tmp 는 720시간 이상 (30일 이상) 접근이 없으면 지운다.
-> 하지만 /tmp/readonly 는 readonly 파일이다.
-> 즉, 240 시간이 지났으나 삭제가 되지 않았던 것이다....
해결 : /tmp/readonly 파일을 최신것으로 갱신한다..(날짜만)
예) vim 으로 열어서 내용수정 없이 저장하면 된다
'Error Messeages' 카테고리의 다른 글
error: 'cap_t' undeclared (0) | 2012.05.11 |
---|---|
Can't locate auto/Image/Size/autosplit.ix (0) | 2012.03.19 |
/usr/bin/perl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory (0) | 2012.02.14 |
logwatch error (0) | 2012.02.14 |
Proftpd - Starting proftpd: - warning: unable to determine IP address of (0) | 2012.01.03 |