Ubuntu 如何更改用户密码


你需要为第一个帐户创建一个密码。这可以用 passwd 命令来完成。 系统会提示输入你的旧密码一次,输入你的新密码两次。
用 root 用户更改用户 paul 的密码
[root@bigboy root]# passwd 用户名(paul)
Changing password for user paul. New password:
Retype new password: passwd:
all authentication tokens updated successfully.
[root@bigboy root]#


用户以后可能会改他们自己的密码。这个例子说明用户 paul 改自己的密码没有特权。
[paul@bigboy paul]$ passwd
Changing password for paul Old password: your current password
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
New password: your new password
Re-enter new password: your new password
Password changed.
[paul@bigboy paul]$

原文地址:https://www.cnblogs.com/onelikeone/p/7567760.html