Installing and Administering Internet Services

52 Chapter 2
Installing and Configuring Internet Services
Restricting ftp Access with /etc/ftpusers
Restricting ftp Access with /etc/ftpusers
When a user attempts to log into your system using ftp, the ftpd
daemon checks the /etc/ftpusers file. If the file exists, and the user’s
login name is listed in it, ftpd denies access to the user.
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. UUCP accounts should also be
listed in /etc/ftpusers.
You can use either a text editor or SAM to create and edit the
/etc/ftpusers file. SAM (System Administration Manager) is
Hewlett-Packard’s windows-based user interface for performing system
administration tasks. To run SAM, type sam at the HP-UX prompt. SAM
has an extensive online help facility.
Each line in /etc/ftpusers consists of a login name with no white
space. Following is an example /etc/ftpusers file:
uucp
guest
nobody
For more information, type man 4 ftpusers at the HP-UX prompt.