View Full Version : Nuked my system

Mr tim esquire
12th August 2008, 02:00 PM
In a bout of frustration i tried to free some HD space by emptying the /tmp folder.
I accidently deleted the folder completely (sudo rm -rf /tmp)
I made a new temp dir but apps were alredy starting to throw warnings and wouldnt start. At reeboot the system makes it to the login screen and when i login it ticks for a bit before returning to the login again. When i try init 3/4/5 system gets stuck startin anacron.
Please help

12th August 2008, 02:16 PM
No promises, but try booting the install disc and doing an upgrade. It may replace what you need and will leave the rest alone.

Mr tim esquire
12th August 2008, 02:16 PM
I found this:

On Mon, 03 Jul 2000, you wrote:
> On Tue, Jun 27, 2000 at 08:20:54AM -0400, Thiessen David G DLVA wrote:
> > Like an idiot, I accidentally deleted my /tmp directory.
> > I recreated the directory, but after rebooting, X fails to
> > start. It seems to be stuck in an infinite loop trying to
> > start X or KDM.
> > I can boot into text mode fine.
> >
> > What can I do to get X back up and running...
> What are the permissions on the directory?
Known problem -- Mandrake has put some X stuff in /tmp. The
only solution is to uninstall and reinstall X.

has anyone done a reinstall of x?
know if this is risky or straightfoward?... I dont want to make things worse for myself here

Mr tim esquire
12th August 2008, 02:17 PM
will try upgrade and report back...

Mr tim esquire
12th August 2008, 02:27 PM
I Just chmod 777 /tmp and now it seems to be working (touching wood).
silly me :rolleyes:

12th August 2008, 03:06 PM
I was just going to mention that. :) /tmp needs to be written to by a variety of applications and users.

Though I should mention I just checked out the permissions on my /tmp and this is what I get:

drwxrwxrwt 21 root root 1480 2008-08-12 08:51 tmp

The t part, I believe, means the sticky bit is on for "other" users. I believe the way to get this set of permissions (rather than drwxrwxrwx) would be "chmod 1777 /tmp". The sticky bit part - t - means, according to this (http://www.delphifaq.com/faq/f1380.shtml):

do not let anyone delete this folder or change it's permissions

Of course, root can still delete it if he wants. :p

Mr tim esquire
12th August 2008, 10:09 PM
happy system.. happy me :p

12th August 2008, 10:51 PM
happy system.. happy me :p

yes you need to chmod 1777 /tmp the folder