[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: Lisp file permissions after install]

From: Richard Stallman
Subject: address@hidden: Lisp file permissions after install]
Date: Wed, 26 Dec 2001 12:33:52 -0500

The easy way to fix this is to do chown with -R.  But I think that -R
in chown is a fairly new feature--perhaps a GNU-only feature, or
perhaps a POSIX feature--and it might not work universally.

Does anyone have another suggestion?

I'm surprised that the command

          && (echo "Copying $${dir} to $${dest}..." ; \
              (cd $${dir}; tar -chf - . ) \
                | (cd $${dest}; umask 022; \
                   tar -xvf - && cat > /dev/null) || exit 1; \

does not make the new files with root as owner.
GNU tar has an option `--same-owner' that seems to ask
for such behavior, which would seem to imply that the
default behavior should be something different.

Eggert, can you tell us anything about this?
Are there other tar versions which preserve the owner by default?

------- Start of forwarded message -------
To: address@hidden
From: Chong Yidong <address@hidden>
Newsgroups: gnu.emacs.bug
Subject: Lisp file permissions after install
Sender: address@hidden
Date: 07 Dec 2001 00:32:32 -0800

As an unprivileged user, I run ./configure and make on the Emacs
sources. After the compilation is done, I su to root and make install.

The .el and .elc files copied into /usr/local/share/emacs/21.1.x are
then owned by the unprivileged user. I think this is a mistake, as the
/usr/local/share tree should be read-only for unprivileged users. The
other files installed by Emacs (in /usr/local/bin, /usr/local/libexec,
and so forth) have correct permissions.

I am not familiar with the build process. Would it be possible to
perform chown and chgrp on the lisp files, whenever the install
destination is owned by root?

Bug-gnu-emacs mailing list
------- End of forwarded message -------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]