Allowing root access in telnet server for Freebsd

Posted in FREEBSD, SERVERS by edeguzman on September 20, 2009

This is just a quick post. Someone ask me on how to allow root login in telnet. This is not advisable to do but just sharing this stuff.

1) Open /etc/ttys as root.

2) Append “off secure” to the lines beginning with “tty” as follows.

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

3) Restart the telnet daemon using the following command (as root).

# /etc/rc.d/inetd restart

Advertisements

2 Responses

Subscribe to comments with RSS.

  1. sam said, on February 23, 2011 at 11:11 pm

    I’m using FreeBSD 8.2 and this doesn’t work.
    I still get [ SRA login failed ] when I try to log in as root via telnet.

    • edeguzman said, on February 24, 2011 at 1:05 pm

      I have not yet upgraded to 8.2. But the above post is tested on FreeBSD 7.1 and FreeBSD 7.2.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: