Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2005 13:58:46 GMT
From:      Martin Mersberger <gremlin@portal-to-web.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/82032: New port: security/pam_mkhomedir - a PAM module to create home directories automatically
Message-ID:  <200506081358.j58Dwk2S018129@www.freebsd.org>
Resent-Message-ID: <200506081400.j58E0PKP091768@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506081358.j58Dwk2S018129>