From owner-freebsd-questions Wed May 31 17:15:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hermes.avantgo.com (ws1.avantgo.com [207.214.200.194]) by hub.freebsd.org (Postfix) with ESMTP id F3DBF37BF56 for ; Wed, 31 May 2000 17:15:47 -0700 (PDT) (envelope-from scott@avantgo.com) Received: from river.avantgo.com (river.avantgo.com [10.0.128.30]) by hermes.avantgo.com (Postfix) with ESMTP id 94B8820; Wed, 31 May 2000 17:15:47 -0700 (PDT) Date: Wed, 31 May 2000 17:16:02 -0700 (PDT) From: Scott Hess To: Udo Schweigert Cc: Fabrizzio Batista , freebsd-questions@FreeBSD.ORG Subject: Re: Read-Only File Systems In-Reply-To: <20000531151805.A70766@alaska.cert.siemens.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As an alternative, you could boot the system, and do 'mount -u -o rw /dev/da0s1a /' and the same for /usr, to remount the filesystems read-write. Later, scott On Wed, 31 May 2000, Udo Schweigert wrote: > On Wed, May 31, 2000 at 09:17:20 -0300, Fabrizzio Batista wrote: > > I've harden my FreeBSD Firewall at the filesystem layer. I modified / > > and /usr in /etc/fstab to read-only (ro). Is There > > some way to undo this changes in fstab ? > > > > I've tried boot in single user mode,but system mount / and /usr > > read-only. > > Say you have in /etc/fstab: > > /dev/da0s1a / ufs ro 1 1 > /dev/da0s1e /usr ufs ro 2 2 > > Boot into single user mode and type in: > > # mount -o rw /dev/da0s1a / > # mount -o rw /dev/da0s1e /usr > > That`s it. > > The commands > > # mount / > # mount /usr > > won't do it, because they read the settings from /etc/fstab. > > Regards > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message