- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Reset root password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 03:37 PM
тАО03-09-2006 03:37 PM
Reset root password
Currently running RedHat 4.0 and the root password had been changed accidentally.
Anyway to have it change during a reboot?
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 04:12 PM
тАО03-09-2006 04:12 PM
Re: Reset root password
Hope this will help
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 04:34 PM
тАО03-09-2006 04:34 PM
Re: Reset root password
Steps to boot into single-user mode:
If you are using GRUB, use the following steps to boot into single-user mode:
If you have a GRUB password configured, type p and enter the password.
Select Red Hat Linux with the version of the kernel that you wish to boot and type e for edit. You will be presented with a list of items in the configuration file for the title you have selected.
Select the line that starts with kernel and type e to edit the line.
Go to the end of the line and type single as a separate word (press the [Spacebar] and then type single). Press [Enter] to exit edit mode.
Back at the GRUB screen, type b to boot into single-user mode.
If you are using LILO, at the LILO boot prompt (if you are using the graphical LILO, you must press [Ctrl]-[x] to exit the graphical screen and go to the boot: prompt) type:
linux single
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 06:15 PM
тАО03-09-2006 06:15 PM
Re: Reset root password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 08:23 PM
тАО03-09-2006 08:23 PM
Re: Reset root password
Do the following:
Boot using cd:
at boot prompt do:
linux rescue
thenb
chroot /mnt/sysimage
passwd
(give new password)
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 09:08 PM
тАО03-09-2006 09:08 PM
Re: Reset root password
I had managed to login to server and change the root access.
Using command prompt I am able to useradd and groupadd etc.
But when running the GUI User and Group I got the following error messages
"The user database cannot be read" This problem is most likely caused by a mismatch in /etc/passwd and /etc/shadow. The program will exit now.
I checked the /etc/passwd and /etc/shadow but no mismatch to the users account.
Please advise me.
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2006 09:48 PM
тАО03-09-2006 09:48 PM
Re: Reset root password
Please run the consistency check on the passwd and shoadow file ..give the foll command:
pwdck and
grpck
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2006 05:26 AM
тАО03-10-2006 05:26 AM
Re: Reset root password
pass*.lock
shad*.lock
This file may be preventing the access to the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2006 05:16 PM
тАО03-10-2006 05:16 PM
Re: Reset root password
Read the man page for "pwck" then "pwconv".
Scan /etc/login.defs