How to enable Telnet in Solaris 9

November 19, 2010 | In: Solaris

The “inetd” demon runs the telnet server. By default, the telnet is disabled in Solaris. It not recommended to login via telnet in an unsecured environment. However, in cases such as Xforwarding (click here) requirements, you need to get it up. Here is how to get it done.

Check whether inet daemon is running.

ps -ef | grep inetd

Now edit the file /etc/inet/inetd.conf. Find the following lines

# TELNETD - telnet server daemon
telnet  stream  tcp6    nowait  root    /usr/sbin/in.telnetd    in.telnetd

Make sure that “telnet” line is uncommented.

Now open the file /etc/inet/services. Uncomment the line which says telnet

telnet          23/tcp

Now you need to restart the inetd if it was running or you need to start it.

find the process id using

ps -ef |grep inetd

kill -HUP <processid>

to restart the daemon.

If the service was not started initially, start it using the following command

/usr/sbin/inetd -s

check with ps -ef whether the process is running. Now try to connect using telnet and it should work fine.

The telnet root login won’t work. To enable it make the changes given below.

Assign 644 permission to the file /etc/default/login

chmod 644 /etc/default/login

Edit the file to find the line

CONSOLE=/dev/console

Commend the above line. Now the telnet should work fine for root login too. PLEASE NOTE THAT ENABLING ROOT LOGIN IS UNSECURE FOR A PRODUCTION SYSTEM.

mm
Hi All… I have been working the IT Industry since last ten years… Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Comment Form

*

Authors

mm
Presoon John

Hi All... I have been working the IT Industry since last ten years... Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Access this post via Mobile

Scan the QR Code
QR Code Generator

Categories