Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a Workgroup
Sharing Files and Applications via NFS and ftp
Chapter 4412
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 SAM to check for the status of ftp and enable it if
necessary: go to Networking and Communications/Network Services.
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; see
“Fix 2” on page 412.
Fix 1 Convert all /bin/
shell
to /usr/bin/
shell
in /etc/passwd.
Fix 2 Create /etc/shells on the system that is rejecting ftp logins and list
all the shells that appear in /etc/passwd.
For more information see: getusershell (3C), shells (4).