📚 开源资源分享——颜佐光的个人书架
✉️ 联系站长
书架 / Linux / 安装

linux如何修改用户的密码

2017-10-26 16:54 · 约 529 字 · 浏览 2,817 次 · 更新 2020-05-06 21:10安装

1、首先,要用CRT软件连接Linux系统。

2、首选,确认是用root用户登录系统的。

输入命令id 查看登录用户信息。结果如下:

# id
uid=0(root) gid=0(root) groups=0(root)

3、若修改root自己的密码,直接输入 passwd . 输入两遍,新密码即可。

# passwd
Changing password for user root.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

4、若修改其他用户,如oracle 的密码,可直接输入passwd oracle. 输入两遍性新密码即可。

# passwd oracle
Changing password for user root.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

5、这样就修改成功了。

← 返回《Linux》目录书架 →