Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2005 11:10:26 -0500
From:      Jeff Wirth <jeff.wirth@gmail.com>
To:        Grant Peel <gpeel@thenetnow.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sFTP nologin
Message-ID:  <5d2cf692050328081054dc1c81@mail.gmail.com>
In-Reply-To: <003701c5319e$30ee8920$6401a8c0@GRANT>
References:  <002c01c53145$b9c64390$6401a8c0@GRANT> <4244354E.10401@haystacks.org> <004b01c53155$5ce59c60$6401a8c0@GRANT> <5d2cf6920503251407759fcff0@mail.gmail.com> <003701c5319e$30ee8920$6401a8c0@GRANT>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Fri, 25 Mar 2005 19:53:12 -0500, Grant Peel <gpeel@thenetnow.com> wrote:
> So, If I simply change the isers shell in /etc/passwd to the
> /usr/local/sbin.scponly shell it should work? If so, it doesn't!
> 
> After installing the port (scponly) does one have to run the chroot scrippts
> and all that they talk about on the site? or should simply adding it to
> /etc/shells and changing the users shell do the trick?
> 

If you want 'chroot' functionality read the Makefile.  The default
build behavior is 'undefined' for chroot.

Once you have scponly built to your needs, all you need is to add
'scponly' ('scponlyc') to /etc/shells and change your users shell
accordingly.  (see manpage for more info)

-jw



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