Difference between revisions of "Scponly"
(update templates, see Help:Style)
(remove language suffix from Category:Networking (English), see Talk:Table of Contents#English Category Names: Capitalization and Conflict with i18n)
|Line 1:||Line 1:|
Revision as of 17:46, 23 April 2012
Scponly is a limited shell for allowing users scp/sftp access and only scp/sftp access to your box. Additionally, you can setup scponly to chroot the user into a particular directory increasing the level of security.
This guide assumes that you have the
sshd daemon installed, configured, and running. See Secure Shell for more information.
Scponly resides in [community] and can be installed like any other package:
# pacman -S scponly
If you have a user already created, simply set the user's shell to scponly
# usermod -s /usr/bin/scponly username
That's it. Go ahead and test it using your favorite sftp client.
Adding a chroot jail
- Create chroot
# cd /usr/share/doc/scponly/
- Provide answers
- Check that /path/to/chroot has root:root owner and r-x for others
- Change shell for selected user to /usr/sbin/scponlyc
- sftp-server may require some libnss modules such as libnss_files. Copy them to chroot's /lib