From owner-freebsd-chat Sat Feb 3 12:37:40 2001 Delivered-To: freebsd-chat@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 399F637B401 for ; Sat, 3 Feb 2001 12:37:23 -0800 (PST) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f13Kb6x58781; Sat, 3 Feb 2001 12:37:06 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f13Kap839686; Sat, 3 Feb 2001 12:36:51 -0800 (PST) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15139.981232112@critter> Date: Sat, 03 Feb 2001 12:36:51 -0800 (PST) Organization: BSD, Inc. From: John Baldwin To: Poul-Henning Kamp , chat@FreeBSD.org Subject: Re: DEVFS newbie... Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 03-Feb-01 Poul-Henning Kamp wrote: > It's really very simple, if I get my way, this will be possible: > > # rm /dev/null > # echo 'OOPS!' ^^^^^^^^^^^^ And this is the most important command in this whole sequence.. :) > # rm -W /dev/null > # ls -l /dev/null > crw-rw-rw- 1 root wheel 2, 2 3 Feb 21:25 /dev/null > # mount -t devfs devfs /home/jail/dev > # cd /home/jail/dev > # rm -f * > # rm -W null zero tty console > # ls -l > crw------- 1 phk wheel 0, 0 2 Feb 01:09 console > drwxr-xr-x 2 root wheel 0 2 Feb 01:06 fd > crw-rw-rw- 1 root wheel 2, 2 3 Feb 21:25 null > crw-rw-rw- 1 root wheel 1, 0 3 Feb 17:27 tty > crw-rw-rw- 1 root wheel 2, 12 1 Jan 1970 zero > # -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message