From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 8 14:00:26 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3586216A421 for ; Wed, 8 Jun 2005 14:00:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBFC143D49 for ; Wed, 8 Jun 2005 14:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j58E0PRn091769 for ; Wed, 8 Jun 2005 14:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j58E0PKP091768; Wed, 8 Jun 2005 14:00:25 GMT (envelope-from gnats) Resent-Date: Wed, 8 Jun 2005 14:00:25 GMT Resent-Message-Id: <200506081400.j58E0PKP091768@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Mersberger Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEF4F16A41C for ; Wed, 8 Jun 2005 13:58:48 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88A7143D49 for ; Wed, 8 Jun 2005 13:58:48 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j58Dwk7P018147 for ; Wed, 8 Jun 2005 13:58:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j58Dwk2S018129; Wed, 8 Jun 2005 13:58:46 GMT (envelope-from nobody) Message-Id: <200506081358.j58Dwk2S018129@www.freebsd.org> Date: Wed, 8 Jun 2005 13:58:46 GMT From: Martin Mersberger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/82032: New port: security/pam_mkhomedir - a PAM module to create home directories automatically X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 14:00:26 -0000 >Number: 82032 >Category: ports >Synopsis: New port: security/pam_mkhomedir - a PAM module to create home directories automatically >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 08 14:00:25 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Martin Mersberger >Release: >Organization: >Environment: >Description: This is a PAM module which will create the $HOME for the user authenticated, if it's not already there. It also copies over files from a skel directory ( default /usr/share/skel ) and can set the permission of the newly created $HOME to a value of your choise >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # security/pam_mkhomedir # security/pam_mkhomedir/Makefile # security/pam_mkhomedir/distinfo # security/pam_mkhomedir/pkg-descr # security/pam_mkhomedir/pkg-plist # security/pam_mkhomedir/pkg-message # echo c - security/pam_mkhomedir mkdir -p security/pam_mkhomedir > /dev/null 2>&1 echo x - security/pam_mkhomedir/Makefile sed 's/^X//' >security/pam_mkhomedir/Makefile << 'END-of-security/pam_mkhomedir/Makefile' X# $FreeBSD: $ X XPORTNAME= pam_mkhomedir XPORTVERSION= 0.1 XCATEGORIES= security XMASTER_SITES= http://portal-to-web.de/pam_mkhomedir/ X XMAINTAINER= ports@FreeBSD.org XCOMMENT= Create $HOME with a PAM module on demand X XWRKSRC= ${WRKDIR}/${DISTNAME} X XMANCOMPRESSED= yes X X.include X X.if defined(NOPROFILE) XPLIST_SUB+= PROFILE="@comment " X.else XPLIST_SUB+= PROFILE="" X.endif X XMAN8= pam_mkhomedir.8 X Xpost-install: X @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE} X X.include END-of-security/pam_mkhomedir/Makefile echo x - security/pam_mkhomedir/distinfo sed 's/^X//' >security/pam_mkhomedir/distinfo << 'END-of-security/pam_mkhomedir/distinfo' XMD5 (pam_mkhomedir-0.1.tar.gz) = 41109fe6b913d2909ece167afdc47bbd XSIZE (pam_mkhomedir-0.1.tar.gz) = 5438 END-of-security/pam_mkhomedir/distinfo echo x - security/pam_mkhomedir/pkg-descr sed 's/^X//' >security/pam_mkhomedir/pkg-descr << 'END-of-security/pam_mkhomedir/pkg-descr' XThis is a PAM module which will create the $HOME for the user authenticated, Xif it's not already there. It also copies over files from a skel directory X( default /usr/share/skel ) and can set the permission of the newly created X$HOME to a value of your choise END-of-security/pam_mkhomedir/pkg-descr echo x - security/pam_mkhomedir/pkg-plist sed 's/^X//' >security/pam_mkhomedir/pkg-plist << 'END-of-security/pam_mkhomedir/pkg-plist' Xlib/libpam_mkhomedir.a X%%PROFILE%%lib/libpam_mkhomedir.a Xlib/pam_mkhomedir.so Xlib/pam_mkhomedir.so.2 END-of-security/pam_mkhomedir/pkg-plist echo x - security/pam_mkhomedir/pkg-message sed 's/^X//' >security/pam_mkhomedir/pkg-message << 'END-of-security/pam_mkhomedir/pkg-message' X XYou may want to add something like this to your /etc/pam.d/login Xor /etc/pam.d/sshd ( when you've configured ssh with PAM ) Xfile to use this module: X Xsession required %%PREFIX%%/lib/pam_mkhomedir.so X X X END-of-security/pam_mkhomedir/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted: