密码可以在/etc/shadow 中找到(以散列形式),用户可以在/etc/passwd 中找到。
登录程序用于与系统建立新的会话。它通常通过响应用户终端上的 login: 提示自动调用。login 可能是 shell 所特有的,并且不能作为子进程调用。通常,shell 将 login 视为 exec login,这会导致用户退出当前 shell。尝试从任何 shell 执行 login 但登录 shell 将产生错误消息。
The user is then prompted for a password, where appropriate. Echoing is
disabled to prevent revealing the password. Only a small number of
password failures are permitted before login exits and the
communications link is severed.
If password aging has been enabled for your account, you may be
prompted for a new password before proceeding. You will be forced to
provide your old password and the new password before continuing.
Please refer to passwd(1) for more information.
Run Code Online (Sandbox Code Playgroud)
更多信息请访问:http : //manpages.ubuntu.com/manpages/hardy/man1/login.1.html
http://manpages.ubuntu.com/manpages/hardy/man5/passwd.5.html