HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 71
Restricting ftp Access with /etc/ftpusers, Creating /etc/hosts.equiv
View all HP Visualize J210XC manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 71 highlights
Configuring TCP/IP 13. Create a directory called dist under ~ftp. Set its owner to user root and its permissions to 0755 (writeable only by root). The superuser can put read-only files in this directory to make them available to anonymous ftp users. # mkdir /home/ftp/dist # chown root /home/ftp/dist # chmod 0755 /home/ftp/dist 14. Set the owner of user ftp's home directory to root and the permissions to 0555 (not writeable). # chown root /home/ftp # chmod 0555 /home/ftp Using SAM to Configure Anonymous ftp 1. Start SAM: # sam 2. Select Networking and Communications. 3. Select Network Services. 4. Select Anon FTP Deposit. 5. Choose Actions->Enable. 6. Select Anon FTP Retrieval. 7. Choose Actions->Enable. Restricting ftp Access with /etc/ftpusers When a user attempts to login to your system using ftp, the ftpd daemon checks the /etc/ftpusers file. If the file exists, and the user's login name is listed, ftpd denies access to the user. User accounts that specify a restricted login shell in /etc/passwd should be listed in /etc/ftpusers, because ftpd accesses local accounts without using their login shells. UUCP accounts should also be listed in /etc/ftpusers. You can use a text editor to edit the /etc/ftpusers file. Each line in /etc/ftpusers consists of a login name with no white space. The following is an example /etc/ftpusers file: uucp guest nobody For more information, type man 4 ftpusers at the HP-UX prompt. Creating /etc/hosts.equiv If you have already manually configured an /etc/hosts.equiv file with entries other than those of the form hostname or hostname username, do not use SAM to configure/etc/hosts.equiv. SAM does not recognize, display or add entries of other forms (such as +, -, %, or +@example_nfsnetgroup). 1. Start SAM. # sam 2. Select Networking and Communications. 66