Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2002 09:51:54 +0600 (YEKST)
From:      Ilia Chipitsine <ilia@cgu.chel.su>
To:        Tim Boring <tboring@insight.rr.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: exporting /home via SMB
Message-ID:  <Pine.BSF.4.10.10205050951310.352-100000@jane.poka.net>
In-Reply-To: <1020539176.21538.46.camel@tim.dynofrog.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10205050951310.352-100000>