Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Open Suse (http://quantrinet.com/forum/forumdisplay.php?f=95)
-   -   Reset/recover the ROOT password in openSUSE (http://quantrinet.com/forum/showthread.php?t=4141)

hoctinhoc 02-11-2009 07:07 PM

Reset/recover the ROOT password in openSUSE
 
How to reset/recover the ROOT password in openSUSE



Don’t have to mention the panic that kicks in when you have forgot or misplaced your root user password. Like most other operating systems, openSUSE helps you to recover or reset the root password from the console. Please try the following to reset/recover root password. This should work on openSUSE 11.0 & openSUSE 10.x (tested on openSUSE 10.3):

1. Boot the system and select the normal boot menu from the list. Once selected, in the “Boot Options” box type

Mã:

“init=/bin/bash” if you are using GRUB Boot loader
“linux init=/bin/bash” if you are using LILO Boot Loader



This will launch you straight into a Bash shell prompt which comes up even before the Single User mode loads and has the “/” root file system mounted.
Do a mount command to check if the root file system “/” is mounted as Read-Write. In my system, it indeed mounted as Read-Write.


Else, you may need to remount the “/” file system with read-write as follows:

Mã:

opensuse11:~ # mount -o remount,rw /



Now, simply type the passwd command and enter a new password:

Mã:

opensuse11:~ # passwd
Changing password for root
New Password:
Reenter New Password:
Password changed



Reboot the system and you are back in business.

Mã:

opensuse11:~ # reboot



Chuc thanh cong


:battay:


Bây giờ là 06:35 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.