From owner-freebsd-questions Sat May 4 20:57: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from icc.cgu.chel.su (gw.csu.ru [195.54.14.5]) by hub.freebsd.org (Postfix) with ESMTP id 4CC6E37B419 for ; Sat, 4 May 2002 20:57:02 -0700 (PDT) Received: from mail.cgu.chel.su (mail.cgu.chel.su [195.54.14.68]) by icc.cgu.chel.su (8.11.6/8.11.6) with ESMTP id g453uud10718 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Sun, 5 May 2002 09:56:56 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: from mail.cgu.chel.su (localhost [127.0.0.1]) by mail.cgu.chel.su (8.12.3/8.11.2) with ESMTP id g453utvr078956 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Sun, 5 May 2002 09:56:55 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: (from uucp@localhost) by mail.cgu.chel.su (8.12.3/8.12.3/Submit) with UUCP id g453utsb078955; Sun, 5 May 2002 09:56:55 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: from localhost (localhost.cgu.chel.su [127.0.0.1]) by jane.poka.net (8.12.3/8.11.1) with ESMTP id g453ps8J000381; Sun, 5 May 2002 09:51:54 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Date: Sun, 5 May 2002 09:51:54 +0600 (YEKST) From: Ilia Chipitsine X-Sender: ilia@jane.poka.net To: Tim Boring Cc: questions@FreeBSD.ORG Subject: Re: exporting /home via SMB In-Reply-To: <1020539176.21538.46.camel@tim.dynofrog.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT 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 Salut, Tim Boring ! yeah, .profile is good idea. than you! On 4 May 2002, Tim Boring wrote: > 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 > > > Regards, (Наилучшие пожелания) Ilia Chipitsine (Илья Шипицин) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message