I deleted root

jludwig wralphie at comcast.net
Thu Apr 29 13:12:47 UTC 2004


On Thu, 2004-04-29 at 03:46, Lance wrote:
> You should be able to boot into single-user mode...
> 
>  If it boots up with LILO, when it says "boot:", type in "linux single".
> 
>  If it boots up with GRUB, select the linux entry, and type "e" to edit. Select the
>  line that starts with "kernel", and type "e", again. At the end of the line, add a
>  space and "single". Hit [enter] to get back to the main GRUB menu, and type "b"
>   to boot.
> 
>  Once you're in single-mode, you can reset the root password with...
> 
>   passwd
> 
> Huan Deng wrote:
> 
> > hi :
> >
> >     just now i have deleted user root by mistake,now i can't add user and do mang other things.What should i do to recover root?
> >   thak u
> >
> > ¡¡¡¡
> >
> > ¡¡¡¡¡¡¡¡¡¡¡¡¡¡
> >
> >               Huan Deng
> >               hdeng at microscience.com.cn
> >               2004-04-29
> >
> >   ------------------------------------------------------------------------
> >                  Name: FACE-3.GIF
> >    FACE-3.GIF    Type: GIF Image (image/gif)
> >              Encoding: base64
> >
> >   ------------------------------------------------------------------------
> > _______________________________________________
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
You can manually add root by;
1) mkdir /root
2) edit /etc/passwd and add the line
   root:x:0:0:root:/root:/bin/bash
   at the top of the file.
3) execute < passwd root >
4) reboot


-- 
jludwig <wralphie at comcast.net>






More information about the Redhat-install-list mailing list