From: Adam Spiers <orgmode@adamspiers.org>
To: emacs-orgmode@gnu.org
Subject: Re: FUD on my part re: downloading revisions?
Date: Tue, 1 Jan 2008 23:26:57 +0000 [thread overview]
Message-ID: <20080101232657.GA18716@atlantic.linksys.moosehall> (raw)
In-Reply-To: <1199225543.3102.49.camel@CASE>
On Tue, Jan 01, 2008 at 05:12:23PM -0500, William Case wrote:
> You are not going to believe this; at least I don't believe it.
"When you have eliminated the impossible, whatever remains, however
improbable, must be the truth." -- Sir Arthur Conan Doyle ;-)
> On Tue, 2008-01-01 at 18:56 +0000, Pete Phillips wrote:
> > Hi William
> >
> > try my updated version at:
> >
> > http://www.philfam.co.uk/pete/GTD/org-mode/update-org.sh
>
> I tried it with the following adjustments:
[snipped]
> The script downloaded things successfully and opened all?? files
> in /home/bill/emacs/lisp/org with a link to org-5.17a
>
> BUT ... the permissions on the newly created org and org-5.17a
> directories and files where owner = billl and group = games. 'billl' is
> a seldom used extra user account I have added to my system for
> experimenting and playing around with things Linux. I was most
> definitely not in the 'billl' user account when I used the script. I
> have no idea how the 'games' group got into the mix.
It's because tar tries to honour the uid/gid metadata when extracting,
but it's done numerically:
$ tar -ztv --numeric-owner -f ~/Desktop/org-5.17a.tar.gz | head
drwxr-xr-x 501/20 0 2007-12-20 13:38:42 org-5.17a/
-rw-r--r-- 501/20 103661 2007-12-20 13:38:42 org-5.17a/ChangeLog
-rw-r--r-- 501/20 617 2007-12-20 13:38:42 org-5.17a/dir
-rw-r--r-- 501/20 6450 2007-12-20 13:38:42 org-5.17a/Makefile
-rw-r--r-- 501/20 396954 2007-12-20 13:38:42 org-5.17a/org
-rwxr-xr-x 501/20 52980 2007-12-20 13:38:42 org-5.17a/org-export-latex.el
-rw-r--r-- 501/20 21775 2007-12-20 13:38:42 org-5.17a/org-install.el
-rw-r--r-- 501/20 38188 2007-12-20 13:38:42 org-5.17a/org-mouse.el
-rw-r--r-- 501/20 22162 2007-12-20 13:38:42 org-5.17a/org-publish.el
-rw-r--r-- 501/20 1045275 2007-12-20 13:38:42 org-5.17a/org.el
So the extracted files end up with uid 501 and gid 20. On your system
this corresponds to 'billl' and 'games', which leads me to suspect
that you might be using some kind of Red Hat or derivative, since on
these distributions, uids for normal users start at 500, and 20 is the
games group by default (on SUSE and Debian, they start at 1000, and on
SUSE, games is 40, and on Debian it's 60).
> I have tried using the script to install from both 'bill' ([double] 'l')
> and 'root' with the same result.
Hmm, really? Like I said, tar *tries* to honour uids/gids, but
if it's not root, it cannot change the uid, and it can only change the
gids to a group which the current user is a member of. So I would
expect different uids depending on whether you extract as bill or
root, and probably different gids too.
> I would just install from a tarball, but I am still uncertain exactly
> which directory I want to copy to, unzip and make from. The only 'org'
> file I have is /usr/share/emacs/22.1/lisp/textmodes/org.elc
It doesn't really matter where you install the compiled org.elc to, as
long as it's a directory which is earlier in the `load-path' you've
configured emacs to use than /usr/share/emacs/22.1/lisp/textmodes. If
you look at the Makefile you'll see the default location that a `make
install' would place the org.elc at:
# Where local software is found
prefix=/usr/local
# Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp
Look at the emacs manual (C-h r m Lisp Libraries RET) for more
information if you aren't familiar with `load-path'.
> Regards Bill,
> Emacs 22.1.1 Fedora 8_x64
^^^^^^^^^^^^
Ah, look Watson, I was right! ;-) I didn't see this when writing the
above, promise :-)
next prev parent reply other threads:[~2008-01-01 23:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-01 18:45 FUD on my part re: downloading revisions? William Case
2008-01-01 18:56 ` Pete Phillips
2008-01-01 22:12 ` William Case
2008-01-01 22:34 ` [Bulk] " William Case
2008-01-01 23:13 ` Pete Phillips
2008-01-02 0:01 ` William Case
2008-01-02 10:10 ` Adam Spiers
2008-01-01 23:26 ` Adam Spiers [this message]
2008-01-02 0:16 ` Bastien
2008-01-02 0:36 ` [Bulk] " William Case
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080101232657.GA18716@atlantic.linksys.moosehall \
--to=orgmode@adamspiers.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).