LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2011, 04:53 PM   #1
balajis
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Cannot login after deleting /tmp folder


Hi All,

I deleted unknowingly the /tmp folder to clear up some space. Now, I cannot login linux. I get an error message saying "GDM could not write to authorization file". Please help me log in. I have installed so many software and I donot want to reinstall linux again.

I have linux in vmware. Is there a way to update the OS in vmware?

Thanks in advance!
 
Old 08-26-2011, 05:41 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Log in on the text console (press ctrl+alt+f1)

run (as root): mkdir /tmp; chmod 1777 /tmp
 
Old 08-26-2011, 05:47 PM   #3
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
I think it 's not enough, you should restart gdm.
 
Old 08-26-2011, 08:27 PM   #4
balajis
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Awesome! It worked. I didn't need to restart gdm. I can login. Thank you so much!!

Just an info for beginners using linux through vmware:

If you have this problem, when you restart linux, just press F1, it takes you to a window where it shows the name of the OS installed. Type "a", it pops up a line
>> ..... "something"..... quiet

add a "1" after this line... like

>> ..... "something"..... quiet 1

I think the idea is just to login as a single user.

This one takes you to the command prompt.

#

Now if you do as @AlucardZero said, it works.

Thanks!
 
Old 08-26-2011, 10:21 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Quote:
Originally Posted by balajis View Post
Awesome! It worked. I didn't need to restart gdm. I can login. Thank you so much!!

Just an info for beginners using linux through vmware:

If you have this problem, when you restart linux, just press F1, it takes you to a window where it shows the name of the OS installed. Type "a", it pops up a line
>> ..... "something"..... quiet

add a "1" after this line... like

>> ..... "something"..... quiet 1

I think the idea is just to login as a single user.

This one takes you to the command prompt.

#

Now if you do as @AlucardZero said, it works.

Thanks!
To be more precise: when the grub menu pops up, press any key (say, the down arrow key) to interrupt the Grub countdown. I don't know what pressing 'a' or 'f1' is supposed to do. If there is a menu entry that says Single User Mode, choose it. Else arrow to a kernel line (the first or second), hit 'e' to edit, go down to the 'kernel' line and hit 'e' to edit, and append '1' or 'single' to the line. Enter out of the editor then 'b' to boot into single user mode.
 
  


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
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 08:17 AM
Stop Mandriva from deleting files in /tmp make Mandriva 23 09-19-2008 05:33 AM
/tmp folder bytez Linux - Security 9 10-24-2006 02:10 AM
Deleting tmp files satimis Fedora 6 10-31-2004 09:59 PM
deleting /tmp on boot-up perry Linux - Security 1 07-22-2004 01:36 AM


All times are GMT -5. The time now is 12:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration