- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:21 PM
тАО05-31-2011 01:21 PM
errors observed:
1) inetd[1501]: ftp/tcp: Unknown service
2) # ftp 0
ftp: connect: Connection refused
ftp>
inputs:
1) # grep -i ftp services
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)
tftp 69/udp # Trivial File Transfer Protocol
sftp 115/tcp # Simple File Transfer Protocol
bftp 152/tcp # Background File Transfer Protocol
ftp-ftam 8868/tcp # FTP->FTAM Gateway
2) # grep -i ftp inetd.conf
#ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 22
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
# Before uncommenting the "tftp" entry below, please make sure
# that you have a "tftp" user in /etc/passwd. If you don't
# have one, please consult the tftpd(1M) manual entry for
#tftp dgram udp wait root /usr/lbin/tftpd tftpd
#
3) # ls -l /usr/lbin/ftpd
-r-xr--r-- 1 bin bin 610120 Nov 10 2006 /usr/lbin/ftpd
#
4) # ls -l services
-rw-r--r-- 1 bin bin 11545 May 31 14:53 services
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:23 PM
тАО05-31-2011 01:23 PM
Re: ftp issue
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:41 PM
тАО05-31-2011 01:41 PM
Re: ftp issue
tcp 0 0 *.2121 *.* LISTEN
tcp 0 0 *.2148 *.* LISTEN
udp 0 0 *.2121 *.*
udp 0 0 *.2148 *.*
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:51 PM
тАО05-31-2011 01:51 PM
Re: ftp issue
Are there any error messages in /var/adm/syslog/syslog.log?
Can you try running an 'inetd -c' and see what errors are reported and whether or not anything is generated in syslog.log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:51 PM
тАО05-31-2011 01:51 PM
Re: ftp issue
> [...]
Well, yeah. "Connection refused" made it
pretty clear that you aren't running the FTP
server.
> 1) # grep -i ftp services
> ftp-data 20/tcp # File Transfer Protocol (Data)
> ftp 21/tcp # File Transfer Protocol (Control)
> [...]
Assuming that "services" was "/etc/services",
then that looks ok to me.
> 1) inetd[1501]: ftp/tcp: Unknown service
If "/etc/services" is ok, but you get a
complaint like "Unknown service", then my
guess would be that you're not looking at the
same "services" data as inetd is. Are you
running NIS? LDAP? (Something else about
which I know nothing?)
cat /etc/nsswitch.conf
What's the history of this problem? Did FTP
ever work before on this system? What's
changed recently?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:52 PM
тАО05-31-2011 01:52 PM
Re: ftp issue
May 31 15:51:42 inescape inetd[1501]: Rereading configuration
May 31 15:51:42 inescape inetd[1501]: ftp/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: telnet/tcp: Unknown service
May 31 15:51:24 inescape syslog: gethostbyaddr: inx174303.informatica.com. != 10.65.2.76
May 31 15:51:42 inescape above message repeats 3 times
May 31 15:51:42 inescape inetd[1501]: login/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: shell/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: ftp/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: exec/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: ntalk/udp: Unknown service
May 31 15:51:42 inescape inetd[1501]: auth/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: printer/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: daytime/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: daytime/udp: Unknown service
May 31 15:51:42 inescape inetd[1501]: time/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: echo/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: echo/udp: Unknown service
May 31 15:51:42 inescape inetd[1501]: discard/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: discard/udp: Unknown service
May 31 15:51:42 inescape inetd[1501]: chargen/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: chargen/udp: Unknown service
May 31 15:51:42 inescape inetd[1501]: kshell/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: klogin/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: recserv/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: dtspc/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: swat/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: hacl-probe/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: registrar/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: hacl-cfg/udp: Unknown service
May 31 15:51:42 inescape inetd[1501]: hacl-cfg/tcp: Unknown service
May 31 15:51:42 inescape inetd[1501]: Configuration complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:55 PM
тАО05-31-2011 01:55 PM
Re: ftp issue
Sounds like a "services" data base problem,
doesn't it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:55 PM
тАО05-31-2011 01:55 PM
Re: ftp issue
This machine is of NIS client.
# ypwhich
spyder.xxxxx
nsswitch.conf file never existed. I added an hr back.. no luck though
# cat /etc/nsswitch.conf
#
# /etc/nsswitch.nis:
#
# @(#)B11.23_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
passwd: files nis
group: files nis
hosts: nis [NOTFOUND=return] files
ipnodes: files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: files nis
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:56 PM
тАО05-31-2011 01:56 PM
Re: ftp issue
In fact, I restored the original file w/o any luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2011 01:59 PM
тАО05-31-2011 01:59 PM
Re: ftp issue
services: files nis
#