Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a Workgroup
Sharing Files and Applications via NFS and ftp
Chapter 4 411
Step 8. In all entries in /home/ftp/etc/group, replace the password field with
an asterisk (*):
users:*:20:acb
guest:*:21:ftp
Step 9. Change the owner of the files in ~ftp/etc to root, and set the
permissions to read only (mode 0444):
chown root /home/ftp/etc
chmod u=r,g=r,o=r /home/ftp/etc
Step 10. Create a directory pub under ~ftp, and change its owner to user ftp and
its permissions to writable by all (mode 0777).
Anonymous ftp users can put files in this directory to make them
available to other anonymous ftp users.
mkdir /home/ftp/pub
chown ftp /home/ftp/pub
chmod u=rwx,g=rwx,o=rwx /home/ftp/pub
Step 11. Create a directory dist under ~ftp. Change its owner to root and its
permissions to writable only by root (mode 0755).
mkdir /home/ftp/dist
chown root /home/ftp/dist
chmod u=rwx,g=rx,o=rx /home/ftp/dist
Step 12. Change the owner of user ftp’s home directory to root and the
permissions to not writable (mode 0555):
chown root /home/ftp
chmod u=rx,g=rx,o=rx /home/ftp
Troubleshooting ftp login
Symptom: Some or all users can’t ftp to an HP-UX system.
NOTE If no users can ftp to a given system, check first of all that inetd is
running on that system:
ps -ef | grep inetd