<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans">
	<id>https://wiki.fangc.top/index.php?action=history&amp;feed=atom&amp;title=Linux_passwd</id>
	<title>Linux passwd - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fangc.top/index.php?action=history&amp;feed=atom&amp;title=Linux_passwd"/>
	<link rel="alternate" type="text/html" href="https://wiki.fangc.top/index.php?title=Linux_passwd&amp;action=history"/>
	<updated>2026-04-19T15:56:11Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.fangc.top/index.php?title=Linux_passwd&amp;diff=1644&amp;oldid=prev</id>
		<title>FC：​FC移动页面Linux密码至Linux passwd</title>
		<link rel="alternate" type="text/html" href="https://wiki.fangc.top/index.php?title=Linux_passwd&amp;diff=1644&amp;oldid=prev"/>
		<updated>2023-12-13T08:35:22Z</updated>

		<summary type="html">&lt;p&gt;FC移动页面&lt;a href=&quot;/wiki/Linux%E5%AF%86%E7%A0%81&quot; class=&quot;mw-redirect&quot; title=&quot;Linux密码&quot;&gt;Linux密码&lt;/a&gt;至&lt;a href=&quot;/wiki/Linux_passwd&quot; title=&quot;Linux passwd&quot;&gt;Linux passwd&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;passwd用于修改用户密码&lt;br /&gt;
&lt;br /&gt;
== 设置密码 ==&lt;br /&gt;
使用非root用户登录还没设置root密码需要设置root密码才能切换到root账户&amp;lt;syntaxhighlight lang=&amp;quot;linux-config&amp;quot;&amp;gt;&lt;br /&gt;
ubuntu@primary:~$ sudo passwd&lt;br /&gt;
New password:&lt;br /&gt;
Retype new password:&lt;br /&gt;
passwd: password updated successfully&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==修改密码==&lt;br /&gt;
root用户下输入&amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;会提示你输入两次新密码，输入回车即可。&amp;lt;syntaxhighlight lang=&amp;quot;linux-config&amp;quot;&amp;gt;&lt;br /&gt;
root@fc:~# passwd&lt;br /&gt;
New password:&lt;br /&gt;
Retype new password:&lt;br /&gt;
Sorry, passwords do not match.&lt;br /&gt;
passwd: Authentication token manipulation error&lt;br /&gt;
passwd: password unchanged   #以上为两次没输对的错误示范&lt;br /&gt;
root@fc:~# passwd&lt;br /&gt;
New password:         #输入第一次    &lt;br /&gt;
Retype new password:  #输入第二次&lt;br /&gt;
passwd: password updated successfully&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[分类:Linux命令]]&lt;/div&gt;</summary>
		<author><name>FC</name></author>
	</entry>
</feed>