My step-by-step process is posted here - https://forums.freebsd.org/threads/57935/
Basically, I do this: sudo pkg install rssh sudo pw groupadd -n rsshuser sudo chown root:rsshuser /usr/local/bin/rssh sudo chown root:rsshuser /usr/local/libexec/rssh_chroot_helper sudo chmod 4550 /usr/local/libexec/rssh_chroot_helper sudo pw useradd -n banks -d /usr/local/chroot/banks -g rsshuser \ -s /usr/local/bin/rssh sudo mkdir -p /usr/local/chroot/banks sudo chown banks:rsshuser /usr/local/chroot/banks sudo passwd banks sudo vi /usr/local/etc/rssh.conf logfacility=LOG_USER umask=022 chrootpath=/usr/local/chroot user=banks:022:10011:/usr/local/chroot/banks But when I test it with: scp blah [email protected]:/ Password for [email protected]: rssh_chroot_helper: wordexp() bad syntax lost connection The same thing also happen for: scp blah [email protected]:/banks/ scp blah [email protected]:~ scp blah [email protected]:/usr/local/chroot/banks/ Curiously, with this modification to /usr/local/etc/rssh.conf logfacility=LOG_USER umask=022 chrootpath=/usr/local/chroot user=banks:022:10011: #user=banks:022:10011:/usr/local/chroot/banks Then, scp blah [email protected]:/banks/ Password for [email protected]: scp: /banks/: Permission denied scp blah [email protected]:/usr/local/chroot/banks/ Password for [email protected]: blah 100% 17 0.0KB/s 00:00 That copied the file but the chroot facility isn't working. If Filezilla is used to sftp into [email protected], the entire file system can be viewed. Any ideas? ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ rssh-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rssh-discuss
