From owner-freebsd-chat Wed Mar 10 10:10: 2 1999 Delivered-To: freebsd-chat@freebsd.org Received: from o-o.org (o-o.org [207.252.201.100]) by hub.freebsd.org (Postfix) with ESMTP id 69A9F1514C for ; Wed, 10 Mar 1999 10:09:42 -0800 (PST) (envelope-from licia@o-o.org) Received: from localhost (root@localhost) by o-o.org (8.8.8/8.8.8) with ESMTP id MAA14751 for ; Wed, 10 Mar 1999 12:09:36 -0600 (CST) (envelope-from licia@o-o.org) Date: Wed, 10 Mar 1999 12:09:35 -0600 (CST) From: Licia To: freebsd-chat@freebsd.org Subject: new feature for login : simple chrooting, ready to test Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I got the chroot option added to login, and it seems to work perfectly for me here and at home. I don't want to post it on my home site until it's been tested a bit more though, so if anyone wants to help with this let me know and I will email you a copy of the patch. The patch is about 1.1k and only adds about 250 bytes to the login.c code. It converts group 80 to specify a user to be chrooted, and will use a capability in their login class called chroot if it's specified, and their home directory if it isn't. :) [ licia@o-o.org ] [ http://www.o-o.org/~licia/ ] [ Alias : Ladywolf] [ Telnet to o-o.org and log in as bbs ] [ ssh -l bbs -C o-o.org ] [ A happy user of FreeBSD : http://www.freebsd.org/ ] main(){int num[4]={1768122732,762265697,1919889007,103};printf("%s\n",num);} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message