diff options
author | markm <markm@FreeBSD.org> | 2001-08-11 14:24:13 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-08-11 14:24:13 +0000 |
commit | 77f1de760e5eb4c9e52f61d48883479bc55d3068 (patch) | |
tree | 84c86cde73c480af5f338a1d73c7eabeb3cc2ac2 /usr.bin/su/su.c | |
parent | 69d76f8cf43a08a167a1d6e5d199614e28cc00db (diff) | |
download | FreeBSD-src-77f1de760e5eb4c9e52f61d48883479bc55d3068.zip FreeBSD-src-77f1de760e5eb4c9e52f61d48883479bc55d3068.tar.gz |
Set the RUSER for PAM so that (eg) kerberos can set up tickets properly.
Diffstat (limited to 'usr.bin/su/su.c')
-rw-r--r-- | usr.bin/su/su.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 0231180..1664bec 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -213,6 +213,8 @@ main(int argc, char *argv[]) errx(1, "pam_start: %s", pam_strerror(pamh, retcode)); } + PAM_SET_ITEM(PAM_RUSER, getlogin()); + gethostname(myhost, sizeof(myhost)); PAM_SET_ITEM(PAM_RHOST, myhost); |