Operating System - HP-UX
1832973 Members
2669 Online
110048 Solutions
New Discussion

Re: Disabling Anonymouis FTP

 
PatRoy
Regular Advisor

Disabling Anonymouis FTP

Hi.

Can anyone tell me how we *disable* anonymous FTP access on hpux 11.11? Just remove the 'ftp' user? Then what if we wanted to re-enable it?


What's the proper way?

thank you very much.
7 REPLIES 7
skt_skt
Honored Contributor

Re: Disabling Anonymouis FTP

man ftpd

In order to permit anonymous FTP, there must be an entry in the
passwd(4) database for an account named ftp. The password field
should be *, the group membership should be guest, and the login shell
should be /usr/bin/false. For example (assuming the guest group ID is
10):

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

James R. Ferguson
Acclaimed Contributor

Re: Disabling Anonymouis FTP

Hi:

Simply comment-out the 'tftp' line in '/etc/inetd.conf' and restart the 'inetd' daemon:

# /usr/sbin/inetd -c

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: Disabling Anonymouis FTP

> Simply comment-out the 'tftp' line in
> '/etc/inetd.conf' [...]

For the record, anonymous FTP is different
from trivial FTP (TFTP). It's offered by the
normal FTP server, not by the TFTP server.
James R. Ferguson
Acclaimed Contributor

Re: Disabling Anonymouis FTP

Hi (again):

>Steven: For the record, anonymous FTP is different from trivial FTP (TFTP). It's offered by the normal FTP server, not by the TFTP server.

Yes, you are correct, of course. I need to learn to read :-)

Disregard my orginal answer. See also the 'ftpaccess(4)' manpages, particularly the 'guestserver' configuration.

Regards

...JRF...
Bill Hassell
Honored Contributor

Re: Disabling Anonymouis FTP

The very easiest way to disable anonymous FTP is to run SAM and turn the service off. SAM will take care of all the details. Start SAM and select: Networking and Communications --> Network Services --> then disable the two put and get services.


Bill Hassell, sysadmin
J. Bravo
Respected Contributor

Re: Disabling Anonymouis FTP

Good morning:

You can do it creating the /etc/ftpd/ftpusers file and adding a line that exactly match the user account name ftp.

For more information "man ftpusers"

Regards;

J. Bravo.
PatRoy
Regular Advisor

Re: Disabling Anonymouis FTP

Indeed, easiest way was with SAM. Thanks folks! Appreciate.