[Top][All Lists]

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

Re: Lisp file permissions after install

From: Kevin Rodgers
Subject: Re: Lisp file permissions after install
Date: Fri, 07 Dec 2001 16:30:42 -0700

Chong Yidong wrote:
> 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.

If you can `su root`, then you aren't an unpriveleged user.  Why don't
you `configure` and `make` emacs as root before installing it?

> 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.

That's odd.  I thought `make install` copied those files via `tar`,
which preserves ownership (perhaps modulo the ownership of pre-existing

> 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?

I prefer that the executables be strip'ed when they're installed, and I
used to muck with things to make sure the -s option was passed to the
`install` program (but now I'm too lazy).  Since the install.sh script
seems to support the -o and -g options as well, perhaps you can.  See
the INSTALL_ `configure` and `make` variables.

Kevin Rodgers <address@hidden>

reply via email to

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