Re: (no subject)

From: Bryan Elliott (redhat_at_ellijay.net)
Date: 04/29/04

  • Next message: Huan Deng: "Re: Re: (no subject)"
    Date: Thu, 29 Apr 2004 01:23:59 -0400
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    

    Huan Deng wrote:

    >hi:
    > just now i deleted user root by mistake.And now i can't add users and do many other things.What should i do to recover root?
    > thank u..~
    >
    >  
    >
    >       
    >
    >
    > Huan Deng
    > hdeng@microscience.com.cn
    > 2004-04-29
    >
    >
    >
    > ------------------------------------------------------------------------
    >
    You have to edit the passwd file and the shadow file to add root back
    with proper gid# you can do this in singleuser mode. just copy your
    password part of the shadow file in for root and use it or once you have
    it added back us passwd to change it back to what it should be.

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Huan Deng: "Re: Re: (no subject)"

    Relevant Pages

    • Re: root password gone AWOL!
      ... I know if you remove the "x" from the passwd file in the line ... the root account without asking for a password. ... which is responsible for the shadow file, ... AeoN wrote: ...
      (comp.os.linux.networking)
    • Re: Re: (no subject)
      ...   But how can i access to singleuser mode.When i reboot linux,there is no option to choose. ... >> just now i deleted user root by mistake.And now i can't add users and do many other things.What should i do to recover root? ... >You have to edit the passwd file and the shadow file to add root back ... >password part of the shadow file in for root and use it or once you have ...
      (RedHat)
    • Re: [SLE] Problem logging in as User
      ... > I installed Suse 9.0 pro onto my desktop at work and everything seemed to work ... > I can log in as root with out any problems. ... specified in the passwd file correctly. ... Or if you are using the GUI tools go to the user/group tool and delete ...
      (SuSE)
    • RE: Have I been hacked? Shadow file deleted
      ... Only I have the root password, that I change every time the shadow file is ... Last resort is to do a complete bare metal install again and keep root ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list -- ...
      (Fedora)
    • Re: passwd file
      ... Have a question regarding the lastupdate field in the passwd file. ... > machines and each has a root whose password has not been changed for at ... I'm not sure on the exact formula to ...
      (comp.unix.aix)