LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Closed Thread
 
Search this Thread
Old 10-23-2001, 07:05 PM   #1
stevel
LQ Newbie
 
Registered: Oct 2001
Posts: 3

Rep: Reputation: 0
Question Unable to login as root via telnet


I am unable to login via telnet to my Linux server (running YellowDogLinux) using the root account. But I am able to do so with an ordinary account. Why is that?

When I'm logged in as an ordinary user, I could change to SU with the same root password with no problem.

Another thing I noticed was I can't run certain commands after I logged in, not even after I switched to SU. For example when I run ifconfig, it tells me command not found. On the server itself i have no problem executing this command.

Thanks for your insight.
 
Old 10-23-2001, 10:49 PM   #2
lsof
Member
 
Registered: Oct 2001
Distribution: red hat 7
Posts: 58

Rep: Reputation: 15
Re: Unable to login as root via telnet

Quote:
Originally posted by stevel
I am unable to login via telnet to my Linux server (running YellowDogLinux) using the root account. But I am able to do so with an ordinary account. Why is that?
possibly because telnet is insecure & the developers @ ydl have disabled root login so as to offer some protection for people who still need to use telnet.

Quote:
Originally posted by stevel
When I'm logged in as an ordinary user, I could change to SU with the same root password with no problem.

Another thing I noticed was I can't run certain commands after I logged in, not even after I switched to SU. For example when I run ifconfig, it tells me command not found. On the server itself i have no problem executing this command.

Thanks for your insight.
try su-

& c what happens.
 
Old 10-24-2001, 12:10 AM   #3
stevel
LQ Newbie
 
Registered: Oct 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks. Trying su- works. Just out of curiousity, what does that little "-" do?

Also, out of curiosity, can anyone tell me where do we enable or disable root login for telnet?
 
Old 10-24-2001, 02:34 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by stevel

Also, out of curiosity, can anyone tell me where do we enable or disable root login for telnet?
as far as i know, you can't and you shouldn't anyways. it is setup that way for security purposes... if you want a secure login thru telnet though, i would recommend checking into ssh.

the reason you don't want to login directly as root is cause if anyone was to get your root password, then they have full control of your machine...
 
Old 10-24-2001, 04:29 AM   #5
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Quote:
Originally posted by stevel
Thanks. Trying su- works. Just out of curiousity, what does that little "-" do?

Also, out of curiosity, can anyone tell me where do we enable or disable root login for telnet?
The "-" logs you on as root rather then just makes you root, i.e. you get all the log on scripts running.

You still shouldn't send your root password over telnet though! Use ssh, its a lot more secure, has lots more features, and windows clients are available.
 
Old 10-24-2001, 05:05 AM   #6
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
First I don't recommend you using an insecure protocol like DARPA "i.e telnet", use SSH2 instead for remote access.
And never allow root access as brute force on telnet is quite fast.

anyway answering your question, you need to allow access to the terminal that telnet uses for root, to do this you would add the lines.

ttyp0
ttyp1
ttyp2
ttyp3

to the file /etc/securetty

Type "man securetty" to find out more about it.

as Dorward already said the "-" option tells login to run the users environmental setting scripts from its home directory.
Can also use "-l"
eg. su -l root

/Raz
 
Old 11-19-2008, 04:35 AM   #7
takuttamkumar
LQ Newbie
 
Registered: Nov 2008
Distribution: redhat/fedora/centos
Posts: 2

Rep: Reputation: 0
Any how telnet root login possible in FC2/centos 5 i386

Any how telnet root login possible in FC2/centos 5 i386(not considering security issues).
For me it works in FC2/centos 5 i386 after executing this command:
mv /etc/securetty /etc/securetty.save(if other local user loggin is possible through telnet).
Try again root login through telnet after this with root password correctly
 
Old 11-19-2008, 04:40 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I think a 7 year old zombie post must be a record!!!

Did you notice when this thread was last updated?
 
Old 11-19-2008, 05:09 AM   #9
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
takuttamkumar, don't resurrect dead threads. Closed.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't login with TELNET for ROOT sjcollier Linux - Newbie 5 08-17-2003 03:07 PM
Telnet login as root macone Linux - Security 7 11-13-2002 05:39 AM
Login thru telnet as root uprichard Linux - Security 11 05-09-2002 12:12 PM
Root login to telnet sarmadys Linux - Security 6 01-24-2002 01:09 PM


All times are GMT -5. The time now is 01:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration