From owner-freebsd-questions Wed May 31 6:18:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id 7F37A37B70E for ; Wed, 31 May 2000 06:18:09 -0700 (PDT) (envelope-from ust@cert.siemens.de) X-Envelope-Sender-Is: ust@cert.siemens.de (at relayer david.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.10.1/8.10.1) with ESMTP id e4VDI6R17672; Wed, 31 May 2000 15:18:06 +0200 (MET DST) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail1.siemens.de (8.10.1/8.10.1) with ESMTP id e4VDI5014939; Wed, 31 May 2000 15:18:05 +0200 (MET DST) Received: from alaska.cert.siemens.de (reims.mchp.siemens.de [139.23.202.134]) by mars.cert.siemens.de (8.10.1/8.10.1/Siemens CERT [ $Revision: 1.8 ]) with ESMTP id e4VDI5j27308; Wed, 31 May 2000 15:18:05 +0200 (CEST) Received: (from ust@localhost) by alaska.cert.siemens.de (8.10.1/8.10.1/alaska [ $Revision: 1.5 ]) id e4VDI5a71165; Wed, 31 May 2000 13:18:05 GMT Date: Wed, 31 May 2000 15:18:05 +0200 From: Udo Schweigert To: Fabrizzio Batista Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Read-Only File Systems Message-ID: <20000531151805.A70766@alaska.cert.siemens.de> References: <008101bfcafa$2cfee400$65010180@lojasobino.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <008101bfcafa$2cfee400$65010180@lojasobino.com.br>; from Fabrizzio.Batista@lojasobino.com.br on Wed, May 31, 2000 at 09:17:20AM -0300 X-Operating-System: FreeBSD 4.0-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, May 31, 2000 at 09:17:20 -0300, Fabrizzio Batista wrote: > > Hi gurus, > > 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 -- Udo Schweigert, Siemens AG | Voice : +49 89 636 42170 ZT IK 3, Siemens CERT | Fax : +49 89 636 41166 D-81730 Muenchen / Germany | email : ust@cert.siemens.de PGP-2/5 fingerprint | D8 A5 DF 34 EC 87 E8 C6 E2 26 C4 D0 EE 80 36 B2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message