Date: Wed, 17 Jul 2002 08:11:03 +0800 From: "Rafter Man" <rafter@linuxmail.org> To: freebsd-questions@freebsd.org Subject: Re: SSH Message-ID: <20020717001103.26282.qmail@linuxmail.org>
next in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Daniel Bye" <dan@slightlystrange.org> > > How do you chroot people logging in via ssh? or sftp? > > The easiest solution I've found for this is to give your restricted > users rbash as a login shell. (This applies to interactive ssh > connections, I don't know about sftp - I don't use it). > > rbash probably won't exist on your system yet. If bash is installed > (it's in ports, naturally ;-), make a link called rbash to the bash > executable: > > # ln /usr/local/bin/bash /usr/local/bin/rbash > > Add /usr/local/bin/rbash to your /etc/shells, and make it the default > shell for your restricted users. Well, I don't want to force users to use bash if they are used to or loooove tcsh (or some other shell). But if we are lucky, then maybe sftp and ssh will have a way to chroot users in the future. But thanks for you reply :-) Best regards Rafter -- Get your free email from www.linuxmail.org Powered by Outblaze To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020717001103.26282.qmail>