LinuxQuestions.org
Help answer threads with 0 replies.
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 10-01-2005, 03:48 AM   #1
snf
LQ Newbie
 
Registered: Sep 2005
Posts: 7

Rep: Reputation: 0
ftp is not finding services file


when i ftp from my linux box to server it gives error ftp: ftp/tcp : unknown service. there is /etc/services file present
i think ftp command is unable to locate /etc/services file. how can i make ftp see services file??
 
Old 10-01-2005, 07:44 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What does your /etc/services file look like (the part/lines for ftp that is).

Should look like this:

Code:
ftp-data         20/tcp    # File Transfer [Default Data]
ftp-data         20/udp    # File Transfer [Default Data]
ftp              21/tcp    # File Transfer [Control]
ftp              21/udp    # File Transfer [Control]
Hope this helps.

PS: There's another user a.t.m. with the same problem, are you using redhat and kernel 2.4 too?
 
Old 10-01-2005, 08:08 AM   #3
snf
LQ Newbie
 
Registered: Sep 2005
Posts: 7

Original Poster
Rep: Reputation: 0
etc file is fine. problem is that location of services file is defined by _PATH_SERVICES in /usr/include/netdb.h. i donot have netdb.h file in my system. how can i give location otherwise
 
Old 10-01-2005, 08:28 AM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi again,

Maybe I misunderstand, but netdb.h is not installed at all?
It's part of the GNU C libraries and should be installed.

A quick check shows the following on my machines (LFS 5 and suse):

Code:
$ locate netdb.h | xargs ls -l
-rw-r--r--  1 root root  1349 Jun  5  2004 /usr/include/bits/netdb.h
-rw-r--r--  1 root root 25993 Jun  5  2004 /usr/include/netdb.h
-rw-r--r--  1 root root  2570 Jun  5  2004 /usr/include/rpc/netdb.h
Hope this gets you going again.
 
Old 10-02-2005, 05:37 PM   #5
snf
LQ Newbie
 
Registered: Sep 2005
Posts: 7

Original Poster
Rep: Reputation: 0
i am working on a bootable image. its size is about 60MB. it doesnot have netdb.h and many other files
things it has are ftp in sbin and services file in etc.
i think it should be able to ftp.
 
  


Reply


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
xinetd, ftp, and other services jimi_j Linux - Software 0 03-09-2004 06:37 PM
FTP Services not working atulk Red Hat 2 08-28-2003 03:01 PM
FTP Services not working atulk Linux - Networking 1 08-20-2003 05:04 AM
How to setup FTP services coolguy18087 Linux - Networking 4 03-12-2002 10:35 PM
Setting up FTP services on RH 7.1 mmason Linux - Newbie 1 09-27-2001 04:06 PM

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

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