nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

debian boot into grub single user mode

This is a discussion on debian boot into grub single user mode within the Linux software forums, part of the Linux Getting Started category; What is the best way to boot into singe user mode so that i can fix root password, with redhat ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-29-2005, 11:33 PM
Guest
 
Posts: n/a
Default debian boot into grub single user mode

What is the best way to boot into singe user mode so that i can fix root password, with redhat linux it is easy but debian is new fore me please suggest or give me step by step info
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-01-2006, 01:21 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

At grub-boot loader screen. Select Recovery mode the version of the kernel that you wish to boot and type e for edit. Select the line that starts with kernel and type e to edit the line.

Go to the end of the line and type init=/bin/bash as a separate one word (press the spacebar and then type init=/bin/bash). Press enter key to exit edit mode.

Back at the GRUB screen, type b to boot into single user mode. This causes the system to boot the kernel and run /bin/bash instead of its standard init. This will allow us gain root privileges (w/o password) and a root shell.

If you wanna reset root password remount paritions
Code:
mount -rw -o remount /
Setup root password
Code:
passwd
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Boot thru grub linux_sym Getting started tutorials 5 03-25-2008 12:55 AM
Block Single User Login using root password sayan4u86 Networking, Firewalls and Security 0 09-28-2007 07:47 AM
How to start SSH in Single User Mode on FreeBSD NeoGreen Getting started tutorials 2 08-12-2007 04:05 AM
Howto boot freebsd single user mode raj All about FreeBSD/OpenBSD/NetBSD 1 12-12-2006 03:40 PM
Debian recovery mode read only access make it write access Donavit Linux software 1 12-30-2005 01:49 AM


All times are GMT +5.5. The time now is 09:51 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36