LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-28-2005, 07:20 PM   #1
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Rep: Reputation: 30
Help! All user accounts are gone after uninstalling quasar


I've got Ubuntu Hoary. I compiled Quasar from source and created a deb file using checkinstall and then installed it with dpkg. It did not work so I uninstalled it with Synaptic. For some wierd reason all my user account are gone now. I cannot login into my Ubuntu, because firstly, gdm does not start, complaining about gdm.config and secondly, when I have eventually console, it rejects any user name/login.

I've taken a look at /etc booting from knoppix and did not find any passwd file there, though I've got passwd.lock.

I've got a feeling that it happened because Quasar creates a user named Quasar when installed. I think what might happen was that it removed all users for some reason instead of only this Quasar.

I really need help because I cannot do anything at my PC now, Windows is killing me. I guess I have to restore users in some way but have no idea how to do it.
 
Old 06-29-2005, 02:14 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
There's probably a package that contains a 'base' configuration for passwd, then you could re-add any actual user accounts that you have added. Or, you could just restore from backups: you did make a backup, right?
 
Old 06-29-2005, 03:43 AM   #3
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 30
I tried to install base package and add new users but it failed and it does not allow to add users without installing a base package.

I've got the following message when try to boot:

Quote:
gdm user does not exist please correct gdm configuration
basically I need to find a way to add a user...

and you're right, I've not got a backup, silly me....
 
Old 06-29-2005, 08:48 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Is there a backup passwd file? It's often called '/etc/passwd-'
 
Old 06-29-2005, 08:53 AM   #5
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 30
Nothing. I really do not know what happened.

One advice was to boot from live or recovery cd and chroot into existing install and then create users from their. However, I do not know what happened to all other ssytem users and groups.

I have not tried it yet, will do when back home.
 
Old 06-29-2005, 06:35 PM   #6
foxy123
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 30
Well I have done the following:

1. Installed Ubuntu on my second HD
2. Set up users as they were on my main installation
3. Copied the following files from a new /etc to an old /etc:
group
gshadow
passwd
shadow
sudoers
4. Edited menu.lst to add option to boot my old installation

And pretty much that's it. I had to change ownership of users homes, because they were messed up.

Now it works. Hopefully it will be fine.

The only question left is how to point grub to my old menu.list again, because it now uses menu.list from a second HD?
 
Old 06-29-2005, 07:08 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I generally use lilo, so I'm of little help there, sorry. But I'm glad your main problem was able to be resolved.
 
  


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
User Accounts Cool_Hand_Luke Linux - Newbie 6 08-24-2005 08:35 PM
user accounts metallica1973 Linux - Security 2 06-19-2005 05:35 PM
User Accounts Verbal Kint Linux - Security 12 06-18-2005 12:11 AM
User Accounts Kemik Linux - Newbie 13 01-12-2005 04:24 PM
User Accounts MrJoshua Linux - General 3 01-10-2003 08:30 AM

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

All times are GMT -5. The time now is 08:15 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
Open Source Consulting | Domain Registration