From owner-freebsd-questions@FreeBSD.ORG Fri Jul 28 07:24:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B26BA16A4E7 for ; Fri, 28 Jul 2006 07:24:56 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 627F343D7F for ; Fri, 28 Jul 2006 07:24:41 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [172.16.3.238] (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.13.6/8.13.6) with ESMTP id k6S7O9cU002053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Jul 2006 08:24:14 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.13 smtp.infracaninophile.co.uk k6S7O9cU002053 Message-ID: <44C9BB7E.2090402@infracaninophile.co.uk> Date: Fri, 28 Jul 2006 08:23:42 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.4 (X11/20060605) MIME-Version: 1.0 To: Mihai Velicu References: <20060728052405.BED5SB6TWC@priv-edmwaa06.telusplanet.net> In-Reply-To: <20060728052405.BED5SB6TWC@priv-edmwaa06.telusplanet.net> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig9BA879CF02E231667ED7CFAB" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [81.187.76.162]); Fri, 28 Jul 2006 08:24:35 +0100 (BST) X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: question about ttys X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 07:24:56 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9BA879CF02E231667ED7CFAB Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Mihai Velicu wrote: > Hi ! >=20 > =20 >=20 > I'm new in FreeBSD and I made a mistake. >=20 > In the file ttys I changed to insecure all the lines and now I cannot l= og on > even as root. >=20 > Only in single user I can log on but I cannot modify the file ttys is s= aid > something this is a read only file system. >=20 > Please tell me how I can remediate my error, how I can modify back the = file > ttys ? >=20 > If is possible of course. Sure it's possible. Boot into single user, as you did before, then fsck and mount all the partitions on your machine: # fsck -p # mount -a You should now be able to edit /etc/ttys, although just copying in a defa= ult one from /usr/src/etc/etc_i386/ttys (assuming you're on an IA32 machine) might be easier. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig9BA879CF02E231667ED7CFAB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEybuZ8Mjk52CukIwRAyhMAJ9xt6+XK9INOIVGJanRzFU660ddxQCfZl76 ytM8UnkPXECOKuyDKQBohPo= =VlXw -----END PGP SIGNATURE----- --------------enig9BA879CF02E231667ED7CFAB--