HP-UX Remote Access Services Administrator's Guide

6. Copy the files /etc/passwd and /etc/group to the /home/ftp/etc directory.
The ls command requires these commands to display the owners of the files and
directories under the /home/ftp directory.
# cp /etc/passwd /home/ftp/etc
# cp /etc/group /home/ftp/etc
7. Replace the password field in all entries in the /home/ftp/etc/passwd file with
*, and delete the shell field from the end of each entry, as shown in the following
example:
#ftp:*:500:guest:anonymous ftp:/home/ftp:
#acb:*:8996:20::/home/acb:
8. Replace the password field in all the entries in the /home/ftp/etc/group file
with *, as shown in the following example:
#users:*:20:acb
#guest:*:21:ftp
9. Set the owner of the files in the /home/ftp/etc directory to root, and set the
permission of the /home/ftp/etc/group directory to 0444 (read-only), as shown
in the following example:
# chown root /home/ftp/etc/passwd
# chmod 0444 /home/ftp/etc/passwd
# chown root /home/ftp/etc/group
# chmod 0444 /home/ftp/etc/group
10. Set the owner of the /home/ftp/etc directory to root, and set the permission
of the /home/ftp/etc directory to 0555 (that is, the directory cannot be written
or edited), as shown in the following example:
# chown root /home/ftp/etc
# chmod 0555 /home/ftp/etc
Configuring Anonymous FTP Access 39