cancel
Showing results for 
Search instead for 
Did you mean: 

root login

 
SOLVED
Go to solution
Highlighted
Frequent Advisor

root login

Hi friends

I am trying to login to ma remote machine via telnet as root user. I have editted the /etc/securetty file and added pts/0.

But still i was not able to login as root.

Can somebody help me friends.

Thanks in Advance.

Jees Joy
6 REPLIES 6
Highlighted
Exalted Contributor

Re: root login

Shalom,

telnet is disabled by default because authentication is in clear text. That means the root password goes across the network and anybody can see it. That can't be good.

Try connecting with ssh.

If you MUST enable telnet:

cd /etc/xinetd.d
ll
You will see a file marked telnet
edit it.
change disable=yes to disable=no

service xinetd restart

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Honored Contributor
Solution

Re: root login

If you use X on that station, then you should add more lines with pts to /etc/securetty file. When a user opens a console - that uses pts/x, thus when you connect via telnet - that's another pts.

you can use the following script to add 20 pts lines to /etc/securetty file:
for i in `seq 1 20`; do echo pts/$i >> /etc/securetty; done


I join Steven , by telling that using telnet is not secured. Hope security is not an issue, otherwise consider using ssh.
Highlighted
Honored Contributor

Re: root login

Hi Joy,

Its better to use ssh for root login becasue its secure.Telnet is insecure protocol. It sends login and password in plain text format.Smart user can trap the packets and get the password,but in case you need to use telnet,then simply edit the file /etc/securetty and add the following to the end of the file:

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9

This will allow up to 10 telnet sessions to the server as root.

Before doing that check your telnet service is running.I tried it on my machine its working.

Regards,
Asif Sharif
Regards,
Asif Sharif
Highlighted
Frequent Advisor

Re: root login

Thank you friends

actually when I increased the number of pts/x it started working.

I wanted to use telnet for some service.

Thanks and lot friends.
Highlighted
Frequent Advisor

Re: root login

Please refer the threads.


Thanks
Highlighted
New Member

Re: root login

Dear Jees Joy
If You Want To Login As Root Via Telnet.
Rename The /etc/securetty to /etc/securetty.bak