Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emptying /tmp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Sat Jul 31, 2004 7:09 am    Post subject: emptying /tmp Reply with quote

Hi guys,

I have /root on a 5 gig partition with a seperate /home, but now I'm getting all kids of errors about /tmp being full. How do I empty it, and I read something about having a cron-damon doing this for you, can anyone explain it to me?

Thanx
Dswissmiss
Back to top
View user's profile Send private message
orionrobots
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 289
Location: London, Uk

PostPosted: Sat Jul 31, 2004 8:33 am    Post subject: Reply with quote

In many cases - cleaning out tmp can depend on what you have running at the time. As long as any work from a desktop app is saved, /tmp is okay to clean, as deamons and system process will use /var.

Even if someone has something like a KDE session open, removing temp will more slow them down that destroy what is going on.

cron can be set up to clean out tmp with someting like this in cron.daily or cron.weekly:
Code:

#!/bin/sh

cd /tmp
rm -rf

I would name it cleantmp or something.
_________________
Danny Staple, curator of http://orionrobots.co.uk
Adopt an unanswered post initiative https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Sat Jul 31, 2004 4:47 pm    Post subject: Reply with quote

Oops, I deleted /tmp by mistake.

I made another directory called /tmp, but now some programs can't write to it, like gnome, and only root can start firefox for example.

How do I get it back?
Thanx
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1938

PostPosted: Sat Jul 31, 2004 5:01 pm    Post subject: Reply with quote

Code:

chmod a+rwx /tmp
chmod o+t /tmp


EDIT: Sorry, forgot /tmp... :oops:
_________________
Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong."


Last edited by mrsteven on Sat Jul 31, 2004 6:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Sat Jul 31, 2004 5:20 pm    Post subject: Reply with quote

Edit: It worked...thanx!
Back to top
View user's profile Send private message
polle
Veteran
Veteran


Joined: 28 Feb 2003
Posts: 1498
Location: Belgium

PostPosted: Sat Jul 31, 2004 7:06 pm    Post subject: Reply with quote

look also here:

https://forums.gentoo.org/viewtopic.php?t=202060&highlight=tmpwatch
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum