[OpenAFS] RHEL5, pam_afs, sshd; no token

Dj Merrill deej@econ.duke.edu
Tue, 29 May 2007 13:19:26 -0400


Richard Brittain wrote:
> I'm just getting my feet wet with RHEL5 on an x86_64 box, and built
> OpenAFS 1.4.4 by using 'rpmbuild' with the SRPM package for RHEL4.  It
> seemed to build completely cleanly, installed first time, and works fine
> when authenticating with klog.

Hi Richard,
	I'm running the following /etc/pam.d/system-auth under Centos (RHEL) 5
x86_64, and it seems to be working okay.  I'm using the pam_krb5afs.so
rather than the pam_afs.so module.

# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        sufficient    pam_krb5afs.so use_first_pass tokens
auth        required      pam_deny.so

account     required      pam_unix.so
account     sufficient    pam_succeed_if.so uid < 500 quiet
account     required      pam_permit.so

password    requisite     pam_cracklib.so try_first_pass retry=3
password    sufficient    pam_unix.so md5 shadow nullok try_first_pass
use_authtok
password    sufficient    pam_krb5afs.so use_authtok
password    required      pam_deny.so

session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
session     [success=1 default=ignore] pam_succeed_if.so service in
crond quiet use_uid
session     required      pam_unix.so
session     optional      pam_krb5afs.so


-Dj

-- 
Dj Merrill                          Department of Economics
Unix Infrastructure Administrator   Room 213, Social Sciences Bldg
deej@econ.duke.edu - N1JOV          Duke University, Durham, NC  27708

"On the side of the software box, in the 'System Requirements' section,
it said 'Requires Windows 95 or better'. So I installed Linux." -Anonymous