- How To: Recover the Linux root password
- Environment
- Situation
- Resolution
- Additional Information
- Disclaimer
- How to Change the MySQL password in SuSE Linux Enterprise Server 10 and 11
- Environment
- Situation
- Resolution
- Disclaimer
- How to reset lost root password on SUSE Linux Enterprise Server
- Here is how to reset a forgotten root password on Novell SUSE
- Share this:
How To: Recover the Linux root password
This document (3003803) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 9
SUSE Linux Enterprise Server 8
Situation
Resolution
- Boot server from the installation CD.
- Then select any installation method or Rescue System.
- At the first installation screen when selecting language, press ctrl-alt-f2 to open a virtual console. Note: If you selected Rescue System, select your keyboard language and then a Rescue Login prompt should appear. Login as root .
- Type
Additional Information
The command » mount-rootfs-and-do-chroot.sh » has been added to the rescue system of later versions of SUSE Linux Enterprise to ease the process of mounting the root device as well as the proc, sys and dev directories. The script is used as follows below:
1.) mount-rootfs-and-do-chroot.sh , e.g.: mount-rootfs-and-do-chroot.sh /dev/sda4 or in case the root device resides on a LVM device: mount-rootfs-and-do-chroot.sh /dev/rootvg/root 2.) mount -a
The mount -a command inside the chroot environment ensures all other filesystems specified in /etc/fstab are mounted as well.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented «AS IS» WITHOUT WARRANTY OF ANY KIND.
- Document ID:3003803
- Creation Date: 18-Jan-2007
- Modified Date:16-Sep-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com
How to Change the MySQL password in SuSE Linux Enterprise Server 10 and 11
This document (7009745) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11 Service Pack 1
SUSE Linux Enterprise Server 11 Service Pack 2Situation
Resolution
Steps to change the administrator password on SLES10 and 11:
1.) Ensure that mysqld and mysql aren’t loaded
rcmysql stop
pkill mysql2.) Run the following command from the server to load mysql without reading in user accounts
mysqld_safe —skip-grant-tables &3.) Hit Enter to return to the command prompt
4.) Launch the mysql console and load the mysql database
mysql —user=root mysql5.) Change the password
UPDATE user SET Password=PASSWORD(‘newpassword’) WHERE User=’root’;
flush privileges;
exit;NOTE: The word PASSWORD in the Password=PASSWORD(‘newpassword) line, is part of the command, change only the word newpassword to your new password.
6.) Test the change
mysql -u root -p
enter the new password when prompted. if it the mysql> prompt is displayed the change worked.7.) restart the mysql services
rcmysql stop
pkill mysql
rcmysql start
mysql -u root -p (then enter the password when prompted)Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented «AS IS» WITHOUT WARRANTY OF ANY KIND.
- Document ID:7009745
- Creation Date: 15-Nov-2011
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com
How to reset lost root password on SUSE Linux Enterprise Server
I had to use one of my virtual machines that I didn’t use for a while today, and of course I couldn’t remember the password I used for it, so I had to change it.
Here is how to reset a forgotten root password on Novell SUSE
This is a guide for Novell SUSE Linux Enterprise Server 10 SP3.
On the boot menu select the first option “SUSE Linux enterprise server” and press ‘e’ for edit.
On the second menu select the kernel option and press ‘e’ for edit.
type init=/bin/bash (leave empty space at the begging), and press ‘Enter’ and then ‘b’ to boot with that option.
The system will boot with the root user logged on, type passwd to change the password and input your new password, or just press ‘Enter’ for no password (blank password)
Share this: