From owner-freebsd-questions Sun Dec 29 14: 4:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F09037B408 for ; Sun, 29 Dec 2002 14:04:29 -0800 (PST) Received: from angelfish.lewiz.org (dialup.212-50-181-107.karoo.KCOM.COM [212.50.181.107]) by mx1.FreeBSD.org (Postfix) with SMTP id E5F6643ED8 for ; Sun, 29 Dec 2002 14:04:24 -0800 (PST) (envelope-from lewiz@turtle.lewiz.org) Received: (qmail 96969 invoked by uid 85); 29 Dec 2002 22:04:16 -0000 Received: from lewiz@turtle.lewiz.org by angelfish by uid 0 with qmail-scanner-1.14 (sophie: 2.10/3.62. spamassassin: 2.43. Clear:SA:0(-2.5/5.0):. Processed in 2.794585 secs); 29 Dec 2002 22:04:16 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 Received: from turtle.lewiz.org (192.168.0.9) by angelfish.lewiz.org with SMTP; 29 Dec 2002 22:04:11 -0000 Received: (nullmailer pid 1725 invoked by uid 1001); Sun, 29 Dec 2002 22:03:37 -0000 Date: Sun, 29 Dec 2002 22:03:36 +0000 From: lewiz To: richard childers / kg6hac Cc: freebsd-mobile@freebsd.org, FreeBSD-questions Subject: Re: Working remotely. Message-ID: <20021229220336.GA956@lewiz.org> Mail-Followup-To: lewiz , richard childers / kg6hac , freebsd-mobile@freebsd.org, FreeBSD-questions References: <20021229200153.GA61755@lewiz.org> <3E0F66C7.CF4626F6@pacbell.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <3E0F66C7.CF4626F6@pacbell.net> X-GPG-Fingerprint: 90A4 939E 3847 A3E4 8103 2A48 22DA B428 542F ED3F X-GPG-Info: http://www.westwood.karoo.net/pgpkey / horowitz.surfnet.nl User-Agent: Mutt/1.5.1i 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 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 29, 2002 at 01:19:03PM -0800, richard childers / kg6hac wrote: > Reading your questions, I am left unclear as to whether the NFS, NIS/YP, = and > server are at home, or at work. Sorry, I have the NFS, NIS/YP stuff at home. > The question then becomes, which is the master and which is the slave, or > copy? I recommend thinking of your laptop's current contents as the maste= r, > it makes things easier but if your server is providing megastorage for yo= ur > MP3 collection, you're going to have to evolve your own, more complex > algorithm for synchronizing specific elements of your home directories on > each system with one another. While, yes, as everybody I think these days, I have my music/video collection, I was planning on leaving that where it was :) However, I already had some rsync stuff going to work around the fact that I don't want/need all my mail for the past n years -- I have a current mail (3 months at the most) that I would be taking with me, I've accounted for this, as suggested. > Perhaps this is a better approach, anyway; what needs to be synchronized?= If > you're using it as a backup mechanism, maybe tar(1)'ing up your home > directory into a timestamped tar(5) file and copying that to the server m= kes > more sense, along with a complementing script that deletes all tar(5) fil= es > over N days old, to keep disk usage to a minimum. I'm not so keen on this method. I would much prefer a synchronization idea, not a backup. Firstly, it's much quicker for me to pick up and go in the morning, and to get everything in synch when I get back. Also, this could cause problems if I were to log on to my workstation at home before connecting the laptop, etc. > The other problem is the relationship between NIS/YP login information and > your local login information. It sort of sounds like this laptop was built > with a built-in NFS/NIS/YP dependency that assumed that you'd be using it= on > campus only. Not very well thought out, or tested, IMHO. Hehe, my bad. Yeah, that's how it's all done though -- I've only just got a hold of this laptop so until now I've not had need for it ;) > I would recommend creating a login which we will call your 'off-campus', > 'roving', or 'disconnected' login. This login has a UID and GID of N, and= a > home directory of, say, /local/home/roving. To begin with when I read this I thought you must have been smoking something. I was wondering how on earth I would bridge the gap between two different UID/GIDs, until I figured out what you meant by ``N''. This is a truly superb idea, that I would not have thought of. UNIX is truly about simplicity :) I shall get this implemented right away. My only consideration here is which goes first in the passwd file -- the roving user or the NIS/YP hash thingy? I'll play around with this and figure it out. Many thanks for your response. It's already been very useful and I've not got around to implementing some of it yet ;) What I think I'll be doing is using the ``Unison'' utily suggested by Eric De Mund to synchronize the two logins in conjunction with the secondary username you suggested. Thanks again, I'll follow up with how I got on. -lewiz. --=20 If you have a procedure with 10 parameters, you probably missed some. ------------------------------------------------------------------------ --|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||-- --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+D3E3Itq0KFQv7T8RAnuDAJ0ethmoiwYqTRM0TOmY4IAOb6jHYgCffISA 33Nic3UezkpqDVtXgctPFRs= =hTZ9 -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message