HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 70
usr/bin, ftp/usr/bin, ftp/usr, etc/passwd, etc/group, ftp/etc, home/ftp/etc/passwd, home/ftp/etc/
View all HP Visualize J210XC manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
Configuring TCP/IP 4. Copy the ls and pwd commands from /usr/bin to ~ftp/usr/bin, and set the permissions on the commands to 0111 (executable only): # cp /usr/bin/ls /home/ftp/usr/bin # cp /usr/bin/pwd /home/ftp/usr/bin # chmod 0111 /home/ftp/usr/bin/ls # chmod 0111 /home/ftp/usr/bin/pwd 5. Set the owner of the ~ftp/usr/bin and ~ftp/usr directories to root, and set the permissions to 0555 (not writeable): # chown root /home/ftp/usr/bin # chmod 0555 /home/ftp/usr/bin # chown root /home/ftp/usr # chmod 0555 /home/ftp/usr 6. Create the subdirectory etc under the ftp home directory: # cd /home/ftp # mkdir etc 7. Copy /etc/passwd and /etc/group to ~ftp/etc. These files are required by the ls command, to display the owners of the files and directories under ~ftp: # cp /etc/passwd /home/ftp/etc # cp /etc/group /home/ftp/etc 8. Replace the password field in all entries in /home/ftp/etc/passwd with *, and delete the shell field from the end of each entry: ftp:*:500:guest:anonymous ftp:/home/ftp: acb:*:8996:20::/home/acb: 9. Replace the password field in all entries in /home/ftp/etc/group with *: users:*:20:acb guest:*:21:ftp 10. Set the owner of the files in ~ftp/etc to root, and set the permissions to 0444 (read only): # chown root /home/ftp/etc/passwd # chmod 0444 /home/ftp/etc/passwd # chown root /home/ftp/etc/group # chmod 0444 /home/ftp/etc/group 11. Set the owner of ~ftp/etc to root, and set the permissions to 0555 (not writeable): # chown root /home/ftp/etc # chmod 0555 /home/ftp/etc 12. Create a directory called pub under ~ftp. Set its owner to user ftp and its permissions to 0777 (writeable by all). 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 0777 /home/ftp/pub 65