HP-UX Remote Access Services Administrator's Guide

The password field must be *, the group membership must be guest, and the login
shell must be /usr/bin/false. In this example, the user ftps user ID is 500, and
the anonymous ftp directory is /home/ftp .
For more information on the passwd file, type man 4 passwd at the HP-UX prompt.
Creating an Anonymous FTP Directory
The anonymous FTP directory consists of four subdirectories: usr, etc, pub, and
dist, created under the /home/ftp directory. These subdirectories allow the FTP
user to obtain the same directory structure as a real user.
To create an anonymous FTP directory, complete the following steps:
1. Create the ftp home directory that you configured in the /etc/passwd file, as
in the following example:
# cd /home
# mkdir ftp
2. Create the subdirectory /usr/bin under the ftp home directory:
# cd /home/ftp
# mkdir usr
# cd usr
# mkdir bin
3. Copy the file /sbin/ls to the /home/ftp/usr/bin directory, and set the
permission of the /home/ftp/usr/bin directory to 0111 (executable only):
# cp /sbin/ls /home/ftp/usr/bin
# chmod 0111 /home/ftp/usr/bin/ls
Configuring Anonymous FTP Access 37