Operating System - HP-UX
1824881 Members
3899 Online
109675 Solutions
New Discussion юеВ

How to configue FTP on HP-UX server

 
amreek bansal
Frequent Advisor

How to configue FTP on HP-UX server


Hi, Quick question, Can anyone tell me how to enbale FTP on a HP-UX server, so that I can ftp to it from another server ?

Thanks
7 REPLIES 7
Mel Burslan
Honored Contributor

Re: How to configue FTP on HP-UX server

edit /etc/inetd.conf file
find the line which starts with "ftp" most probably preceded by a # sign if it is not currently running on this system. Remove the # sign.
restart inetd by

/usr/sbin/inetd -k
/usr/sbin/inetd -l (-l is not mandatory but gives you a good bit of information on inetd activities in syslog so strongly suggested)

that should do it.

if you do not have an ftp line, then insert something like this into /etc/inetd.conf file:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -Lliou 007

the do the inetd restart as described above.

Hope this helps

PS. Look into scp instead of using ftp. It is secure and easily scriptable
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: How to configue FTP on HP-UX server

Shalom,

ftp is normally configured by default.

To check it:

netstat -an | grep 21

Check /etc/inetd.conf for configuration of the ftpd daemon.

If commented, uncomment and:

inetd -c

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: How to configue FTP on HP-UX server

Hi:

The first step is to make sure the 'ftp' daemon is un-commented in '/etc/inted.conf' If it isn't, do so, and restart the inetd daemon with 'inetd -c'.

Much more can be found here:

http://docs.hp.com/en/5992-4607/ch05s02.html

Regards!

...JRF...
johnsonpk
Honored Contributor

Re: How to configue FTP on HP-UX server

Hi Amreek,

Here is the steps,
1)uncomment or create the ftp entry in /etc/inetd.conf
2)let inetd to reload the changes by inetd -c

3)create an ftpuser's shell entry in the /etc/SHELLS
4)remove the ftpuser id from /etc/ftpd/ftpusers


Thanks!!
Johnson

Suraj K Sankari
Honored Contributor

Re: How to configue FTP on HP-UX server

Hi,

Un-Comment ftp line from /etc/inetd.conf and run "inetd -c" test by trying to ftp to the host.

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

User name is not reflect in this file /etc/ftpd/ftpusers

If /var/adm/inetd.sec file is there then add your ipaddress showing below

ftp allow 15.* 127.0.0.1 192.170.74.* 192.170.84.*

Suraj
Taifur
Respected Contributor
Kranti Mahmud
Honored Contributor

Re: How to configue FTP on HP-UX server

Hi Amreek,

1. Issue the following command to establish a connection with the remote host:

ftp remote_host_name or remote_IP_address

2. Type your user name when prompted for it by the remote host. If you do not have an account on the remote host, type anonymous or ftp as the user name to get access to the anonymous ftp directory. Anonymous ftp allows you access only to the directory that is set up for anonymous ftp.

3. Type your password when prompted for it by the remote host. If you are logging in as anonymous, type your user name and local host name as the password:

user_name@local_host_name

Note that if you are using the Secure Internet Services version of ftp you will not be prompted for a password.

4. Set the transfer type, if necessary. The binary type may be used to transfer all types of files. To find out the current transfer type, type status at the ftp> prompt. To set the transfer type to binary, type binary at the ftp> prompt.

5. You can perform directory operations on the remote host, by issuing commands like pwd, cd, and ls. For a list of ftp commands, type ? at the ftp> prompt. For help on a specific command, type ? command at the ftp> prompt.

6. To perform directory operations and other shell commands on the local host, put an exclamation point before the command, for example, !ls.

At the ftp> prompt, use the put or get command to transfer files between the local and remote systems:

ftp> put filename [destination_filename]
ftp> get filename [destination_filename]

The put command transfers a file from the local host to the remote host. The get command transfers a file from the remote host to the local host. If you do not specify a destination_filename, the copy of the file will have the same name as the original.

7. To exit from ftp and return to the HP-UX prompt on your local host, type quit at the ftp> prompt.

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!