Redhat retrieve the super user passwords Unix / Linux - Argent Software

2008/07/30

Redhat retrieve the super user passwords Unix / Linux

The author of the machine is equipped with Redhat Linux7.2 operating system, installed the KDE and GNOME desktop, the only established at the time of installation in the super-user root, but the super-user privileges too, is only applicable to system maintenance and installation of software use, Should use the normal use of ordinary users to log. So it is necessary to create a new general users. This inverted also simple, open the %26quot;menu → → account management system%26quot;, adding a user does not have to! Could be trouble on the matter to: withdraw from the re-use after the root login, enter a password, ah! Wrong password, the system can not Jin. I know that Redhat7.2 under the user%26#39;s password is stored in / etc / shadow, should find a breakthrough.


1, to insert the installation CD to restart the machine, press the start promptly at the Del key to enter the CMOS, the boot sequence to launch first CD-ROM, so started the Linux installation process, according to F5, the prompts enter into the Linux rescue Into rescue mode, followed by the choice of language and keyboard, returns to direct, procedures have been prompted to drive on the Linux system installed to / mnt / sysimage, then a super user prompt #.

2, etc access to the hard drive directory: cd / mnt / sysimage / etc,先做-contingency backup:

cp shadow shadow.old modify shadow document attributes to be written: chmod + w shadow and then use vi revised: find the root user information with the line: root :....:, a colon between the two is encrypted Password, it removed (a colon can not be cut), archiving exit. This is the root password on the air.

Will not use vi users can take the following approach: to find a DOS floppy disk inserted, the Shadow copy to the DOS-on: mcopy shadow a: / and then used in Windows Notepad in the annex to the revised, open the file the attention of a certain type Elected to withdraw from all the documents (*.*), archiving. Finally, Khao back:

mcopy a: / shadow mnt / sysimage / etc

3, Shadow of the back read-only attribute: chmod-w shadow, the final input from Exit Remove CD-ROM.

4, for safety reasons, after the resumption of the terminal window to give root add a password.

0 Comments: