LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-16-2005, 03:44 PM   #1
garba
Member
 
Registered: May 2005
Location: Italy
Distribution: Crux
Posts: 62

Rep: Reputation: 15
kde, /tmp, /var/tmp and all that


i can't understand why kde keeps filling my /tmp and /var/tmp dirs with data from users activities, why not put this stuff in the user's home folder? this is beyond me, it recalls me of some stuff from redmond which can't help to spread files recording your activity across the HD... besides joking, is there a technical explanation as to why stuff like kdecache-<user> (for example) should livee there? what's worse this leaves trails of deleted user accounts, which have to be manually removed, and most of the times this dirs contain sensible data such as internet cache etc...
 
Old 06-16-2005, 04:20 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
yea future kde versions might have this stuff in a different place so it doesn't get cleaned for a faster boot
you can set it if you want with
export KDETMP=/path/to/wherever
in your .profile
the one in /var/tmp is konqueror and i don't know how to change
these directories are drwx------ so no one can look at them but user
as to why -- it's where tmp files are suposed to go -- in /tmp (duh) and after boot larger tmp files are suposed to go in /var/tmp
 
Old 06-16-2005, 05:22 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you have a gigabyte of swap space or more, you can use tmpfs for /tmp /var/tmp. In your /etc/fstab add or change

Code:
none          /dev/shm       tmpfs      size=1G,mode=1777      0 0
/dev/shm      /var/tmp       none       bind                   0 0
/dev/shm      /tmp           none       bind                   0 0
The problem is you have to tell users that files will be remove upon every boot up. Another problem is Linux will still cache tmpfs, so you will lose some memory.
 
Old 06-17-2005, 08:51 AM   #4
garba
Member
 
Registered: May 2005
Location: Italy
Distribution: Crux
Posts: 62

Original Poster
Rep: Reputation: 15
thanks for your replies, I'll go about setting tmpfx support on this box, looks like an elegant solution!
 
Old 06-17-2005, 12:31 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally posted by Electro
If you have a gigabyte of swap space or more, you can use tmpfs for /tmp /var/tmp. In your /etc/fstab add or change

i personally think putting this stuff (especially internet cache) in ram instead of on disk is a HUGE security risk.

anybody else with an opinion on that ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/var/tmp folder hardeep_ubhi Linux - General 4 10-02-2006 07:10 AM
/var/ and /tmp/ directories puishor Linux - General 5 06-25-2005 08:36 AM
/tmp /var/tmp Manuel-H Linux - General 3 04-23-2005 05:30 AM
Cleaning up /var and /tmp.... Whitehat Linux - General 3 01-04-2004 07:07 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 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