LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-10-2008, 12:18 AM   #1
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Rep: Reputation: 30
Stop Mandriva from deleting files in /tmp


This is one of those "been bothering for years"-problems with Mandriva. It keeps on cleaning my /tmp folder.

I've uninstalled msec (because that kept on changing the folder rights wrong for the network drives), but I can't seem to figure out which service is it that always removes the temporary files. The files don't disappear under other distributions, like Ubuntu.

Many programs like OpenOffice.org and some specialized software I am using, are putting their files in /tmp and when Mandriva erases them, the programs won't work properly.

What can I change or uninstall to change this annoying behaviour?
 
Old 09-10-2008, 12:45 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does you /tmp have the sticky bit set?
 
Old 09-10-2008, 01:33 AM   #3
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
Does you /tmp have the sticky bit set?
It does:
Code:
$ ls -lhd /tmp
drwxrwxrwt 72 root root 3,2K Sep 10 09:32 /tmp
Mandriva has some service/program going through /tmp and deleting files that are N minutes old. Maybe it runs from crontab, I don't know. I am using crontab myself, so I can't disable it completely...
 
Old 09-10-2008, 03:28 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
In Mandriva Control Center, go to the "Startup" tab (near the end), click "Configure system startup", unroll the "Advanced" settings, uncheck the "Empty /tmp at each startup" checkbox.
This is all translated from French; labels may differ.

Yves.
 
Old 09-10-2008, 06:20 AM   #5
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by theYinYeti View Post
uncheck the "Empty /tmp at each startup" checkbox.
That setting is related to the tmpfs filesystem for /tmp and already unchecked.

I don't need the system to retain the temporary files at reboot, my problem is that Mandriva keeps continuously deleting the files while running.
 
Old 09-10-2008, 07:17 AM   #6
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
More information about the issue:

Mandriva seems to delete temporary files periodically only from the users' tmp folders (/home/user/tmp), not from /tmp itself. The users' tmp folders also have the sticky bit set.

I created an empty file to there and in 15 minutes it was gone. Same with OpenOffice.org, the program started to fail saving after about 15 minutes (due to its required temporary files missing).

Last edited by make; 09-10-2008 at 07:18 AM.
 
Old 09-10-2008, 10:43 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,656
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I'd suggest that you configure those programs to have their own folder, custom install options.

That should negate the problem you have if it is a mandriva setting, It has never happend to me like that, I generally have to empty it my self when it gets too big (Mb's)

I have found msec to be very very useful, even though attacks are rare.

regards, Glenn

ps, check out the sweeper app. and it's config. Available with newer releases of mandriva. 2009.0.rc1

Last edited by GlennsPref; 09-11-2008 at 12:22 AM.
 
Old 09-11-2008, 12:23 AM   #8
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by GlennsPref View Post
Hi, I'd suggest that you configure those programs to have their own folder, custom install options.
I can configure my programs, but my friends and customers will still keep on having the same problems, unless I configure every program on their Mandrivas as well.

This problem was also reported as a bug on the OpenOffice.org site. A workaround is to simply change the program's temp folder, but the actual solution would be to find the Mandriva service that keeps emptying the temp folders. But I can't find the service from crontab.
 
Old 09-11-2008, 01:14 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Does mandriva use tmpfs (i.e. could that be a feature of the file-system)?

When you open a file in /tmp and wait for the eerie deleter there should be a collision of rights. What I mean is, usually a second process can't wrest control away from another. So there might at least some error in one of the logs -- sorry, no better idea here...

Last edited by JZL240I-U; 09-11-2008 at 02:57 AM.
 
Old 09-11-2008, 02:04 AM   #10
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U View Post
Does mandriva use tmpfs (i.e. could that be a feature of the file-system)?
That is actually a possibility. It does use tmpfs.

I can't find anything regarding to this from my logs. I googled for tmpfs and didn't find so far anything about a feature deleting files older than N minutes, but I think that might be the best shot so far.

Does anyone have information on tmpfs, whether it has this kind of functionality?
 
Old 09-11-2008, 02:15 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
On SuSE, you can change a setting to have files in /tmp deleted if they are older then a certain amount. Mandriva may be doing the same thing.

On SuSE, this is performed in a cron job and configured in /etc/sysconfig/cron. You might try looking there or in your cron jobs. Look in MCC for a cron wizard as well.
 
Old 09-15-2008, 07:20 AM   #12
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
I've gone through /etc/cron*, my own cron jobs and everything related in MCC, but I can't find any job that deletes the files in tmp folders. crontab is the only scheduling daemon I run.

Could it be hard-coded in tmpfs? Any option for /etc/fstab to disable the feature?
 
Old 09-15-2008, 07:54 AM   #13
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
And then there is tmpwatch:

http://gd.tuwien.ac.at/linuxcommand....tmpwatch8.html

Maybe that is of help...
 
Old 09-17-2008, 12:32 AM   #14
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U View Post
And then there is tmpwatch:
I renamed /usr/sbin/tmpwatch to something else so the system wouldn't find and run it.

Let's see what happens...
 
Old 09-17-2008, 02:30 AM   #15
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Original Poster
Rep: Reputation: 30
Once again, the files and folders I created disappeared... even with tmpwatch "removed". This is weird, what service is it deleting my temporary files?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesn't chmod +t stop others from deleting my files in Ubuntu HGeneAnthony Linux - General 4 10-27-2006 04:04 PM
How to stop Mandriva from deleting updates after they are installed hctham Mandriva 2 03-16-2006 08:35 PM
Deleting tmp files satimis Fedora 6 10-31-2004 08:59 PM
deleting /tmp on boot-up perry Linux - Security 1 07-22-2004 12:36 AM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration