1833694 Members
3369 Online
110062 Solutions
New Discussion

Re: How to enable FTP

 
SOLVED
Go to solution
Ezhilarasan
Occasional Advisor

How to enable FTP

Hi,

How to enable FTP for a userid of another m/c
which is in local network to our host Unix m/c ? I hope we may have to do some settings
in our m/c to allow FTP from another m/c and that m/c's userid.

Kindly reply me.

Thanks
R.Ezhil
7 REPLIES 7
Armin Feller
Honored Contributor
Solution

Re: How to enable FTP

Hi,

verify /etc/initd.conf for:
stream tcp nowait root /usr/lbin/ftpd ftpd


and verify /etc/services for:
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)

If this line are in, the ftp services should be work.

Regrads,
Armin
Jochen Heuer
Respected Contributor

Re: How to enable FTP

Hi,

I am not sure if I understand your question correctly. What do you want to achieve?

There are two ways to log into a ftp server:

1) anonymous login --> users from remote systems log in with user anonymous and have only access to a specific directory
2) user login --> user logs in with username and password and he has access to all files he can access on the system with his user id

Which kind of login do you want to enable?
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ezhilarasan
Occasional Advisor

Re: How to enable FTP

Hi Armin,

The file /etc/initd.conf is not in our HP 11i system. Whether the file specified and
path are correct ?

But you specified entries are exist in the file /etc/services.

Please reply me in this.

Thanks
R. Ezhil
Jochen Heuer
Respected Contributor

Re: How to enable FTP

/etc/inetd.conf
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ravi_8
Honored Contributor

Re: How to enable FTP

Hi,

In /etc/inetd.conf file check whether line containing ftp (stream tcp nowait root /usr/lbin/ftpd ftpd) is commented or not. if commented, umcomment the same and execute this command
#inetd -c

to do ftp you can use the same id or any id in this machine

never give up
Armin Feller
Honored Contributor

Re: How to enable FTP

Hi Ezhil,

yes Jochen is right. Sorry a small sysntax error ;-((

Please verify /etc/inetd.conf

Regards ...
Armin
Telia BackOffice
Valued Contributor

Re: How to enable FTP

In order to properly set up FTP, complete the following:

1. Verify that the following line is in /etc/inetd.conf and not
commented out (no '#' in the first column):
For HP-UX 10.X:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd
or
netstat -a |grep ftp

The output should look like:

tcp 0 0 *.ftp *.* LISTEN


2. Verify the following services are in /etc/services and not
commented out (no '#' in the first column):

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

If you get 530 access denied login failed:
A. Verify .netrc in the user's home directory.
If the .netrc file contains password or account information for
use for use other than for anonymous ftp, its owner must match
the effective user ID of the current process. Its read, write,
and execute permission bits for group and other must all be zero,
and it must be readable by its owner. Otherwise, the file is ignored.
So if you are unsure about this file, rename it to .netrc.old for
troubleshooting purposes.

B. Check /etc/ftpusers.
ftpd rejects remote logins to local user accounts that are named
in /etc/ftpusers. Each restricted account name must appear alone
on a line in the file. The line cannot contain any white space.
User accounts that specify a restricted login shell in /etc/passwd
should be listed in /etc/ftpusers because ftpd accesses local
accounts without using their login shells.

C. You need to add or verify /etc/shells.
/etc/shells is an ASCII file containing a list of legal shells on
the system. Each shell is listed in the file by its absolute
path name. To learn more about this file, run 'man shells'. To see
the legal shells for your system run 'man getusershell'. This will
list all valid shells for your system. If you use both HP-UX 9.X and
10.X environments, include the shells for both operating systems.
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh