HP-UX System Administrator's Guide: Configuration Management
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.
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 Communications→Network
Services Configuration→Network Services.
• On web-based HP SMH, navigate to
Tools→NetworkServices→ConfigurationNetwork 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:
1. If necessary, update all the old-style shell entries in /etc/passwd.
Convert all /bin/shellname to /usr/bin/shellname.
2. Create /etc/shells and list all the shells that appear in /etc/passwd.
For more information, see getusershell(3C) and shells(4).
90 Configuring Networking