Operating System - HP-UX
1745789 Members
3975 Online
108722 Solutions
New Discussion юеВ

Re: Enable FTP on HP unix server

 
SOLVED
Go to solution
Prakash Jadwani
Contributor

Enable FTP on HP unix server

Hi All

How to Enable FTP access on HP Unix server.
Presently i not able to ftp on HP Unix server.
6 REPLIES 6
Peter Godron
Honored Contributor

Re: Enable FTP on HP unix server

Hi,
as a start:

Un-comment any ftp lines in /etc/services

Check you have an entry for ftp in /etc/inetd.conf.

Restart the inetd with inetd -c

Then please report back any problem.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !
Univer_1
Valued Contributor

Re: Enable FTP on HP unix server

The FTP access is open by default.

Did you turn on the "Trusted System"?

If you did, you can unconvert the system by sam -> "Auditing and Security" -> "Audited Users" -> "Action" -> "Unconvert the system"

Or you can move on to use the ssh.
Sunny Jaisinghani
Trusted Contributor

Re: Enable FTP on HP unix server

First see if your ftp is configured on the server.

1. check /etc/inetd.conf file. check if the ftp entry is uncommented.
2. check if the port 21 is established on your server.
3. after doing this do /sbin/init/ftp stop
/sbin/init/ftp start

sunny
Fabian Brise├▒o
Esteemed Contributor

Re: Enable FTP on HP unix server

Hello. Prakash.

Please check your /etc/services file and /etc/inetd.conf file

search for ftp and uncomment it in case of being commented.

Hope this helps
Knowledge is power.
linuxfan
Honored Contributor

Re: Enable FTP on HP unix server

Besides checking to make sure ftp is enabled and running, make sure the file /etc/shells exists and has the user's $SHELL defined.

Also make sure the user is not defined in /etc/ftpd/ftpusers

Btw - which OS are you running?
They think they know but don't. At least I know I don't know - Socrates
Reshma Malusare
Trusted Contributor
Solution

Re: Enable FTP on HP unix server

Hi prakash,
For enabling FTP & its use. Please refer following points:
1> /etc/services --> The used must be registered in the /etc/services file.Also,check for port 21 as it is used for FTP.
2> /etc/inetd.conf -->The Internet daemon accesses the configuration data it needs by reading the file /etc/inetd.conf.
Please read following document for how to add entries in this file.
http://docs.hp.com/en/32650-90897/ch02s02.html
3>/var/adm/inetd.sec --> disallow & allow users network services
The /var/adm/inetd.sec file is a security file that inetd reads to determine which remote hosts are allowed access to the services on your host. The inetd.sec file is optional; you do not need it to run the Internet Services.check thif file alos.
You can use either a text editor or SAM to edit the inetd.sec file
This are essential files. now for ftp configuration.you need following files.
There are five files used to hold FTP configuration information.
Check following files:
1./etc/ftpd/ftpaccess --> configuration file is the primary configuration file for defining how the ftpd daemon operates. It is not necessary to enable the ftpacess file inorder to run ftpd. The configuration files allow you to configure FTP features, such as the number of FTP login tries permitted, FTP banner displays, logging of incoming and outgoing file transfers, access permissions, use of regular expressions, etc.

2. /etc/ftpd/ftpconversions -->Defines options for compression/decompression and tar/untar operations

3./etc/ftpd/ftphosts -->Lets you allow/deny FTP account access according to source IP addresses and host names.

4./etc/ftpd/ftpusers --> Restricts FTP access for specified users. This file shows entries which dont have access for ftp.
deny ftp access to selected users.

5./etc/ftpd/ftpgroups -->The group password file for use with the SITE GROUP and SITE GPASS commands

Also check for :
2./etc/passwd --> anonymous ftp access

3.~/.netrc -->login information for ftp.The .netrc file contains login and initialization information used by the ftp autologin process .ftp autologin
allows users to ftp to other hosts.


Thanks & Regards
Reshma