LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2006, 05:20 AM   #1
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Rep: Reputation: 15
root(super user) is unable to login by using Telnet


Hi every one,
when i am trying to login as a root from telnet or
rlogin .I got the following message.


Trail 1:-

login: root
Password: root12
Login incorrect
But root12 is right password.

Trail 2:-

login: su
Password:root12
Login incorrect

where root12 is right password.


please help me in this regard,


Regards
Ali
 
Old 01-31-2006, 05:54 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
telnet and rlogin are not secure. They are disabled for default, specially for root.
I don't remember how to circumvent this but the right way is to use ssh which is pretty the same using telnet.

You can, of course, telnet as a regular user to the remote system and them, becomes root by "/bin/su -".

regards,
 
Old 01-31-2006, 06:02 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can edit /etc/securetty to uncomment the remote tty(s) to be able to telnet as root, but as marozsas said it's not secure. You can use ssh instead.
 
Old 01-31-2006, 11:59 PM   #4
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
Thanking you for giving valuable suggetion.

But
/etc/securetty doesnot conatain any comment lines sir.


In my system /etc/securetty conatains the following:-

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
 
Old 02-01-2006, 01:18 AM   #5
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
If you use linux, you can view the configuration, you can edit /etc/xinet.d/telnet,
search like .....=root. change root with +USERID.
I hope can solve your problem
 
Old 02-01-2006, 02:23 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you insist to use telnet as root then add the following lines to /etc/securetty since they don't exist:
Code:
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
Of course there is no need to open all these terminal, one or two should be enough.
But I tell you once more to use ssh which is more secure than telnet because everything you send using ssh is encrypted while using telnet is un-encrypted
 
Old 02-01-2006, 04:51 AM   #7
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
I tried Bathory solution .
But it fails.


Please help me in this regard,
 
Old 02-01-2006, 05:47 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Try to be more specific. What is the message you get when trying to telnet as root?
If you can telnet as normal user, then do it and run
Code:
tty
to see how your distro names the pseudo-ttys. Perhaps it uses names like /dev/ttyp0 etc and not /dev/pts/0 etc, so you have to put that names in /etc/securetty.
 
Old 02-01-2006, 10:13 PM   #9
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
Thanking you Bathory sir,
But The following types of files are there in /dev.

tty0..........tty63 and


ttyS0 ..........ttyS11

related to terminals.
Still I am getting error while login as root account.
But for normal user there is no problem.

Regards
Ali
 
Old 02-02-2006, 02:12 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Still I am getting error while login as root account.
But for normal user there is no problem.
So login as normal user and run:
Code:
tty
to see in what terminal you get connected. Then use that name (without the /dev/) in /etc/securetty
 
Old 02-02-2006, 11:40 PM   #11
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
Thanking you Bathory,
Finally I got it by your help.

Regards,
Ali
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
Unable to login as root via telnet stevel Linux - Security 8 11-19-2008 05:09 AM
how to run ifconfig as root without super user terminal GUIPenguin Linux - General 1 01-15-2005 10:06 AM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 11:41 AM
Super User mode, my root password doesn't work? kko88 Linux - Newbie 8 05-20-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration