Re: fetch extension - use local filename from content-disposition header



Dag-Erling Smørgrav wrote:
Ádám Szilveszter <adamsz@xxxxxxxxxxx> writes:

You know, there are much bigger problems than that. For example the fact,
that any vulnerability in fetch(1) or libfetch(3) is a remote root
compromise candidate on FreeBSD, because the Ports system still insists on
running it as root by default downloading distfiles from unchecked amd
potentially unsecure servers all over the Internet.

Wrong.  If you go into a ports directory and type 'make install clean'
as an unprivileged user, the only parts of the build that actually run
with root privileges are the final portions of the installation
sequence.

Not if you, as a naive user, take a freshly installed system and an unmodified environment. You'll need to make a bunch of changes before everything will run smoothly:

* Make /usr/ports/distfiles writable by user or set $DISTDIR to
a writable directory
* Make /var/db/ports writable by user or set $PORT_DBDIR to a writable location
* Make each port directory writable -- so the the 'work' directories
can be created -- or set $WRKDIRPREFIX to a writable location.


And in fact, if you go on to do the same deal with $PKG_DBDIR and $PREFIX
plus set $INSTALL_AS_USER then you can install most ports entirely as a
mortal user -- the exceptions being ports that want to run mtree(8) or that
need to install programs with specific UID or GIDs.

Not setting $INSTALL_AS_USER means you'll be prompted to supply the root
password where needed at install time.

	Cheers,

	Matthew

--
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                     Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                     Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: help with /cdrom
    ... > i'm on a freebsd computer at my home. ... > ports from my desktop, ... So i logged in as root and it still says permission Denied. ... You can install binary packages from a FreeBSD CD-ROM ...
    (freebsd-questions)
  • Re: fetch extension - use local filename from content-disposition header
    ... because the Ports system still insists ... >>> on running it as root by default downloading distfiles from unchecked ... If you go into a ports directory and type 'make install clean' ...
    (freebsd-current)
  • RE: /root file system full
    ... The real problem was running KDE while logged in as root, ... >> ports etc, when I should have been logging in as a user and doing an ... >> su to root to install. ...
    (freebsd-questions)
  • Re: Destined to be hacked?
    ... > 1 - What is the risk involved in having a non secure password on a non ... Of course they need to know the login name too. ... Just see to that people can't login as root, this makes it more difficult to ... > people sit there and scan ports just looking for anyone as well. ...
    (alt.linux)
  • Re: Destined to be hacked?
    ... Of course they need to know the login ... > to try out password for root user. ... >> people sit there and scan ports just looking for anyone as well. ... > installation, if you add php, avoid to use scripts that allows people to ...
    (alt.linux)