From owner-freebsd-questions@FreeBSD.ORG Thu Aug 2 04:32:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E842116A418 for ; Thu, 2 Aug 2007 04:32:57 +0000 (UTC) (envelope-from jcw@highperformance.net) Received: from mail16.sea5.speakeasy.net (mail16.sea5.speakeasy.net [69.17.117.18]) by mx1.freebsd.org (Postfix) with ESMTP id C702913C458 for ; Thu, 2 Aug 2007 04:32:57 +0000 (UTC) (envelope-from jcw@highperformance.net) Received: (qmail 6341 invoked from network); 2 Aug 2007 04:06:17 -0000 Received: from dsl081-163-042.sea1.dsl.speakeasy.net (HELO [192.168.1.16]) ([64.81.163.42]) (envelope-sender ) by mail16.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Aug 2007 04:06:17 -0000 Message-ID: <46B15839.1060604@highperformance.net> Date: Wed, 01 Aug 2007 21:06:17 -0700 From: "Jason C. Wells" User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd general questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: PAM, su, and ksu behavior X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 04:32:58 -0000 I would like for the su command to NOT prompt the user for any password when the user has a kerberos ticket. That is su should not prompt for a kerberos or unix passwd. PAM is unable to determine if a terminal is encrypted and so the system should not inspire the user to cough up a password. I simply added: auth sufficient pam_ksu.so no_warn to the second line in the default /etc/pam.d/su config file. It worked, but I would not expect to be prompted for a password when I already have a ticket. (Secure single sign on is the whole point, right?) What I desire is the behavior of the MIT ksu command. If the principal is listed in .k5login and has a valid ticket for the requesting principle, to be granted the shell as the new UID. Near as I can tell, the heimdal ksu command that comes with FreeBSD has nothing to do with PAM. Is that true? Don't assume that I understand PAM. I have been looking at this for all of a couple days. It seems dead simple. Maybe I just can't get the behavior I want. Thanks, Jason C. Wells