Re: [SLUG] lost login after upgrade

From: Dennis McDonald (dmcdon3@tampabay.rr.com)
Date: Sun Jan 08 2006 - 17:29:01 EST


Mike Branda wrote:

>On Sun, 2006-01-08 at 14:21 -0500, Eben King wrote:
>
>
>>On Sun, 8 Jan 2006, Dennis McDonald wrote:
>>
>>
>>
>>>I recently upgraded to FC4 and was not able to use uppercase character in
>>>the username, so I lost my /Dennis and had to create /dennis. Is there
>>>some way to get back to this login? I tried creating another user with
>>>/Dennis as home but got connection errors trying to login. I can copy
>>>documents and reinstall apps, but email and contacts are my biggest
>>>problem.
>>>
>>>
>>I think "usermod -l Dennis -d /home/Dennis dennis" will do what you want.
>>
>>
>
>
>
>
>>If that merely reassigns the home dir to /home/Dennis, then "rmdir
>>/home/Dennis && mv /home/dennis /home/Dennis" should do the trick.
>>
>>
>>
>
>Be careful with the above!! Eben, I think that his original files were
>in Dennis with the cap D. If so, the above will remove all the files he
>wants to save.
>
>If indeed the files you want to keep are in /home/Dennis:
>
>I would log out of the window manager if you're using one. Do a ctrl +
>alt + F1 and switch to the first console. Log in as root. Then do a
>mv /home/dennis /home/dennis_bak rather than the rm. If all goes well
>you can delete it later. Then depending on how much disk space you have
>(df -h), either do a:
>"cp -var /home/Dennis /home/dennis" (copy just in case something doesn't
>work out right) and then a:
>"chown -vR dennis.users /home/dennis"
>or if you already have a backup or don't have enough disk space:
>mv /home/Dennis /home/dennis and then a:
>"chown -vR dennis.users /home/dennis"
>
>The reason for the chown is it's possible that your login connection
>errors were a permissions issue. This just covers that base. Or to
>prove this before you do anything you can do an ls -lan on both the
>original Dennis dir and the new dennis dir and see if FC decided to give
>you a different userid. I ran into this on a few SuSE systems in the
>9.0 to 9.1 upgrade. They decided from version 9.1 on out to start the
>userid's at 1000 instead of 500 by default. I couldn't understand why
>my files weren't accessible at first and then realized that during the
>upgrade my new user had an ID of 1000 rather than 500. I missed it in
>the upgrade as it was in another tab in the user set up portion and I
>too it for granted that the userid would be the same.
>
>HTH.
>
>Mike Branda Jr.
>
>-----------------------------------------------------------------------
>This list is provided as an unmoderated internet service by Networked
>Knowledge Systems (NKS). Views and opinions expressed in messages
>posted are those of the author and do not necessarily reflect the
>official policy or position of NKS or any of its employees.
>
>
>
Thanks for the followup, the first usermod command changed the owner
of /home/dennis to Dennis, which did not look right, so I stopped. I'll
let you know,...
/Dennis is where the good stuff is so I know mv dennis Dennis is not right..
D
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:13:30 EDT