From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Re: MORE: Using git via USB for personal org dir and other data files Date: Mon, 02 Mar 2009 10:28:22 -0500 Message-ID: <87tz6crlk9.fsf@gollum.intra.norang.ca> References: <837i38uj0v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeA4E-0000KF-W4 for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 10:28:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeA4D-0000K3-Cy for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 10:28:29 -0500 Received: from [199.232.76.173] (port=51452 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeA4D-0000K0-7K for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 10:28:29 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:52435) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeA4C-0000yN-Mn for emacs-orgmode@gnu.org; Mon, 02 Mar 2009 10:28:29 -0500 In-Reply-To: <837i38uj0v.fsf@gmail.com> (Alan's message of "Mon\, 02 Mar 2009 23\:54\:56 +1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Cc: emacs-orgmode Mailinglist Changing the permissions and using a group shouldn't be necessary. If you're using Linux to mount the usb stick the 'user' option makes all of the files on the drive owned by the person that mounts it. ,----[ /etc/fstab ] | /dev/sdb1 /usb vfat defaults,user,noauto,shortname=mixed 0 0 `---- Then it just works :) -Bernt Alan writes: > [Thank you to Bernt for the *clear* explanation of using branches!] > > I seem to be moving out of the woods with this, and for the most > part, the experiment has been going smoothly. However, I've run > afoul of permissions, a bugaboo that was mentioned in an earlier > post on this topic. > > I established a bare git repo on the USB drive, from a reasonably > clean tree. Pushing changes went well later on. > > I cloned this repo onto the second machine, edited quite a bit, > but was dismayed when I tried to push: an error message > indicated that some file couldn't be written. So far, the > problem seems to be permissions. Preliminary checking shows that > the group and user IDs are numerical on the flash drive, > corresponding to the ID of the user who originally cloned the > repo. > > I have a tentative plan of action, but I know nothing about the > use of permissions with git. > > 1. I have established a group "git" with a high group number, > so I can set create the same group on the work machine, > with the same group number. (I think it's too complicated > to change user numbers at this point). My users on the two > machine have different user names. It would be pretty > complicated right now to change the user's ID number. > > 2. I am setting the group permissions as read and write. > > # chmod -R g+w /media/BLUE/org.git > > 3. Does this make sense? > > > This is a great thing. I want to put a whole bunch of work in such > a repo. > > Thank you for the help. > > > Alan > > > -- > Alan Davis > > "An inviscid theory of flow renders the screw useless, but the need for > one non-existent." > ---Lord Raleigh (John WilliamStrutt), or else his son, who was also a > scientist.