Date: Fri, 28 Jul 2006 08:23:42 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Mihai Velicu <bvelicu@telus.net> Cc: freebsd-questions@freebsd.org Subject: Re: question about ttys Message-ID: <44C9BB7E.2090402@infracaninophile.co.uk> In-Reply-To: <20060728052405.BED5SB6TWC@priv-edmwaa06.telusplanet.net> References: <20060728052405.BED5SB6TWC@priv-edmwaa06.telusplanet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C9BB7E.2090402>