so that it may be placed in utmp and wtmp. Only the superuser may use
this option.
+Note that the \fB-h\fP option has impact on the \fBPAM service name\fP. The standard
+service name is "login", with the \fB-h\fP option the name is "remote". It's
+necessary to create a proper PAM config files (e.g.
+.I /etc/pam.d/login
+and
+.I /etc/pam.d/remote
+).
+
.SH "SPECIAL ACCESS RESTRICTIONS"
The file
.I /etc/securetty
.I /etc/passwd
.I /etc/nologin
.I /etc/usertty
+.I /etc/pam.d/login
+.I /etc/pam.d/remote
.I .hushlogin
.fi
.SH "SEE ALSO"
* Therefore, we are safe not setting it to anything
*/
- retcode = pam_start("login",username, &conv, &pamh);
+ retcode = pam_start(hflag?"remote":"login",username, &conv, &pamh);
if(retcode != PAM_SUCCESS) {
fprintf(stderr, _("%s: PAM failure, aborting: %s\n"),
"login", pam_strerror(pamh, retcode));