How to install RPM as a user, root installation not allowed
david.abd at gmail.com
Mon Apr 1 09:33:02 UTC 2013
We built software stack of ~250 RPMs, which is later installed on user machines and GRID sites. That stack also includes standard linux packages, e.g., zlib.
Here is the patch we use on 4.8.0: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/CMSDIST/rpm-4.8.0-remove-chroot-check.patch?revision=1.1
Where are more patches, and some of them seems to be already in latest RPM.
On Apr 1, 2013, at 11:20 AM, Panu Matilainen wrote:
> On 04/01/2013 11:19 AM, Panu Matilainen wrote:
>> On 04/01/2013 08:48 AM, David Abdurachmanov wrote:
>>> Currently I am using RPM 4.8.0, which quite some patches already.
>>> Oneof is ability to install packages as user, not at as root. We are
>>> running a system where all your packages must be installed with a
>>> special user, which is not root for security reasons.
>>> Does RPM 22.214.171.124 already has the options for non-root install, or
>>> it still requires patching to drop root user check?
>> Generally rpm doesn't much care about the actual user used to run it,
>> but come to think of it, there's about one spot where rpm explicitly
>> checks for root, which is chmod() and friends which traditionally
>> require root.
>> I suppose your special user is roughly equal to root in terms of
>> privileges, just a different uid? That's a different case from what
>> people typically refer to as "non-root installation" (meaning
>> installation by non-privileged user), and okay I can see how that would
>> be problematic - yes the ancient check surrounding chmod() is still there.
> Erm... chown(), not chmod().
> - Panu -
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
More information about the Rpm-list