| Summary: | Installing in $HOME should not require root privileges | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Dan <openssh> |
| Component: | Build system | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | minor | CC: | dtucker, ryan.blake.williams |
| Priority: | P5 | ||
| Version: | 7.9p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
Dan
2018-12-07 15:13:06 AEDT
sshd requires a directory to chroot to which by default is "/var/empty". If your system has one and uses a different path you can tell configure to use -with-privsep-path=/somewhere else. Minor note: the flag is "--with-privsep-path" (two leading dashes) It seems like "--prefix" should also be prepended to this "/var/empty" path, by default. (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. Close bugs fixed in openssh-8.1 release cycle |