LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-28-2005, 11:25 AM   #16
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15

Ok i emerged sys-apps/xinetd. and it emerged
Then i re emerged net-misc/netkit-telnetd and that emerged

I did

Code:
/etc/init.d/xinetd restart
and it now said starting xinetd...

Now when an try to telnet to that system (from a remote one), i now get a blank screen and then it goes back to my orginal prompt. So I guess something is happening, but I dont know whats going on??

Why don't things work straight up??

Do i need to edit anything with xinetd again?
 
Old 06-28-2005, 11:39 AM   #17
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
my /etc/xinetd.conf file says the follwing:


defaults
{
only_from = localhost
instances = 60
log_type = SYSLOG authpriv info
log_on_success = HOST PID
log_on_failure =HOST
cps =25 30
}

includeddir /etc/xinetd.d

What do i need to do, in order to allow telnet?

Thanks.

Last edited by FlashAsh99; 06-28-2005 at 11:41 AM.
 
Old 06-28-2005, 11:51 AM   #18
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Does anything weird show up in your log files? What happens if you try to telnet to localhost on that system?
 
Old 06-28-2005, 12:04 PM   #19
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Im not sure how to check the log file, (i am new to all this). I have telneted localhost, and it works. The thing is I am trying to telnet from a windows system, it shouldnt really make a difference, should it? When I try it the other way round it works.

Im not sure what to do next, i commented the line 'only_from = localhost', but the same thing happened aswell.
 
Old 06-28-2005, 12:09 PM   #20
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
After commenting out that line, did you restart xinetd?
 
Old 06-28-2005, 12:11 PM   #21
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Acutally forget what i said... It did work, I commented that line out only_from=localhost. That worked. I just forgot to restart xinetd.

Thanks forr you help, cheers

Last edited by FlashAsh99; 06-28-2005 at 12:19 PM.
 
Old 06-28-2005, 12:22 PM   #22
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem. Glad we got it sorted.
 
Old 06-29-2005, 01:47 AM   #23
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
u have not installed xinetd. install the xinetd package and then follow the steps specified
 
Old 06-29-2005, 01:50 AM   #24
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
vimal: I think he got that a few posts ago, lol.

Sorry, it's late (early), I'm tired.
 
Old 06-29-2005, 03:24 AM   #25
FlashAsh99
LQ Newbie
 
Registered: Jun 2005
Posts: 29

Original Poster
Rep: Reputation: 15
I've noticed that everytime i boot into linux, i have to restart the xinetd. How do i get it to restart automatically?

Thanks
 
Old 06-29-2005, 03:50 AM   #26
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
Originally posted by FlashAsh99
I've noticed that everytime i boot into linux, i have to restart the xinetd. How do i get it to restart automatically?

Thanks
Do you mean that xinetd does not start, or that it starts, but won't work until you restart it?

xinetd will only start at boot time if there is a link to it in the right rcN.d folder.
You need to create a few symlinks:
/etc/rc2.d/S20xinetd -> /etc/init.d/xinetd
/etc/rc3.d/S20xinetd -> /etc/init.d/xinetd
/etc/rc4.d/S20xinetd -> /etc/init.d/xinetd
/etc/rc5.d/S20xinetd -> /etc/init.d/xinetd
/etc/rc6.d/K20xinetd -> /etc/init.d/xinetd

You may change 20 for whatever you want, it only affects the startup order. Be aware that interdependencies between the programs may cause problems if they are started in the wrong order.
Don't remove the S or K at the beginning of the name. This tells init wether to Start or Kill the program. When init goes to runlevel N, it starts programs linked in /etc/rcN.d/ and that start with S with the start argument. (eg. if you have '/etc/rc5.d/S20xinetd -> /etc/init.d/xinetd' and init goes to runlevel 5, it will execute '/etc/init.d/xinetd start') Programs that start with K work in the same way, but init starts them with the stop argument. (eg. when you will get to runlevel 6, init will execute '/etc/init.d/xinetd stop')

If these directories do not exist, or do not contain links named S<number><program> or K<number><program>, it means your system uses a different directory naming convention. Please don't try to create the symlinks mentioned above in that case.
 
Old 06-29-2005, 08:47 AM   #27
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
FlashAsh99, since you're running Gentoo, a simple 'rc-update add xinetd default' will take care of that for you. (As root of course)
 
Old 06-29-2005, 12:49 PM   #28
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
man u have not installed xinetd. please install it .after that install the telnet server. and edit the /etc/xinetd.d/telnet file and change "disable=yes" to "no". restart xinetd.
 
Old 06-29-2005, 01:15 PM   #29
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
vimal: he's done it. he announced his problem was fixed about 6 posts ago.
 
  


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 do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 12:40 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet IP seb77 Linux - Newbie 4 10-15-2003 03:15 PM
enable telnet but can't telnet from the computer guanyu Linux - Networking 8 08-26-2002 06:34 AM
telnet local but no-telnet via internet blacksheep Linux - Networking 7 11-26-2001 02:33 PM

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

All times are GMT -5. The time now is 01:44 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