Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
Mihai Velicu wrote:
> Hi !
> 
>  
> 
> I'm new in FreeBSD and I made a mistake.
> 
> In the file ttys I changed to insecure all the lines and now I cannot log on
> even as root.
> 
> Only in single user I can log on but I cannot modify the file ttys is said
> something this is a read only file system.
> 
> Please tell me how I can remediate my error, how I can modify back the file
> ttys ?
> 
> 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 default
one from /usr/src/etc/etc_i386/ttys (assuming you're on an IA32 machine)
might be easier.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK


[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C9BB7E.2090402>