<?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: ftpd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452044#M11284</link>
    <description>Thanks very much Alex.&lt;BR /&gt;&lt;BR /&gt;Step 5. was exactly what I was missing.&lt;BR /&gt;Once I had created the shell and added it to my /etc/shells file everything was perfect.</description>
    <pubDate>Wed, 11 Oct 2000 07:52:48 GMT</pubDate>
    <dc:creator>Noel Hardy</dc:creator>
    <dc:date>2000-10-11T07:52:48Z</dc:date>
    <item>
      <title>ftpd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452042#M11282</link>
      <description>I have recently installed the patches for the wu-ftpd server on to an HP-UX 11.00 system and I am now trying to configure the system for mixed anonymous and guest login.&lt;BR /&gt;&lt;BR /&gt;I have followed the various threads on these forums and managed to achieve most of what we require, however I seems to be missing the /etc/ftponly shell.&lt;BR /&gt;&lt;BR /&gt;This appears to be stopping me from locking the users into their home directories as they can still cd out of their directories. &lt;BR /&gt;&lt;BR /&gt;Have I missed one of the configuration steps, or am I actually missing this file?&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Oct 2000 11:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452042#M11282</guid>
      <dc:creator>Noel Hardy</dc:creator>
      <dc:date>2000-10-10T11:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452043#M11283</link>
      <description>Use this procedure to configure the new ftpd:&lt;BR /&gt;&lt;BR /&gt;Note: A user will not have the ability to travel anywhere outside&lt;BR /&gt;      of his home directory on the system.  Setting up a bogus&lt;BR /&gt;      shell with exit 0 as the contents will cause the connection&lt;BR /&gt;      of a user to be immediately terminated if the user attempts&lt;BR /&gt;      to telnet into the system.&lt;BR /&gt;&lt;BR /&gt;1. Configure the ftpaccess file:&lt;BR /&gt;&lt;BR /&gt;   a. cd /etc/ftpd&lt;BR /&gt;&lt;BR /&gt;   b. cp -p /usr/newconfig/etc/ftpd/ftpaccess .&lt;BR /&gt;&lt;BR /&gt;   c. vi ftpaccess.  At the bottom of the file there is a guestgroup&lt;BR /&gt;      directive 'guestgroup ftponly'.&lt;BR /&gt;&lt;BR /&gt;       i. Either change that group designation to one you already&lt;BR /&gt;          have or keep that designation.&lt;BR /&gt;&lt;BR /&gt;      ii. If you are keeping the ftponly group, then create that&lt;BR /&gt;          group on your system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. Modify the /etc/inetd.conf file to enable the use of the ftpaccess&lt;BR /&gt;   file:&lt;BR /&gt;&lt;BR /&gt;   a. vi /etc/inetd.conf&lt;BR /&gt;&lt;BR /&gt;   b. Add the -a flag to the ftp daemon.&lt;BR /&gt;&lt;BR /&gt;   c. ftp      stream tcp nowait root /usr/lbin/ftpd      ftpd -a -l&lt;BR /&gt;&lt;BR /&gt;4. Make inetd re-read its configuration:&lt;BR /&gt;&lt;BR /&gt;   inetd -c&lt;BR /&gt;&lt;BR /&gt;5. Create a bogus shell for users that will only have FTP access to&lt;BR /&gt;   the system:&lt;BR /&gt;&lt;BR /&gt;   a. vi /usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;   b. exit 0&lt;BR /&gt;&lt;BR /&gt;   c. chmod 555 /usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;   d. chown bin:bin /usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;6. Create an /etc/shells file:&lt;BR /&gt;&lt;BR /&gt;   a. vi /etc/shells&lt;BR /&gt;&lt;BR /&gt;   b. Include these lines in the file:&lt;BR /&gt;&lt;BR /&gt;      /sbin/sh&lt;BR /&gt;      /usr/bin/ksh&lt;BR /&gt;      /usr/bin/sh&lt;BR /&gt;      /usr/bin/csh&lt;BR /&gt;      /usr/bin/rsh&lt;BR /&gt;      /usr/bin/rksh&lt;BR /&gt;      /usr/bin/keysh&lt;BR /&gt;      /bin/sh&lt;BR /&gt;      /bin/ksh&lt;BR /&gt;      /bin/csh&lt;BR /&gt;      /bin/rsh&lt;BR /&gt;      /bin/rksh&lt;BR /&gt;      /usr/bin/ftpshell&lt;BR /&gt;&lt;BR /&gt;7. Now add a user to the system.  Use a group that is 'ftponly' and&lt;BR /&gt;   make the user's shell /usr/bin/ftpshell.&lt;BR /&gt;&lt;BR /&gt;8. Use SAM to limit the user to his home directory by setting up the&lt;BR /&gt;   directory in this form:&lt;BR /&gt;&lt;BR /&gt;   /home/username/./&lt;BR /&gt;&lt;BR /&gt;   Note: The /./ is the important key here.  When the ftpd verifies a&lt;BR /&gt;         user's login, it checks and sees that the user is a member of&lt;BR /&gt;         the 'guestgroup' ftponly.  It then examines the home directory&lt;BR /&gt;         and, if it sees a /./ in the path, it will then perform a chroot&lt;BR /&gt;         to that directory.  Therefore, when that user FTPs into the&lt;BR /&gt;         system, their home directory will appear as the / directory.&lt;BR /&gt;&lt;BR /&gt;9. Provide the user with an ls command:&lt;BR /&gt;&lt;BR /&gt;   a. cd /home/username&lt;BR /&gt;&lt;BR /&gt;   b. mkdir usr&lt;BR /&gt;&lt;BR /&gt;   c. mkdir usr/bin&lt;BR /&gt;&lt;BR /&gt;   d. cp -p /sbin/ls usr/bin&lt;BR /&gt;&lt;BR /&gt;   e. chown -R bin:bin usr&lt;BR /&gt;&lt;BR /&gt;   f. chmod -R 555 usr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Oct 2000 11:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452043#M11283</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-10-10T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: ftpd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452044#M11284</link>
      <description>Thanks very much Alex.&lt;BR /&gt;&lt;BR /&gt;Step 5. was exactly what I was missing.&lt;BR /&gt;Once I had created the shell and added it to my /etc/shells file everything was perfect.</description>
      <pubDate>Wed, 11 Oct 2000 07:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpd/m-p/2452044#M11284</guid>
      <dc:creator>Noel Hardy</dc:creator>
      <dc:date>2000-10-11T07:52:48Z</dc:date>
    </item>
  </channel>
</rss>

