Google
  Web www.spinics.net

Re: Lost password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Oct 24, 2006, at 8:37 PM, Doug wrote:

Lost the system password for RH Enterprise 3. User password works
just fine but I can't change any files. Is there a way to install
a new password? I have tried Red Hats "single user mode", but it
went to a kernel panic each time.


I haven't used RH for about 10 years, but the easiest way to handle that sort of problem (assuming you don't have the ability for a normal user to run root commands with sudo) is to boot with a CD- based distro (such as Knoppix), mount the / directory of the hard drive and edit /etc/password or /etc/shadow (if that exists) to delete the second field of the root line. Change

root:something:something_else  to
root::something_else

This will allow root to login without a password.

Of course, after rebooting to your RH system and logging in as root you should immediately assign a new password with the passwd command. In addition to using Knoppix or similar, some installation CDs will allow you to mount / and edit the file in the same way (only a limited set of editors may be available, but vi or similar should be there).

Bob, N7XY





-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Site Home]     [Linux Newbie]     [Kernel Newbies]     [Memory]     [Security]     [Netfilter]     [Linux Admin]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [ARM Linux Kernel]     [Linux Networking]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]


  Powered by Linux