BSD Ports

shells/scponly 4.8.20110526_2 MidnightBSD

Tiny shell that only permits scp and sftp

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2
Categories
shells, security

Description

[Excerpted from the README:] "scponly" is an alternative "shell" (of sorts) for system administrators who would like to provide access to remote users to both read and write local files without providing any remote execution privileges. Functionally, it is best described as a wrapper to the tried-and-true ssh suite.

scponly validates remote requests by examining the third argument passed to the shell upon login. (The first argument is the shell itself, and the second is -c.) The only commands allowed are "scp", "sftp-server" and "ls". Arguments to these commands are passed along unmolested.

In the other systems

SystemPortVersion
MidnightBSDshells/scponly4.8.20110526_2
FreeBSDshells/scponly4.8.20110526_8
NetBSDshells/scponly4.8nb2
DragonFlyshells/scponly4.8.20110526_8

Install

Binary package:

mport install scponly

From mports:

cd /usr/mports/shells/scponly && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	scponly>0:shells/scponly

Dependencies

No port depends on this one.

Configuration

Options name: shells_scponly

OptionDefaultDescription
CHROOToffchroot(8) functionality
DEFAULT_CHDIRoffChdir(2) by default
DOCSoff
GFTPoffgftp support
RSYNCoffrsync support
SCPoffvanilla scp support
SUBVERSIONoff
SVNSERVEoffSubversion support for svn+ssh://
UNISONoffUnisson support
WILDCARDSonWildcards processing
WINSCPoffWinSCP support
USES
cpe tar:tgz
Service scripts
none

Files

Manual pages 1
  • scponly(8)
pkg-plist 17
  • @shell bin/scponly
  • @exec echo ""
  • @exec echo "To setup chroot cage, run the following commands:"
  • @exec echo " 1) cd %%PREFIX%%/share/examples/scponly/ && /bin/sh setup_chroot.sh"
  • @exec echo " 2) Set scponlyc_enable=\"YES\" in /etc/rc.conf"
  • @exec echo " 3) Run %%PREFIX%%/etc/rc.d/scponly start"
  • @exec echo ""
  • @exec echo "For information on several potential security concerns,"
  • @exec echo "please read:"
  • @exec echo "%%PREFIX%%/share/doc/scponly/SECURITY"
  • @shell sbin/scponlyc
  • share/examples/scponly/setup_chroot.sh
  • share/examples/scponly/config.h
  • etc/scponly/debuglevel
  • @dirrm etc/scponly
  • @dirrm share/examples/scponly
  • share/man/man8/scponly.8.gz
distinfo 1
FileSizeSHA256
scponly-20110526.tgz11614746aac15a277a86ae43add03b4480150ac65830c7f0ef683532d383ba93dd7b03
Master sites 1
  • SF/scponly/scponly-snapshots