For security purposes, you can set the password as expired to force the user to provide a new password at first login.
出于安全考虑,您可设置密码过期,来强制用户在首次登录时提供新密码。
The script contained in Listing 2 creates a user with the initial password set, though the method of informing the user of their new password is a manual one.
清单2中的脚本创建一个用户并设置初始密码,但是将新密码通知给用户是个手工任务。
Use the login screen to set up a new user and log in. You can also log in on the console as root, no password required.
使用登录界面建立一个新的用户然后登录,您也可以在控制台上以root登录,不需要密码。
应用推荐