From owner-freebsd-questions Sat May 4 12: 4:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 46B8637B400 for ; Sat, 4 May 2002 12:04:44 -0700 (PDT) Received: from tim.dynofrog.com (dhcp065-031-025-171.insight.rr.com [65.31.25.171]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g44J4eP08029; Sat, 4 May 2002 15:04:40 -0400 (EDT) Subject: Re: exporting /home via SMB From: Tim Boring To: Ilia Chipitsine Cc: questions@FreeBSD.ORG In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 04 May 2002 16:06:10 -0300 Message-Id: <1020539176.21538.46.camel@tim.dynofrog.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Ilia! On Sat, 2002-05-04 at 12:43, Ilia Chipitsine wrote: > Salut, Tim Boring ! > > On 4 May 2002, Tim Boring wrote: > > > > The server you're importing from...is it Unix or Windows? If it's a > > Unix machine, why not just use NFS instead of SMB? Or do you have a > > specific need to use SMB? > > NFS is piece of crap, it supports neither locking, nor quotas. > on the other hand I already export [homes] via SMB. I just > wanted that /home/someuser to be mounted at the time user logs in. > It would be nice. Another advantage of SMB is that, I can export > some directories with read/write permissions, some directories > with read-only, an some directories I probably don't want to export. > That machine has "/" on a single partition, so NFS makes me export > "/" as read/write. I don't want that. Good points. So let me see if I understand this: 1. The user home directories are being exported from one server via SMB. 2. They are being imported on another server (but not mounted). 3. You want the user's imported home directory to be mounted when they log in. Is that a fair summary of what you would like to have happen? What if you try something like this: 1. Set up users with a temporary home directory (if this isn't already the case). 2. In each user's startup file (.profile, .bashrc, or whatever they're using), include a routine to check for the existence of /home/someuser. 3. If /home/someuser exists, then the login proceeds as normal. 4. If /home/someuser does not exist, then mount the directory with either smbmount or smbwrapper. 5. Once /home/someuser is mounted successfully, the user's shell cd's to that directory and proceed as normal. 6. If that won't work, then what about including something similar in a startup script that gets run during the bootup process? Then the system mounts all the home directories and they're available when the user logs in. I don't know if that will do exactly what you need, because I've not had a need to export/import between Unix boxes using SMB...I'm typically exporting from a unix box and mounting the shares on windows pcs. Another source that might be helpful is the comp.protocols.smb newsgroup. Good luck! Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message