hi to ALL,,
im running CentOS 4.3 Final, one thing experience in my box i have /tmp (partition/directory) inside that i have a directory installer and i file one week after the file and directory (installer) inside the /tmp is missing, can i retrieve that directory and file? it is normal some file in the /tmp is missing?,im not deleting that file and directory. hope you can help me ,thank you in advcance,im newbie in CentOS Linux.
CIAO, dennis
On 6/15/06, dennis dennis@bulacan.gov.ph wrote:
im running CentOS 4.3 Final, one thing experience in my box i have /tmp (partition/directory) inside that i have a directory installer and i file one week after the file and directory (installer) inside the /tmp is missing, can i retrieve that directory and file? it is normal some file in the /tmp is missing?,im not deleting that file and directory. hope you can help me ,thank you in advcance,im newbie in CentOS Linux.
Did you reboot in that time period?
If so, the following code in /etc/rc.d/rc.sysinit may explain what happened; if it doesn't, someone else may know of additional ways to lose the contents of the /tmp (read: temporary) directory.
# Clean up various /tmp bits rm -f /tmp/.X*-lock /tmp/.lock.* /tmp/.gdm_socket /tmp/.s.PGSQL.* rm -rf /tmp/.X*-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/hsperfdata_* \ /tmp/kde-* /tmp/ksocket-* /tmp/mc-* /tmp/mcop-* /tmp/orbit-* \ /tmp/scrollkeeper-* /tmp/ssh-* # Make ICE directory mkdir -m 1777 -p /tmp/.ICE-unix >/dev/null 2>&1 chown root:root /tmp/.ICE-unix
rgds/ldv
hi sir lary thank you for your quick responce, yesterday one file missing when is reboot my box i checked /tmp the file is missing ,so i checked /etc/rc.d/rc.sysinit for a while for what's happening,thank you again sir lary
----- Original Message ----- From: "Larry Vaden" vaden@texoma.net To: "CentOS mailing list" centos@centos.org Sent: Friday, June 16, 2006 11:06 AM Subject: Re: [CentOS] Missing File
On 6/15/06, dennis dennis@bulacan.gov.ph wrote:
im running CentOS 4.3 Final, one thing experience in my box i have /tmp (partition/directory) inside that i have a directory installer and i
file
one week after the file and directory (installer) inside the /tmp is missing, can i retrieve that directory and file? it is normal some file
in
the /tmp is missing?,im not deleting that file and directory. hope you
can
help me ,thank you in advcance,im newbie in CentOS Linux.
Did you reboot in that time period?
If so, the following code in /etc/rc.d/rc.sysinit may explain what happened; if it doesn't, someone else may know of additional ways to lose the contents of the /tmp (read: temporary) directory.
# Clean up various /tmp bits rm -f /tmp/.X*-lock /tmp/.lock.* /tmp/.gdm_socket /tmp/.s.PGSQL.* rm -rf /tmp/.X*-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/hsperfdata_* \ /tmp/kde-* /tmp/ksocket-* /tmp/mc-* /tmp/mcop-* /tmp/orbit-* \ /tmp/scrollkeeper-* /tmp/ssh-* # Make ICE directory mkdir -m 1777 -p /tmp/.ICE-unix >/dev/null 2>&1 chown root:root /tmp/.ICE-unix
rgds/ldv _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 6/15/06, dennis dennis@bulacan.gov.ph wrote:
hi sir lary thank you for your quick responce, yesterday one file missing when is reboot my box i checked /tmp the file is missing ,so i checked /etc/rc.d/rc.sysinit for a while for what's happening,thank you again sir lary
There is also a program called tmpwatch which runs by default in a daily cron job. This process cleans out older files in /var/tmp and /tmp in an effort to help administrators. Longterm things should not be stored in /tmp or /var/tmp as they are temporary directories, and can be subject to cleanings such as this. For more information about the process, man tmpwatch or take a look at the cron job in /etc/cron.daily/