<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://pic1.liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://pic1.liuxinxiu.com:80/freebsd_root_password/</link>
<title><![CDATA[【原创】freeBSD更改系统root密码，注：root安装系统默认为空]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Sun, 07 Nov 2010 11:26:47 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/freebsd_root_password/</guid> 
<description>
<![CDATA[ 
	<p><span style="color: #0000ff"><strong>本次教程使用的是：FreeBSD-8.1</strong></span></p><p>FreeBSD 5 之以后的版本，都按照如下步骤操作:</p><p>首先重启FreeBSD执行命令和linux一致：<span style="color: #ff0000">shutdown -r now</span></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-1.gif"><img height="119" alt="" width="675" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-1.gif" /></a></p><p>在系统启动提示以下画面时候按spacebar选择数字键：4 按enter进入单用户模式，图如下:</p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-2.gif"><img height="402" alt="" width="726" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-2.gif" /></a></p><p>待系统运行至，提示以下信息时：</p><p><strong><font color="#38761d">Enter full pathname of shell or RETURN for /bin/sh:</font></strong><br /><br /><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-3.gif"><img height="91" alt="" width="579" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-3.gif" /></a></p><p>再按Enter进入单用户，提示</p><p>挂载档案系统，输入：</p><p><span style="font-weight: bold"><span style="font-weight: bold"># fsck -p </span>&#92;&#92;文件档案系统檢查</span></p><p><span style="font-weight: bold"><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-4.gif"><img alt="" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-4.gif" /></a><br /><span style="font-weight: bold"># mount -u / </span>&#92;&#92;挂载 / </span></p><p><span style="font-weight: bold"><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-5.gif"><img alt="" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-5.gif" /></a><br /><span style="font-weight: bold"># mount -t ufs -a </span>&#92;&#92;挂载所有文件档案<br /></span></p><p><span style="font-weight: bold"><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-6.gif"><img alt="" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-6.gif" /></a></span></p><p>接下来开始重新设置root用户密码，输入：passwd 回车</p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-7.gif"><img height="259" alt="" width="720" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-7.gif" /></a></p><p><span style="font-weight: bold"># </span><font color="#0000ff" style="font-weight: bold; color: rgb(0,1,2)">passwd </font><font color="#0000ff" style="color: rgb(0,1,2)">&#92;&#92;</font>更改密碼，</p><p>&#92;&#92;现New password: 时候键盘输入你想设置的密码，这里无*号提示，记住你输入密码的位数！<br style="font-weight: bold" /><font color="#cc0000"><font style="font-weight: bold">New password:</font></font></p><p><font color="#cc0000"><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-8.gif"><img alt="" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-8.gif" /></a></font></p><p><font color="#cc0000"><font color="#000102">&#92;&#92;</font><font color="#000000">更改密碼，在出现Retype new password: 时候，键盘再次输入你上一步设置的密码！</font><br style="font-weight: bold" /><br style="font-weight: bold" /><font style="font-weight: bold">Retype new password:</font></font></p><p><font color="#cc0000"><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-9.gif"><img alt="" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-9.gif" /></a></font></p><p>返回到以下界面说明设置成功！</p><p><span style="font-weight: bold"><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-10.gif"><img height="323" alt="" width="720" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-10.gif" /></a></span></p><p><span style="font-weight: bold">之后输入：exit 退出，重新加载多用户。</span></p><p><span style="font-weight: bold"># </span><font color="#0000ff" style="font-weight: bold; color: rgb(0,1,2)">exit </font><span style="background-color: #ff0000"><strong><font color="#0000ff" style="color: rgb(0,1,2)">&#92;&#92;离开单用戶进入多用戶正常模式，再次启动系统，root用户使用新设置的密码进行登入！</font><br /></strong></span></p><p>==========================================================================<span id="1289128831936S" style="display: none"> </span></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-11.gif"><img height="192" alt="" width="582" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-11.gif" /></a></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-12.gif"><img height="178" alt="" width="506" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-12.gif" /></a></p><p><span style="color: #339966"><strong>验证完成！root用户进入系统的画面@！</strong></span></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-13.gif"><img height="423" alt="" width="718" src="http://at.liuxinxiu.com/2010/11/image/freebsd-root-password-13.gif" /></a></p><p><span style="color: #0000ff"><strong>==========================================================================</strong></span></p><p><span style="color: #0000ff"><strong>freeBSD 比较早的版本使用以下步骤：</strong></span></p><p><span style="color: #0000ff"><strong>==========================================================================</strong></span></p><p>重置root密码其实很简单<br />第一步:重启服务器,在出现模式选择时,选择单用户模式 选择 4(Boot FreeBSD in single user Mode) 系统出现提示,按回车确认继续<br />第二步:输入 fsck -y (检查系统文件) 磁盘检查完成后,挂载所有系统分区<br />第三步:输入 mount -a <br />第四步: 重设root用户密码 输入 passwd 回车 之后会提示再输入一遍,确认后 Ctrl+D 系统继续启动,就可以了. <br />------------------------------------------------------------------------------------------------------</p>
]]>
</description>
</item><item>
<link>http://pic1.liuxinxiu.com:80/freebsd_root_password/#blogcomment</link>
<title><![CDATA[[评论] 【原创】freeBSD更改系统root密码，注：root安装系统默认为空]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/freebsd_root_password/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>