Re: Re: (no subject)

From: Huan Deng (hdeng_at_microscience.com.cn)
Date: 04/29/04

  • Next message: goodman: "Re: Re: (no subject)"
    Date: Thu, 29 Apr 2004 14:20:24 +0800
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    
    

    Bryan Elliott:

      But how can i access to singleuser mode.When i reboot linux,there is no option to choose. :(
     


    >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

    = = = = = = = = = = = = = = = = = = = =
                            


                                     
                   Huan Deng
                   hdeng@microscience.com.cn
                                            2004-04-29

    
    
    

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

    FACE-3.GIF
  • Next message: goodman: "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: (no subject)
      ... > 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 ...
      (RedHat)
    • 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: Incorrect Login for root
      ... Now I am able to login as root ... the passwd file and deleted the shadow file. ...
      (RedHat)
    • Re: Reseting root password Was: user name from security logs
      ... Like wise, remove the "x", which references the shadow file, from the ... root entry in the passwd file and hey presto. ... > referring to a Linux box or windows.... ... > and delete the admin password... ...
      (Security-Basics)