From owner-freebsd-hackers Sun Jun 9 9:30:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by hub.freebsd.org (Postfix) with ESMTP id 108B437B406 for ; Sun, 9 Jun 2002 09:30:45 -0700 (PDT) Received: from adslle.cc.univie.ac.at (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.2/8.12.2) with ESMTP id g59GUcDR027590 for ; Sun, 9 Jun 2002 18:30:41 +0200 Date: Sun, 9 Jun 2002 18:30:38 +0200 (CEST) From: Lukas Ertl X-X-Sender: le@leelou.in.tern To: freebsd-hackers@FreeBSD.ORG Subject: Re: Automounting samba shares / pam_mount In-Reply-To: <20020608005839.Y297-100000@leelou.in.tern> Message-ID: <20020609182142.M71977-100000@leelou.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 8 Jun 2002, I wrote: > I'm currently trying to find out how to automount homedirs via samba when > users log in (via ssh, ftp, telnet,...), and I've found pam_mount, a PAM > module which seems to do the trick under Linux. I've also found that this > module was rejected as a port about one year ago because the code was "to= o > messy", whatever that means :-) [ ... ] > Or would you rather say that I should forget pam_mount and look for some > other way to automount my samba shares (maybe even write a PAM from > scratch for this purpose)? Hi, since pam_mount really was too messy I started writing my own PAM. It's more or less the necessary parts from mount_smbfs and pam_unix glued together. I'm not sure if I did everything right (smbfs is not very well documented, is it?), but after all it works. I'd be glad if someone would take a look at it and give some advice. The tarball can be found at . Beware: it's not even beta, documentation yet non existent, and you have to edit the source file and change host- and sharename. But I think it's a beginning. regards, le --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX-Systemadministrator Tel.: (+43 1) 4277-14073 Zentraler Informatikdienst (ZID) Fax.: (+43 1) 4277-9140 der Universit=E4t Wien http://mailbox.univie.ac.at/~le/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message