Re: [SLUG] lost login after upgrade

From: Dennis McDonald (dmcdon3@tampabay.rr.com)
Date: Sun Jan 08 2006 - 19:55:54 EST


Mike Branda wrote:

>On Sun, 2006-01-08 at 17:13 -0500, Eben King wrote:
>
>
>>On Sun, 8 Jan 2006, 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 your files are in /home/Dennis, rmdir won't mess with them (it'll only
>>remove _empty_ dirs), but usermod might.
>>
>>
>
>ahhhh
>
>
>
>>>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.
>>>
>>>
>>Actually, there may still be some files in use. Where are the files now?
>>
>>
>>
>
>On my system lsof says I'm good usually but you're right to that
>possibility too.
>
>
>
>>>The reason for the chown is it's possible that your login connection
>>>errors were a permissions issue.
>>>
>>>
>>Yeah, and does "usermod -l" (which may be all that's needed, depending on
>>where the files are) create a new UID or keep the old one? I bet it just
>>changes $LOGNAME, without changing the UID.
>>
>>
>
>
>-----------------------------------------------------------------------
>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
I moved /dennis to _bak, then copied /Dennis to /dennis, then chown
/dennis, and all is back to the way it was.

Thanks again

-----------------------------------------------------------------------
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:14:15 EDT