<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FTP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427762#M759461</link>
    <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;I find the next information for you, maybe it helps.&lt;BR /&gt;&lt;BR /&gt;Configuring Anonymous ftp  &lt;BR /&gt;&lt;BR /&gt;Anonymous ftp allows users who do not have an account on a given system to send files to, and retrieve them from, that system.&lt;BR /&gt;&lt;BR /&gt;Step 1.  Add user ftp to /etc/passwd, for example:&lt;BR /&gt;ftp:*:500:1:anonymous ftp:/home/ftp:/usr/bin/false&lt;BR /&gt;&lt;BR /&gt;The password field should be *, the group membership should be guest, or, as in this example, other, and the login shell should be /usr/bin/false.&lt;BR /&gt;&lt;BR /&gt;In this example, user ftp's user ID is 500, and the anonymous ftp directory is /home/ftp.&lt;BR /&gt; &lt;BR /&gt;Step 2.  Create the anonymous ftp directory:&lt;BR /&gt;&lt;BR /&gt;Create the ftp home directory that you referred to in the /etc/passwd file, for example:&lt;BR /&gt;&lt;BR /&gt;mkdir /home/ftp&lt;BR /&gt;&lt;BR /&gt;Create the subdirectory /usr/bin under the ftp home directory, for example:&lt;BR /&gt;&lt;BR /&gt;cd /home/ftp&lt;BR /&gt;&lt;BR /&gt;mkdir usr&lt;BR /&gt;&lt;BR /&gt;cd usr&lt;BR /&gt;&lt;BR /&gt;mkdir bin&lt;BR /&gt; &lt;BR /&gt;Step 3.  Copy the ls and pwd commands from /sbin and /usr/bin (respectively) to ~ftp/usr/bin, and set the permissions on the commands to executable only (mode 0111): &lt;BR /&gt;cp /sbin/ls /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;cp /usr/bin/pwd /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;chmod u=x,g=x,o=x /home/ftp/usr/bin/ls&lt;BR /&gt;&lt;BR /&gt;chmod u=x,g=x,o=x /home/ftp/usr/bin/pwd&lt;BR /&gt; &lt;BR /&gt;Step 4.  Set the owner of the ~ftp/usr/bin and ~ftp/usr directories to root, and set the permissions to not writable (mode 0555): &lt;BR /&gt;chown root /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;chmod u=rx,g=rx,o=rx /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;chown root /home/ftp/usr&lt;BR /&gt;&lt;BR /&gt;chmod u=rx,g=rx,o=rx /home/ftp/usr&lt;BR /&gt; &lt;BR /&gt;Step 5.  Create the subdirectory etc under the ftp directory, for example: &lt;BR /&gt;cd /home/ftp&lt;BR /&gt;&lt;BR /&gt;mkdir etc&lt;BR /&gt; &lt;BR /&gt;Step 6.  Copy /etc/passwd and /etc/group to ~ftp/etc.&lt;BR /&gt;These files are required by the ls command, to display the owners of files and directories under ~ftp.&lt;BR /&gt;&lt;BR /&gt;cp /etc/passwd /home/ftp/etc&lt;BR /&gt;&lt;BR /&gt;cp /etc/group /home/ftp/etc&lt;BR /&gt; &lt;BR /&gt;Step 7.  In all entries in /home/ftp/etc/passwd, replace the password field with an asterisk (*), and delete the shell field, for example: &lt;BR /&gt;ftp:*:500:1:anonymous ftp:/home/ftp: tom:*:8996:20::/home/tom:&lt;BR /&gt; &lt;BR /&gt;Step 8.  In all entries in /home/ftp/etc/group, replace the password field with an asterisk (*): &lt;BR /&gt;users:*:20:acb guest:*:21:ftp&lt;BR /&gt; &lt;BR /&gt;Step 9.  Change the owner of the files in ~ftp/etc to root, and set the permissions to read only (mode 0444): &lt;BR /&gt;chown root /home/ftp/etc&lt;BR /&gt;&lt;BR /&gt;chmod u=r,g=r,o=r /home/ftp/etc&lt;BR /&gt; &lt;BR /&gt;Step 10.  Create a directory pub under ~ftp, and change its owner to user ftp and its permissions to writable by all (mode 0777). &lt;BR /&gt;Anonymous ftp users can put files in this directory to make them available to other anonymous ftp users. &lt;BR /&gt;&lt;BR /&gt;mkdir /home/ftp/pub&lt;BR /&gt;&lt;BR /&gt;chown ftp /home/ftp/pub&lt;BR /&gt;&lt;BR /&gt;chmod u=rwx,g=rwx,o=rwx /home/ftp/pub&lt;BR /&gt; &lt;BR /&gt;Step 11.  Create a directory dist under ~ftp. Change its owner to root and its permissions to writable only by root (mode 0755).&lt;BR /&gt;mkdir /home/ftp/dist&lt;BR /&gt;&lt;BR /&gt;chown root /home/ftp/dist&lt;BR /&gt;&lt;BR /&gt;chmod u=rwx,g=rx,o=rx /home/ftp/dist&lt;BR /&gt; &lt;BR /&gt;Step 12.  Change the owner of user ftp's home directory to root and the permissions to not writable (mode 0555): &lt;BR /&gt;chown root /home/ftp&lt;BR /&gt;&lt;BR /&gt;chmod u=rx,g=rx,o=rx /home/ftp&lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Tue, 27 Jun 2000 08:55:25 GMT</pubDate>
    <dc:creator>Marcel Boon</dc:creator>
    <dc:date>2000-06-27T08:55:25Z</dc:date>
    <item>
      <title>FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427761#M759460</link>
      <description>Please help.What is the best way to setup a secure ftp user under 10.20 so that they can only access/see the desired area? Please note this isnt a trusted system</description>
      <pubDate>Tue, 27 Jun 2000 08:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427761#M759460</guid>
      <dc:creator>Neale Machin</dc:creator>
      <dc:date>2000-06-27T08:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427762#M759461</link>
      <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;I find the next information for you, maybe it helps.&lt;BR /&gt;&lt;BR /&gt;Configuring Anonymous ftp  &lt;BR /&gt;&lt;BR /&gt;Anonymous ftp allows users who do not have an account on a given system to send files to, and retrieve them from, that system.&lt;BR /&gt;&lt;BR /&gt;Step 1.  Add user ftp to /etc/passwd, for example:&lt;BR /&gt;ftp:*:500:1:anonymous ftp:/home/ftp:/usr/bin/false&lt;BR /&gt;&lt;BR /&gt;The password field should be *, the group membership should be guest, or, as in this example, other, and the login shell should be /usr/bin/false.&lt;BR /&gt;&lt;BR /&gt;In this example, user ftp's user ID is 500, and the anonymous ftp directory is /home/ftp.&lt;BR /&gt; &lt;BR /&gt;Step 2.  Create the anonymous ftp directory:&lt;BR /&gt;&lt;BR /&gt;Create the ftp home directory that you referred to in the /etc/passwd file, for example:&lt;BR /&gt;&lt;BR /&gt;mkdir /home/ftp&lt;BR /&gt;&lt;BR /&gt;Create the subdirectory /usr/bin under the ftp home directory, for example:&lt;BR /&gt;&lt;BR /&gt;cd /home/ftp&lt;BR /&gt;&lt;BR /&gt;mkdir usr&lt;BR /&gt;&lt;BR /&gt;cd usr&lt;BR /&gt;&lt;BR /&gt;mkdir bin&lt;BR /&gt; &lt;BR /&gt;Step 3.  Copy the ls and pwd commands from /sbin and /usr/bin (respectively) to ~ftp/usr/bin, and set the permissions on the commands to executable only (mode 0111): &lt;BR /&gt;cp /sbin/ls /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;cp /usr/bin/pwd /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;chmod u=x,g=x,o=x /home/ftp/usr/bin/ls&lt;BR /&gt;&lt;BR /&gt;chmod u=x,g=x,o=x /home/ftp/usr/bin/pwd&lt;BR /&gt; &lt;BR /&gt;Step 4.  Set the owner of the ~ftp/usr/bin and ~ftp/usr directories to root, and set the permissions to not writable (mode 0555): &lt;BR /&gt;chown root /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;chmod u=rx,g=rx,o=rx /home/ftp/usr/bin&lt;BR /&gt;&lt;BR /&gt;chown root /home/ftp/usr&lt;BR /&gt;&lt;BR /&gt;chmod u=rx,g=rx,o=rx /home/ftp/usr&lt;BR /&gt; &lt;BR /&gt;Step 5.  Create the subdirectory etc under the ftp directory, for example: &lt;BR /&gt;cd /home/ftp&lt;BR /&gt;&lt;BR /&gt;mkdir etc&lt;BR /&gt; &lt;BR /&gt;Step 6.  Copy /etc/passwd and /etc/group to ~ftp/etc.&lt;BR /&gt;These files are required by the ls command, to display the owners of files and directories under ~ftp.&lt;BR /&gt;&lt;BR /&gt;cp /etc/passwd /home/ftp/etc&lt;BR /&gt;&lt;BR /&gt;cp /etc/group /home/ftp/etc&lt;BR /&gt; &lt;BR /&gt;Step 7.  In all entries in /home/ftp/etc/passwd, replace the password field with an asterisk (*), and delete the shell field, for example: &lt;BR /&gt;ftp:*:500:1:anonymous ftp:/home/ftp: tom:*:8996:20::/home/tom:&lt;BR /&gt; &lt;BR /&gt;Step 8.  In all entries in /home/ftp/etc/group, replace the password field with an asterisk (*): &lt;BR /&gt;users:*:20:acb guest:*:21:ftp&lt;BR /&gt; &lt;BR /&gt;Step 9.  Change the owner of the files in ~ftp/etc to root, and set the permissions to read only (mode 0444): &lt;BR /&gt;chown root /home/ftp/etc&lt;BR /&gt;&lt;BR /&gt;chmod u=r,g=r,o=r /home/ftp/etc&lt;BR /&gt; &lt;BR /&gt;Step 10.  Create a directory pub under ~ftp, and change its owner to user ftp and its permissions to writable by all (mode 0777). &lt;BR /&gt;Anonymous ftp users can put files in this directory to make them available to other anonymous ftp users. &lt;BR /&gt;&lt;BR /&gt;mkdir /home/ftp/pub&lt;BR /&gt;&lt;BR /&gt;chown ftp /home/ftp/pub&lt;BR /&gt;&lt;BR /&gt;chmod u=rwx,g=rwx,o=rwx /home/ftp/pub&lt;BR /&gt; &lt;BR /&gt;Step 11.  Create a directory dist under ~ftp. Change its owner to root and its permissions to writable only by root (mode 0755).&lt;BR /&gt;mkdir /home/ftp/dist&lt;BR /&gt;&lt;BR /&gt;chown root /home/ftp/dist&lt;BR /&gt;&lt;BR /&gt;chmod u=rwx,g=rx,o=rx /home/ftp/dist&lt;BR /&gt; &lt;BR /&gt;Step 12.  Change the owner of user ftp's home directory to root and the permissions to not writable (mode 0555): &lt;BR /&gt;chown root /home/ftp&lt;BR /&gt;&lt;BR /&gt;chmod u=rx,g=rx,o=rx /home/ftp&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2000 08:55:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427762#M759461</guid>
      <dc:creator>Marcel Boon</dc:creator>
      <dc:date>2000-06-27T08:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427763#M759462</link>
      <description>wu-ftpd is the software you want to restrict ftp access. It is NOT HP supported on 10.20, but the FAQ site has instructions on how to port it. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.wu-ftpd.org/wu-ftpd-faq.html" target="_blank"&gt;http://www.wu-ftpd.org/wu-ftpd-faq.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Berlene &lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2000 14:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/2427763#M759462</guid>
      <dc:creator>Berlene Herren</dc:creator>
      <dc:date>2000-06-27T14:18:35Z</dc:date>
    </item>
  </channel>
</rss>

