System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable root loing in telnet

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to enable root loing in telnet

Hi

I have configure telnet in one my HP-UX server. now I want to enable root user to login thru telnet.

pls help me.
10 REPLIES
Avinash20
Honored Contributor

Re: how to enable root loing in telnet

So your query is that "only" root user should be able telnet

Is that your are looking for
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Jeeshan
Honored Contributor

Re: how to enable root loing in telnet

root user can login through telnet.

did you get any error while connecting?

check in /etc/inetd.conf file for telnet configuration line is uncommented or not.

then run command

#inetd -c

then try to login through telnet.
a warrior never quits
senthil_kumar_1
Super Advisor

Re: how to enable root loing in telnet

what is the purpose of "#inetd -c" command.
yulianto piyut
Valued Contributor

Re: how to enable root loing in telnet

user root can login via telnet. check if telnet is enable in your system:
vi /etc/inetd.conf.
Avinash20
Honored Contributor
Solution

Re: how to enable root loing in telnet

If you unable to telnet to the server

# cat /etc/inetd.conf | grep telnet

Uncomment out the entry

# inetd -c

Then try to telnet

Check for /etc/securetty file
If it contains root, you wont be able to telnet
Remove that entry

Also check
See /etc/default/security - http://docs.hp.com/en/B9106-90011/security.4.html

NOLOGIN
This parameter controls whether non-root login can be disabled by the /etc/nologin file.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: how to enable root loing in telnet

# inetd -c will reread the configruation file /etc/inetd.conf

So any changed in inetd.conf will come into effect if you run the above command

It will not affect the server
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Gokul Chandola
Trusted Contributor

Re: how to enable root loing in telnet

Hi,
use SAM to manage telnet users, there are even option that you can restrict with IP address and hostname.
You can manage as per your requirement.
If you want allow fews and Restrict to Others its easly manage throw SAM gui option.

#SAM

Regards,
Gokul Chandola
There is always some scope for improvment.
點燃
Valued Contributor

Re: how to enable root loing in telnet

# cat /etc/inetd.conf |grep -i telnet
Uncomment the below line,

# telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue

Now run,


# inetd -c
Man's mind, once stretched by a new idea, never regains its original dimensions
senthil_kumar_1
Super Advisor

Re: how to enable root loing in telnet

Thanks a lot.

I have done.

so "# inetd -c " is like restarting inetd serveice.

To restart, can we use below command.
Ex: /sbin/init.d/inetd restart

Avinash20
Honored Contributor

Re: how to enable root loing in telnet

inetd (1m)
inetd recognizes the following options. These options can be used only by a superuser.

-c Reconfigure the Internet daemon; in other words, force the current inetd to reread /etc/inetd.conf. This option sends the signal SIGHUP to the Internet daemon that is currently running. Any configuration errors that occur during the reconfiguration are logged to the syslogd daemon facility.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."