LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-31-2009, 10:08 AM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
recovering "lost" users..... probably stupid question (stupid user.......)


Hey ho!

Nice dist upgrade to Ubuntu 9.10 this morning.........not!

To start with, the dist upgrade seemed to be going Ok, but it "lost" my partners login.

Her /home is still there, but it wouldn't let me add her username again, it just comes up with the same error about there already being a /home/username partition for her.

Since then, I tried to cure this with the "idiot windows user cure all" and downloaded and re-installed (mainly because I'm an impatient idiot), this has resulted in loosing my login as well. I can still see my /home/bigjohn partition area in the /home partition but I can't add my username either.

I've managed to get round this for the moment by adding a completely new user called "bigjohnspc" but I'm hoping that when I've reinstated our normal user names I can dump that.

Can someone kindly point me in the right direction please as this is stressing me out like you wouldn't believe........ ?

regards

John
 
Old 10-31-2009, 10:42 AM   #2
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by bigjohn View Post
To start with, the dist upgrade seemed to be going Ok, but it "lost" my partners login.

Her /home is still there, but it wouldn't let me add her username again, it just comes up with the same error about there already being a /home/username partition for her.

When this happens, I tend to think that the UID has changed for the user. *Nix tends to look at the numeric UID rather than the user's name.

What happens when compare the UID of your passwd file and the UID of your old 'bigjohn' home directory, like this:

Code:
export USER='bigjohn'; ls -ln /home | grep $USER | awk '{print $3}'

grep $USER /etc/passwd | awk -F: '{print $3}'
Do the UID's differ? Post the output of those commands, please.
 
Old 11-01-2009, 12:00 AM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by wfh View Post
When this happens, I tend to think that the UID has changed for the user. *Nix tends to look at the numeric UID rather than the user's name.

What happens when compare the UID of your passwd file and the UID of your old 'bigjohn' home directory, like this:

Code:
export USER='bigjohn'; ls -ln /home | grep $USER | awk '{print $3}'

grep $USER /etc/passwd | awk -F: '{print $3}'
Do the UID's differ? Post the output of those commands, please.
no, both pieces of code answered the same thing - 1000.
 
Old 11-01-2009, 11:38 AM   #4
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by bigjohn View Post
no, both pieces of code answered the same thing - 1000.
Next thing....is there a hash for her password in /etc/shadow? Was all authentication wiped out (probably would be unless you preserved it)?
 
Old 11-07-2009, 11:25 AM   #5
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Quote:
Originally Posted by wfh View Post
Next thing....is there a hash for her password in /etc/shadow? Was all authentication wiped out (probably would be unless you preserved it)?
Thanks for the assist wfh, I just got too impatient and eventually just saved what I could from my /home and copied that to the shared FAT32 partition and then just did a re-install but also formatted the /home as well.

I never did find out what happened to my firefox bookmarks and stuff like that, those just seemed to disappear despite copying all my /home to the shared partition.

Ah well, that'll teach me to believe it when they offer upgrades. I'll just have to download as burn a disc of the new version next time. It still seems that even within the same distro, that upgrading is very precarious and not to be trusted, whereas it does seem less problematic to do a full install of the newer version. Why that might be I don't know but it seems to have been like this forever..... why "they" can make it so that's it's a painless/lossless upgrade? well I don't know enough about it to even guess...

thanks again for the assist

regards

john
 
Old 11-07-2009, 03:20 PM   #6
CharlieBigley
LQ Newbie
 
Registered: Nov 2009
Location: Cheshire, England
Distribution: Edubuntu
Posts: 3

Rep: Reputation: 0
Dedicated partition for /home

I have a theory that if you put /home onto a dedicated partition, this will preserve it when you re-install or upgrade - you would just tell the new set-up process to mount /home on this partition. Furthermore, it may be possible to have two separate Linux installations sharing the same data.

I have never done this myself, but plan to do so next time I upgrade. I'd be pleased to hear from anyone else whether this would work, or whether the problem of UUIDs mentioned above would screw thing up.
 
Old 11-07-2009, 06:51 PM   #7
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by CharlieBigley View Post
Furthermore, it may be possible to have two separate Linux installations sharing the same data.
That's a bad idea. The /home on a separate partition is a good thing, but don't have 2 separate installations using the same home directory. If you have different versions of the same program on each install, they could mess up your config files.
 
  


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
Is there a forum virus that creates all these stupid "which distro is best" threads? mark_alfred LQ Suggestions & Feedback 12 06-26-2009 08:01 AM
Stupid question: if [ "$i" == `$(cat ${LOGFILESSHD} | grep "${i}" )` ] ; then frenchn00b Programming 6 05-19-2008 05:16 PM
stupid " & ' question Xeratul Programming 8 05-29-2007 01:56 PM
Another stupid-a$$ newbie "how do I install xyz" thread Randux Slackware 20 03-29-2006 02:59 AM
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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