Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2007 13:01:51 -0400
From:      "Zane C.B." <v.velox@vvelox.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: samba and automounting upon login (update)
Message-ID:  <20070519130151.25a76b6c@vixen42>
In-Reply-To: <20070518214633.40ddc717@vixen42>
References:  <20070518214633.40ddc717@vixen42>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
--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." <v.velox@vvelox.net> 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=--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20070519130151.25a76b6c>