LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2010, 05:33 AM   #1
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Telnetd (busybox) - login doesn't ask for password


Hi there,

I'm trying to configure an embedded device to run telnetd (yes, I know ssh is more secure - it's a backwards compatibility thing!) but it doesn't ask for my password.

I've tried getting telnetd to run two ways:

1) By adding the following line to /etc/inetd.conf:

Code:
telnet         stream  tcp     nowait  root    /usr/sbin/telnetd       telnetd -i
2) By running telnetd as its own service with a pre-prepared init.d script that just runs telnetd with "-l /bin/login" as its only arguments.

But both methods give the same result:

Code:
$ telnet 192.168.1.21
Trying 192.168.1.21...
Connected to 192.168.1.21.
Escape character is '^]'.

triton1 login: root
Login incorrect
triton1 login:
It just rejects me without asking for a password.

Anybody got any ideas?

John G



Edit: I just tried getting telnetd (not running from inetd) to run a custom script which just runs "login", and that gives exactly the same result - looks like a fault with /bin/login...?


Post-edit edit: Everything's normal if I don't use a low UID - anybody know how to change this?

Last edited by JohnGraham; 01-21-2010 at 06:22 AM.
 
Old 01-21-2010, 07:14 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Original Poster
Rep: Reputation: 139Reputation: 139
Okay, found the problem - I didn't know about /etc/securetty, which I needed to add my remote terminal to.
 
  


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
How to change telnetd Login banner ihweb Linux - Newbie 3 02-23-2008 09:04 PM
Telnetd vande012 Linux - Newbie 1 02-04-2008 11:08 AM
login and password techxkg1086 Slackware - Installation 4 12-20-2007 08:12 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
How to set login and password and root password in suse 10.2 sirius57 SUSE / openSUSE 8 07-24-2007 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:37 PM.

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