1819744 Members
3244 Online
109606 Solutions
New Discussion юеВ

FTP access

 
Ron Brown_2
Frequent Advisor

FTP access

User is unable to log in via FTP. How can I allow FTP access to a user in HP-UX 11.23?
should work...
10 REPLIES 10
Sp4admin
Trusted Contributor

Re: FTP access

Hi Ron,

First you need to make sure that the ftp is open in the /etc/inted.conf file and make sure that ftpd is started. Then make entry in the ftpaccess and the ftpusers files.

sp,
Sandman!
Honored Contributor

Re: FTP access

Is that happening only to the specified user or all users who have accounts on that machine?
Ron Brown_2
Frequent Advisor

Re: FTP access

I am able to connect as other users to the FTP server. This is a new server and it appears to be running WU-FTPd 2.6.1, but webmin can't seem to find it.
should work...
Sandman!
Honored Contributor

Re: FTP access

Do you know what error(s) you are getting when that particular user tries to ftp to the machine. See the /var/adm/syslog/xfer.log file for error messages.

~cheers
Rasheed Tamton
Honored Contributor

Re: FTP access

If the username is entered in /etc/ftpd/ftpusers file; ftpd rejects remote logins to local user accounts.
Each restricted account name will appear alone on a line in the file.
So make sure that the user name who has no ftp access is not listed in the file.

Raj D.
Honored Contributor

Re: FTP access

Ron,

Is it a normal ftp user or configured as 'ftponly user'.

For normal ftp users permissions can be check in /etc/ftpd/ftpusers ,if entry present then that user is not allowed to do ftp.

Also for ftponly and access and permission check /etc/ftpd/ftpaccess file. ($ man ftpaccess )


Hope this helps,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Reshma Malusare
Trusted Contributor

Re: FTP access

Hi Ron,
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
hpuxrox
Respected Contributor

Re: FTP access

Don't forget /etc/shells ;-)
hpuxrox
Respected Contributor

Re: FTP access

Please disregard my last post
Dennis Handly
Acclaimed Contributor

Re: FTP access

>Yates: Don't forget /etc/shells ;-) Please disregard my last post

Why disregard? You need to make sure your shell is listed. I've had that problem.