1*9503750cSthorpej.\" $NetBSD: pam_ksu.8,v 1.4 2005/02/26 15:04:52 thorpej Exp $ 26f11bdf1Schristos.\" Copyright (c) 2001 Mark R V Murray 36f11bdf1Schristos.\" All rights reserved. 46f11bdf1Schristos.\" Copyright (c) 2001 Networks Associates Technology, Inc. 56f11bdf1Schristos.\" All rights reserved. 66f11bdf1Schristos.\" 76f11bdf1Schristos.\" This software was developed for the FreeBSD Project by ThinkSec AS and 86f11bdf1Schristos.\" NAI Labs, the Security Research Division of Network Associates, Inc. 96f11bdf1Schristos.\" under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 106f11bdf1Schristos.\" DARPA CHATS research program. 116f11bdf1Schristos.\" 126f11bdf1Schristos.\" Redistribution and use in source and binary forms, with or without 136f11bdf1Schristos.\" modification, are permitted provided that the following conditions 146f11bdf1Schristos.\" are met: 156f11bdf1Schristos.\" 1. Redistributions of source code must retain the above copyright 166f11bdf1Schristos.\" notice, this list of conditions and the following disclaimer. 176f11bdf1Schristos.\" 2. Redistributions in binary form must reproduce the above copyright 186f11bdf1Schristos.\" notice, this list of conditions and the following disclaimer in the 196f11bdf1Schristos.\" documentation and/or other materials provided with the distribution. 206f11bdf1Schristos.\" 3. The name of the author may not be used to endorse or promote 216f11bdf1Schristos.\" products derived from this software without specific prior written 226f11bdf1Schristos.\" permission. 236f11bdf1Schristos.\" 246f11bdf1Schristos.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 256f11bdf1Schristos.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 266f11bdf1Schristos.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 276f11bdf1Schristos.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 286f11bdf1Schristos.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 296f11bdf1Schristos.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 306f11bdf1Schristos.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 316f11bdf1Schristos.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 326f11bdf1Schristos.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 336f11bdf1Schristos.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 346f11bdf1Schristos.\" SUCH DAMAGE. 356f11bdf1Schristos.\" 366f11bdf1Schristos.\" $FreeBSD: src/lib/libpam/modules/pam_ksu/pam_ksu.8,v 1.3 2002/12/12 08:19:47 ru Exp $ 376f11bdf1Schristos.\" 386f11bdf1Schristos.Dd May 15, 2002 396f11bdf1Schristos.Dt PAM_KSU 8 406f11bdf1Schristos.Os 416f11bdf1Schristos.Sh NAME 426f11bdf1Schristos.Nm pam_ksu 436f11bdf1Schristos.Nd Kerberos 5 SU PAM module 446f11bdf1Schristos.Sh SYNOPSIS 456f11bdf1Schristos.Op Ar service-name 466f11bdf1Schristos.Ar module-type 476f11bdf1Schristos.Ar control-flag 486f11bdf1Schristos.Pa pam_ksu 496f11bdf1Schristos.Op Ar options 506f11bdf1Schristos.Sh DESCRIPTION 515f604055SthorpejThe Kerberos 5 SU authentication service module for PAM 52*9503750cSthorpejprovides functionality for only one PAM category: authentication. 536f11bdf1SchristosIn terms of the 546f11bdf1Schristos.Ar module-type 556f11bdf1Schristosparameter, this is the 566f11bdf1Schristos.Dq Li auth 576f11bdf1Schristosfeature. 586f11bdf1SchristosThe module is specifically designed to be used with the 596f11bdf1Schristos.Xr su 1 606f11bdf1Schristosutility. 616f11bdf1Schristos.\" It also provides a null function for session management. 626f11bdf1Schristos.Ss Kerberos 5 SU Authentication Module 636f11bdf1SchristosThe Kerberos 5 SU authentication component provides functions to verify 646f11bdf1Schristosthe identity of a user 656f11bdf1Schristos.Pq Fn pam_sm_authenticate , 666f11bdf1Schristosand determine whether or not the user is authorized to obtain the 676f11bdf1Schristosprivileges of the target account. 686f11bdf1SchristosIf the target account is 696f11bdf1Schristos.Dq root , 706f11bdf1Schristosthen the Kerberos 5 principal used 716f11bdf1Schristosfor authentication and authorization will be the 726f11bdf1Schristos.Dq root 736f11bdf1Schristosinstance of 746f11bdf1Schristosthe current user, e.g.\& 756f11bdf1Schristos.Dq Li user/root@REAL.M . 766f11bdf1SchristosOtherwise, the principal will simply be the current user's default 776f11bdf1Schristosprincipal, e.g.\& 786f11bdf1Schristos.Dq Li user@REAL.M . 796f11bdf1Schristos.Pp 806f11bdf1SchristosThe user is prompted for a password if necessary. 816f11bdf1SchristosAuthorization is performed 826f11bdf1Schristosby comparing the Kerberos 5 principal with those listed in the 836f11bdf1Schristos.Pa .k5login 846f11bdf1Schristosfile in the target account's home directory 856f11bdf1Schristos(e.g.\& 866f11bdf1Schristos.Pa /root/.k5login 876f11bdf1Schristosfor root). 886f11bdf1Schristos.Pp 896f11bdf1SchristosThe following options may be passed to the authentication module: 906f11bdf1Schristos.Bl -tag -width ".Cm use_first_pass" 916f11bdf1Schristos.It Cm debug 926f11bdf1Schristos.Xr syslog 3 936f11bdf1Schristosdebugging information at 946f11bdf1Schristos.Dv LOG_DEBUG 956f11bdf1Schristoslevel. 966f11bdf1Schristos.It Cm use_first_pass 976f11bdf1SchristosIf the authentication module 986f11bdf1Schristosis not the first in the stack, 996f11bdf1Schristosand a previous module 1006f11bdf1Schristosobtained the user's password, 1016f11bdf1Schristosthat password is used 1026f11bdf1Schristosto authenticate the user. 1036f11bdf1SchristosIf this fails, 1046f11bdf1Schristosthe authentication module returns failure 1056f11bdf1Schristoswithout prompting the user for a password. 1066f11bdf1SchristosThis option has no effect 1076f11bdf1Schristosif the authentication module 1086f11bdf1Schristosis the first in the stack, 1096f11bdf1Schristosor if no previous modules 1106f11bdf1Schristosobtained the user's password. 1116f11bdf1Schristos.It Cm try_first_pass 1126f11bdf1SchristosThis option is similar to the 1136f11bdf1Schristos.Cm use_first_pass 1146f11bdf1Schristosoption, 1156f11bdf1Schristosexcept that if the previously obtained password fails, 1166f11bdf1Schristosthe user is prompted for another password. 1176f11bdf1Schristos.El 1186f11bdf1Schristos.Sh SEE ALSO 1196f11bdf1Schristos.Xr su 1 , 1206f11bdf1Schristos.Xr syslog 3 , 1216f11bdf1Schristos.Xr pam.conf 5 , 1226f11bdf1Schristos.Xr pam 8 123