Re: openssh privsep problem

From: Darren Tucker (dtucker_at_dodgy.net.au)
Date: 05/21/04


Date: Fri, 21 May 2004 01:45:57 +0000 (UTC)

In article <f05e664d.0405201400.5c15d1d4@posting.google.com>,
jonathan <ttyp32000@yahoo.com> wrote:
>I am trying to install and run sshd as a non-root user. Hence, I
>configure and compile with '--with-privsep-path' and
>'--with-privsep-user' set to something other than root.
>
>However, when I try to run what I install, I get:
>
>/etc/opt/sshd/privsep_path/test must be owned by root and not group or
>world-writable

You'll need to set "UsePrivilegeSeparation no" in sshd_config. PrivSep
requires that the daemon is running as root (the chroot() and the uid
swapping require it).

>Why is it complaining that it needs root permissions for this
>directory?

Because it's checking that the permssions are correct, and they're not.

>Is this a bug?

No. Maybe sshd could fail with an error if it's not running as root
and PrivSep is on, but that might prevent someone using an unusual
but otherwise valid setup (eg running as a non-root user with systrace
privilege elevation for the critical calls).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • RE: OpenSSH b0rked (was RE: Problems with IPFW patch)
    ... fix was the config file. ... No reboots or restarting sshd necessary. ... > Subject: RE: OpenSSH b0rked ... >> annoying install sequence - you can't define where it gets ...
    (FreeBSD-Security)
  • Re: remote administration of upgrades
    ... > done) or just recompiling ssh and sendmail and ... Unless you have remote console access to your machine, ... kernel actually works before you go ahead an install the matching ... > don't want to fubar sshd and then not be able to ...
    (freebsd-questions)
  • Re: sftp only works for root
    ... I'm running a new install of sshd ... Almost every release of OpenSSH for several years has added ... I got rid of all previous versions of ssh and sshd (used updatedb/locate to ... The new binaries are under /usr/local/ (where "make install" ...
    (comp.security.ssh)
  • Re: Authentication failed suddenly
    ... sshd is not the one that came with the new OpenSSH installation. ... make a different config file with a different port and save your old PID ... > make install ...
    (comp.security.ssh)
  • Re: Setting up SSH on Linux
    ... > ssh localhost ... sshd off off off on off on off ... need to install the ssh RPM (there is on your install CDs or download it from ...
    (alt.linux)