Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 14:54:11 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        brian.barto@spectrum-health.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Install ports as non-root user?
Message-ID:  <42C19CD3.2000208@mac.com>
In-Reply-To: <B6532FAEDD53D94ABDBFB24C35EF77300A34F05C@dcmsmsg01.spectrum-health.org>
References:  <B6532FAEDD53D94ABDBFB24C35EF77300A34F05C@dcmsmsg01.spectrum-health.org>

next in thread | previous in thread | raw e-mail | index | archive | help
brian.barto@spectrum-health.org wrote:
> Hi all. I'm looking to make a non-privileged user the owner of all my
> software so I don't have to act as root when installing, configuring, and
> updating software. Furthermore, I won't have to give out the root password
> to others who need rights to configure software. I noticed my ports
> collection is entirely owned by root and requires root to install. Is there
> a way to install ports as a non-root user or allow non-root users to install
> ports?

You can checkout the ports collection as a normal user (via CVS or CVSup, or 
copy or chown a /usr/ports owned by root).  You will need to set $PORTSDIR 
appropriately, and you can also set $LOCALBASE to point to a place owned by the 
user where the ports should be installed to.

However, a fair number of important ports require root access to create users 
or setuid binaries, and some ports have bugs when the paths are changed from 
the defaults, so be prepared for problems.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C19CD3.2000208>