HP-UX System Administrator's Guide: Configuration Management HP-UX 11i v3 (B3921-90017, September 2010)

11. Create a directory dist (for distribution) under /home/ftp. Change its owner
to root and its permissions to writable only by root (mode 0755).
Anonymous FTP users can read but not alter these directories.
# mkdir /home/ftp/dist
# chown root /home/ftp/dist
# chmod u=rwx,g=rx,o=rx /home/ftp/dist
12. Change the owner of user ftps 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.
If no users can ftp to a given system, check first of all that inetd is running on that
system:
# ps -ef | grep inetd
If inetd is not running, start it:
# /usr/sbin/inetd
It is also possible that the FTP service is disabled. Check /etc/inetd.conf for the
following line:
FTP stream tcp nowait root /usr/lbin/FTPd FTPd -l
If this line does not exist, or is commented out (preceded by a pound sign (#)) add it
(or remove the pound sign) and restart inetd:
# /usr/sbin/inetd -c
You can also use HP SMH to check for the status of FTP and enable it if necessary.
On text-based HP SMH, navigate to Networking and CommunicationsNetwork
Services ConfigurationNetwork Services.
On web-based HP SMH, navigate to
ToolsNetworkServicesConfigurationNetwork Services.
Setting Up /etc/shells
Problem: FTP calls getusershell which by default checks password information
(that is, the entry in /etc/passwd for the user who is trying to log in) against a fixed
list. If the shell isn’t on the list, FTP won’t let the user in, so if you use an unusual shell
you may not be able to ftp even to your own system.
getusershell can be made aware of other shells via /etc/shells. Perform the
following steps on the system that is rejecting FTP logins:
92 Configuring Networking