Operating System - HP-UX
1834241 Members
2631 Online
110066 Solutions
New Discussion

Re: how do I enable ftp again...

 
SOLVED
Go to solution
Ratzie
Super Advisor

how do I enable ftp again...

We have tightened the server down and now I need to ftp to a ftp server to retrieve some files but when I try to ftp I get this...

I thought is was the /etc/inetd.conf file...

root@server# ftp server1
ftp: ftp/tcp: unknown service
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: how do I enable ftp again...

You probably need to first uncomment the ftp entry in /etc/services then uncomment the ftp entry in /etc/inetd.conf and then issue an inetd -c command.

If you are using NIS, NIS+, or LDAP to map services then you need to reenable the portname to number entry and regereate the map/table.
If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: how do I enable ftp again...

Hi LHradowy ,

1. Check /etc/services for the entry :

ftp 21/tcp # File Transfer Protocol (Control)

2. check /etc/inetdc.conf for

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a

3. If comment is there , uncomment it. Remove the hash.

4. run "inetd -c" inetd to reread the configuratoin file. :

# inetd -c

5. check ftp.

Hope this will help.

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Ratzie
Super Advisor

Re: how do I enable ftp again...

Thanks