Results 1 to 3 of 3

Thread: Passwd delete -- Account recovery

  1. #1
    Join Date
    Sep 2012
    Beans
    1

    Passwd delete -- Account recovery

    Hello.

    Upon deleting the /etc/passwd file (without knowing what it would do -- I'm not doing that again) and realizing that I had boot errors, I booted up into an Ubuntu 12.04 Live USB and copied the passwd file on it into the /etc directory of my passwd-less partition. Whenever I booted into Ubuntu, I was allowed through, but am only allowed in a Guest account, with my previous account not showing up at all. Also, whenever I try and access the /home directory, I am informed that I do not have the permission to access it.

    If anyone can help me, or can direct me to a thread where a problem like this has already been solved, I will be grateful. Thank you.

  2. #2
    Join Date
    Sep 2012
    Beans
    25

    Re: Passwd delete -- Account recovery

    It may just be easier to re-install, although this is not ideal if you have alot of data on the system.

  3. #3
    Join Date
    Apr 2012
    Beans
    6,904

    Re: Passwd delete -- Account recovery

    It should be possible to re-add the users (useradd or adduser) from the recovery console, specifying the existing home dirs. You may need to tweak things to make sure the UIDs / GIDs / home dir ownerships all line up - good luck

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •