1835592 Members
2675 Online
110079 Solutions
New Discussion

Re: ftp

 
P.V.Ramesh
Advisor

ftp

Is by default ftp service enabled in HP-UX. If not how to enable it.
7 REPLIES 7
Alan Casey
Trusted Contributor

Re: ftp

This should be enabled by default.
It is controled in the /etc/inetd.conf file
Leif Halvarsson_2
Honored Contributor

Re: ftp

Hi

Ftp is enabled by default. Do you have problems using it. Try to create a file (on the server) /etc/shells which contains:
/bin/sh
/bin/csh
/bin/ksh
P.V.Ramesh
Advisor

Re: ftp

Hi

In /etc/inetd.conf, the line corresponding to ftp in not commented, but no user is able to transfer the file using ftp service. Only root is able to use this. Do you think i have to edit any other files apart from this.

In simple words I want enable ftp service to all users. Please suggest me how to do this.
Alan Casey
Trusted Contributor

Re: ftp

The File: /etc/ftpusers
name all users that you DO NOT want to have ftp access.

Make sure the users are NOT listed in here.
H.Merijn Brand (procura
Honored Contributor

Re: ftp

One minor detaul that is badly documented, but will inhibit ftp usage is /etc/shells

This file should state all possible login shells that are allowed for ftp users

We have all users with /usr/bin/tcsh (or equivalent), so our /etc/shells looks like

--8<---
/sbin/sh
/usr/bin/csh
/usr/bin/ksh
/usr/bin/remsh
/usr/bin/rksh
/usr/bin/rsh
/usr/bin/sh
/usr/bin/shl
/usr/bin/tcsh
/SENDMAIL/ANY/SHELL/
-->8---
Enjoy, Have FUN! H.Merijn
Gordon Brown_4
Frequent Advisor

Re: ftp

You also need to have an ftp entry in /etc/services:

ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)

in /etc/ftpd, check that you do not have an ftpaccess file with root as the only entry. In the same directory you may have an ftpusers file. Make sure that this is empty so that all can use ftp.

For anonymous ftp, you need an ftp guest account in /etc/passwd:

ftp:*:500:10:anonymous ftp:/home/ftp:/usr/bin/false

Hope this is of some use, happy to help.

Gordon

dontfolimeamloast
Fragon
Trusted Contributor

Re: ftp

Another, if your /etc/inetd.conf file contain such ftp entry (example):
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l -d
you should consider /etc/ftpd/ftpaccess file!
You can use man(4) ftpaccess to learn more about it!

-Gerald-