useradd testuser
passwd testuser
说明:新创建的用户会在/home下创建一个用户目录testuser
usermod
--help
userdel testuser
rm -rf testuser
linux修改用户密码:
如果是以root身份登录,修改root密码.只要输入
passwd
就会出现:
New password:
Retype new
password:
按提示输入密码确认即可.
如果想更改其他用户密码,只要输入passwd username即可.
如:passwd
testuser
New password:
Retype new password: