root login with telnetd The FINAL SOLUTION

Sergio Lenzi enigma at k1.com.br
Sun Mar 11 14:22:45 UTC 2007


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


More information about the freebsd-questions mailing list