[Bug 2940] Installing in $HOME should not require root privileges

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Jul 25 21:02:23 AEST 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=2940

Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Ryan Williams from comment #2)
> It seems like "--prefix" should also be prepended to this
> "/var/empty" path, by default.

No, the usual path for that (/var/empty) is outside the usual prefix
(/usr or /usr/local).  "make install" does already prepend DESTDIR
(which defaults to an empty string) to all install paths including that
one:

$(MKDIR_P) -m 0755 $(DESTDIR)$(PRIVSEP_PATH)

Assuming you don't want to run an unprivileged sshd you can do what you
want with

$ ./configure --prefix=/ && make install-nokeys
DESTDIR=/home/smith/tmp/openssh

If you want the host keys you would probably need to set them up by
hand or fiddle with --sysconfdir.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list