From owner-freebsd-questions@FreeBSD.ORG Sat May 19 16:59:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 251B716A46C for ; Sat, 19 May 2007 16:59:32 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout16.yourhostingaccount.com (mailout16.yourhostingaccount.com [65.254.253.128]) by mx1.freebsd.org (Postfix) with ESMTP id E5F3013C4C9 for ; Sat, 19 May 2007 16:59:31 +0000 (UTC) (envelope-from SRS0=PBdUex=KU=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailscan30.yourhostingaccount.com ([10.1.15.30] helo=mailscan30.yourhostingaccount.com) by mailout16.yourhostingaccount.com with esmtp (Exim) id 1HpSHD-0007q2-3c for freebsd-questions@freebsd.org; Sat, 19 May 2007 12:59:31 -0400 Received: from authsmtp10.yourhostingaccount.com ([10.1.18.10] ident=exim) by mailscan30.yourhostingaccount.com with spamscanlookuphost (Exim) id 1HpSHC-0006rm-Qx for freebsd-questions@freebsd.org; Sat, 19 May 2007 12:59:30 -0400 Received: from authsmtp10.yourhostingaccount.com ([10.1.18.10] helo=authsmtp10.yourhostingaccount.com) by mailscan30.yourhostingaccount.com with esmtp (Exim) id 1HpSHC-0006ri-H0 for freebsd-questions@freebsd.org; Sat, 19 May 2007 12:59:30 -0400 Received: from cpe-65-185-51-114.columbus.res.rr.com ([65.185.51.114] helo=vixen42) by authsmtp10.yourhostingaccount.com with esmtpa (Exim) id 1HpSHC-0004CN-7m for freebsd-questions@freebsd.org; Sat, 19 May 2007 12:59:30 -0400 Date: Sat, 19 May 2007 13:01:51 -0400 From: "Zane C.B." To: freebsd-questions@freebsd.org Message-ID: <20070519130151.25a76b6c@vixen42> In-Reply-To: <20070518214633.40ddc717@vixen42> References: <20070518214633.40ddc717@vixen42> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_vgfH=uy_ncKxiWw.XUTfbo=" X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: "Zane C.B." X-EN-OrigIP: 65.185.51.114 X-EN-OrigHost: cpe-65-185-51-114.columbus.res.rr.com Subject: Re: samba and automounting upon login (update) 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: Sat, 19 May 2007 16:59:32 -0000 --MP_vgfH=uy_ncKxiWw.XUTfbo= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, 18 May 2007 21:46:33 -0400 "Zane C.B." wrote: > Any one know where I can find info on setting up FreeBSD so it tries > to automounting their home from a Samba server? Came across pam_exec, which after a bit of tweaking sort of takes care of this. Here is a patch to pam_exec.c to make it export PAM_AUTHTOK. Now the current issues is making mount_smbfs handle pulling the password from a environmental variable or STDIN. --MP_vgfH=uy_ncKxiWw.XUTfbo= Content-Type: text/x-patch; name=pam_exec.c.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pam_exec.c.diff --- pam_exec.c.orig Sat May 19 12:51:42 2007 +++ pam_exec.c Sat May 19 12:56:50 2007 @@ -57,6 +57,7 @@ ENV_ITEM(PAM_TTY), ENV_ITEM(PAM_RHOST), ENV_ITEM(PAM_RUSER), + ENV_ITEM(PAM_AUTHTOK), }; static int --MP_vgfH=uy_ncKxiWw.XUTfbo=--