Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Mar 2007 11:22:42 -0300
From:      Sergio Lenzi <enigma@k1.com.br>
To:        freebsd-questions@freebsd.org
Subject:   Re: root login with telnetd   The FINAL SOLUTION
Message-ID:  <1173622962.1208.29.camel@localhost>
In-Reply-To: <1173622192.1208.21.camel@localhost>
References:  <20070310224946.K10353@chylonia.3miasto.net> <200703101338.22384.beech@alaskaparadise.com> <20070311081332.G66000@chylonia.3miasto.net> <14989d6e0703110143i53b3d0bfh65d0e4092993e82e@mail.gmail.com> <20070311110809.O84473@chylonia.3miasto.net> <1173622192.1208.21.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
So.....  resuming:

1) change some lines in /etc/ttys to:



ttyp0   none                    network off     secure
ttyp1   none                    network off     secure
ttyp2   none                    network off     secure
ttyp3   none                    network off     secure
ttyp4   none                    network off     secure
ttyp5   none                    network off     secure
ttyp6   none                    network off     secure
ttyp7   none                    network off     secure
ttyp8   none                    network off     secure
ttyp9   none                    network off     secure
ttypa   none                    network off     secure
ttypb   none                    network off     secure
ttypc   none                    network off     secure

> 

2) signal init to read it :  
    kill -1 1
3) make sure inetd is running
    see the /etc/rc.conf
    must have inetd_enable="YES"
4)  remove the "#"  at the line telnet in inetd.conf
5) make inetd run
    /etc/rc.d/inetd restart
6) change root password
    echo "mysecretpassword"  | pw usermod root -h 0

7) telnet to your server
    should now allow root login

Sergio



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