Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 1998 17:25:41 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Jerry <jerryr@ComCAT.COM>, questions@FreeBSD.ORG
Subject:   Re: limit user to home dir
Message-ID:  <19981113172541.B781@freebie.lemis.com>
In-Reply-To: <Pine.GSO.4.02A.9811121925280.26876-100000@uw>; from Jerry on Thu, Nov 12, 1998 at 07:27:35PM -0500
References:  <Pine.GSO.4.02A.9811121925280.26876-100000@uw>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 12 November 1998 at 19:27:35 -0500, Jerry wrote:
> I'm sure there's a way but I can't find anything about it.  Is there a way
> to limit every  user or users belonging to a group to their own home dir
> when they ftp or telnet?

ftp:    Put the user's ID in /etc/ftpchroot.
telnet: The answer *should* be "give him a restricted shell", but we
	don't appear to have one.  It might work if you give him
	/usr/sbin/chroot <dir> /bin/sh as a shell in /etc/passwd, but
	I haven't tried it.

man pages: ftpd(8), telnetd(8), chroot(8).

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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?19981113172541.B781>