<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://munkjensen.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Solaris_root_password_recovery</id>
	<title>Solaris root password recovery - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://munkjensen.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Solaris_root_password_recovery"/>
	<link rel="alternate" type="text/html" href="https://munkjensen.net/wiki/index.php?title=Solaris_root_password_recovery&amp;action=history"/>
	<updated>2026-04-25T00:09:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://munkjensen.net/wiki/index.php?title=Solaris_root_password_recovery&amp;diff=101&amp;oldid=prev</id>
		<title>Admin at 06:44, 10 June 2015</title>
		<link rel="alternate" type="text/html" href="https://munkjensen.net/wiki/index.php?title=Solaris_root_password_recovery&amp;diff=101&amp;oldid=prev"/>
		<updated>2015-06-10T06:44:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:44, 10 June 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Requirements:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Solaris]]&lt;/ins&gt;Requirements:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# you will have to use a new password though.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# you will have to use a new password though.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# You need to have physical access to the machine&amp;#039;s console&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# You need to have physical access to the machine&amp;#039;s console&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Naturally, you may not want anyone with physical access to the machine to be able to do the above to erase the root password. Suns have a security password mechanism in the PROM which can be set (this is turned off by default). The man page for the eeprom command describes this feature. If security-mode is set to &amp;quot;command&amp;quot;, the machine only be booted without the prom password from the default device (i.e. booting from CD-ROM or install server will require the prom password). Changing the root password in this case requires moving the default device (e.g. the boot disk) to a different SCSI target (or equivalent), and replacing it with a similarly bootable device for which the root password is known. If security-mode is set to full, the machine cannot be booted without the prom password, even from the default device; defeating this requires replacing the NVRAM on the motherboard. &amp;quot;Full&amp;quot; security has its drawbacks -- if, during normal operations, the machine is power-cycled (e.g. by a power outage) or halted (e.g. by STOP-A), it cannot reboot without the intervention of someone who knows the prom password.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Naturally, you may not want anyone with physical access to the machine to be able to do the above to erase the root password. Suns have a security password mechanism in the PROM which can be set (this is turned off by default). The man page for the eeprom command describes this feature. If security-mode is set to &amp;quot;command&amp;quot;, the machine only be booted without the prom password from the default device (i.e. booting from CD-ROM or install server will require the prom password). Changing the root password in this case requires moving the default device (e.g. the boot disk) to a different SCSI target (or equivalent), and replacing it with a similarly bootable device for which the root password is known. If security-mode is set to full, the machine cannot be booted without the prom password, even from the default device; defeating this requires replacing the NVRAM on the motherboard. &amp;quot;Full&amp;quot; security has its drawbacks -- if, during normal operations, the machine is power-cycled (e.g. by a power outage) or halted (e.g. by STOP-A), it cannot reboot without the intervention of someone who knows the prom password.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ps&lt;/del&gt;: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dont ask why i post this Geektips© article...&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;References&lt;/ins&gt;: [http://www.sunmanagers.org/pipermail/summaries/2004-January/004803.html here].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;I found it &lt;/del&gt;[http://www.sunmanagers.org/pipermail/summaries/2004-January/004803.html here].&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://munkjensen.net/wiki/index.php?title=Solaris_root_password_recovery&amp;diff=100&amp;oldid=prev</id>
		<title>Admin: Solaris root password recovery</title>
		<link rel="alternate" type="text/html" href="https://munkjensen.net/wiki/index.php?title=Solaris_root_password_recovery&amp;diff=100&amp;oldid=prev"/>
		<updated>2015-06-10T06:43:20Z</updated>

		<summary type="html">&lt;p&gt;Solaris root password recovery&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Requirements:&lt;br /&gt;
# you will have to use a new password though.&lt;br /&gt;
# You need to have physical access to the machine&amp;#039;s console&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Note the root partition; Solaris 8 uses &amp;lt;code&amp;gt;/dev/dsk/c0t0d0s0&amp;lt;/code&amp;gt; on the Ultra5/10 and Blade 100, &amp;lt;code&amp;gt;/dev/dsk/c0t1d0s0&amp;lt;/code&amp;gt; for Blade 1000.&lt;br /&gt;
&lt;br /&gt;
* Press the STOP and A keys simultaneously, or, on an ASCII terminal or emulator, send a &amp;lt;BREAK&amp;gt; to halt the operating system, if it&amp;#039;s running.&lt;br /&gt;
* Boot to single-user from CD-ROM &amp;lt;code&amp;gt;(boot cdrom -s)&amp;lt;/code&amp;gt; or network install/jumpstart server &amp;lt;code&amp;gt;(boot net -s)&amp;lt;/code&amp;gt;. For Solaris 8 use the CD-ROM labeled &amp;quot;Installation&amp;quot;. (If it asks you for a promt password, see below.)&lt;br /&gt;
* Mount the root partition on &amp;quot;/a&amp;quot;. &amp;quot;/a&amp;quot; is an empty mount point that exists at this stage of the installation procedure. For example: &amp;lt;code&amp;gt;#mount /dev/dsk/c0t0d0s0 /a&amp;lt;/code&amp;gt;&lt;br /&gt;
If the mount command fails and since &amp;quot;/a&amp;quot; always exists, then you either typed in the wrong device, OR the system is seeing the root partition as something else. Do a &amp;lt;code&amp;gt;&amp;quot;ls /tmp/dev/dsk&amp;quot;&amp;lt;/code&amp;gt; and see what is there. &amp;quot;c0t6&amp;quot; things are the CD-ROM, what is left is what one needs to try. On a Blade 1000/2000, choose &amp;lt;code&amp;gt;/dev/dsk/c1t1d0s0&amp;lt;/code&amp;gt;, and execute: &amp;lt;code&amp;gt;#mount /dev/dsk/c1t1d0s0 /a&amp;lt;/code&amp;gt;&lt;br /&gt;
* Set your terminal type so you can use a full-screen editor, such as vi. You can skip this step if you know how to use &amp;quot;ex&amp;quot; or &amp;quot;vi&amp;quot; from open mode. If you&amp;#039;re on a sun console, type &amp;lt;code&amp;gt;&amp;quot;TERM=sun; export TERM&amp;quot;&amp;lt;/code&amp;gt;; If you are using an ascii terminal or terminal emulator on a PC for your console, set TERM to the terminal type for example: &amp;lt;code&amp;gt;TERM=vt100; export TERM&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Edit the passwd file, &amp;lt;code&amp;gt;/a/etc/shadow&amp;lt;/code&amp;gt; (or perhaps in older versions, &amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;) and remove the encrypted password entry for root.&lt;br /&gt;
* Type: &amp;lt;code&amp;gt;&amp;quot;cd /; then &amp;quot;umount /a&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Reboot as normal in single-user mode &amp;lt;code&amp;gt;(&amp;quot;boot -s&amp;quot;)&amp;lt;/code&amp;gt;. The root account will not have a password. Give it a new one using the &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
PROM passwords:&lt;br /&gt;
Naturally, you may not want anyone with physical access to the machine to be able to do the above to erase the root password. Suns have a security password mechanism in the PROM which can be set (this is turned off by default). The man page for the eeprom command describes this feature. If security-mode is set to &amp;quot;command&amp;quot;, the machine only be booted without the prom password from the default device (i.e. booting from CD-ROM or install server will require the prom password). Changing the root password in this case requires moving the default device (e.g. the boot disk) to a different SCSI target (or equivalent), and replacing it with a similarly bootable device for which the root password is known. If security-mode is set to full, the machine cannot be booted without the prom password, even from the default device; defeating this requires replacing the NVRAM on the motherboard. &amp;quot;Full&amp;quot; security has its drawbacks -- if, during normal operations, the machine is power-cycled (e.g. by a power outage) or halted (e.g. by STOP-A), it cannot reboot without the intervention of someone who knows the prom password.&lt;br /&gt;
&lt;br /&gt;
Ps: Dont ask why i post this Geektips© article...&lt;br /&gt;
&lt;br /&gt;
I found it [http://www.sunmanagers.org/pipermail/summaries/2004-January/004803.html here].&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>