<?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: ftpaccess in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771853#M74885</link>
    <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;If you are using 10.20, chroot may not work for you. If you are using 11.0 or above make sure the user home directory in /etc/passwd looks like /home/user_name/./ . In this case /home/user_name will be / for this particular user.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Jul 2002 17:38:06 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2002-07-24T17:38:06Z</dc:date>
    <item>
      <title>ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771848#M74880</link>
      <description>I have configured a guest ftp user. I have followed the various documents I found on the&lt;BR /&gt;itrc site and even the wu-ftp site. I can log&lt;BR /&gt;in using this guest user, but the chroot spec&lt;BR /&gt;in the passwd file isn't changing the effective&lt;BR /&gt;root. I can still cd to any where on the system.</description>
      <pubDate>Wed, 24 Jul 2002 16:38:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771848#M74880</guid>
      <dc:creator>John Carver</dc:creator>
      <dc:date>2002-07-24T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771849#M74881</link>
      <description>Hi john,&lt;BR /&gt;Here is a doc telling you how to fix and what to check to make sure you cant cd anywhere on the system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##############&lt;BR /&gt;&lt;BR /&gt;Problem Description&lt;BR /&gt;&lt;BR /&gt;How do I configure the new ftpd at HP-UX 11.0 to chroot on&lt;BR /&gt;certain users?&lt;BR /&gt;&lt;BR /&gt;Configuration Info&lt;BR /&gt;&lt;BR /&gt;Operating System - HP-UX&lt;BR /&gt;Version - 64-bit 11.0&lt;BR /&gt;Hardware System - HP9000&lt;BR /&gt;Series - V2250&lt;BR /&gt;&lt;BR /&gt;Solution&lt;BR /&gt;&lt;BR /&gt;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;</description>
      <pubDate>Wed, 24 Jul 2002 16:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771849#M74881</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-07-24T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771850#M74882</link>
      <description>Hi&lt;BR /&gt;Check for the users home directory.&lt;BR /&gt;It should end with /./ for chroot to be effective.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Wed, 24 Jul 2002 16:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771850#M74882</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2002-07-24T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771851#M74883</link>
      <description>I still have a document out there which explains the chroot and how to configure ftpd.&lt;BR /&gt;&lt;A href="http://www.invenioeng.com/systems/ftpd_faq.html" target="_blank"&gt;http://www.invenioeng.com/systems/ftpd_faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Wed, 24 Jul 2002 17:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771851#M74883</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-07-24T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771852#M74884</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Follow the mates recomendations, just pls remember that you are running on HP-UX 10.20 you need download wu-ftp software depot from &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/FTP/wu_ftpd-2.6.1/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/FTP/wu_ftpd-2.6.1/&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;wu-ftp is not built-in from factory in HP-UX 10.20&lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Wed, 24 Jul 2002 17:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771852#M74884</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2002-07-24T17:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771853#M74885</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;If you are using 10.20, chroot may not work for you. If you are using 11.0 or above make sure the user home directory in /etc/passwd looks like /home/user_name/./ . In this case /home/user_name will be / for this particular user.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jul 2002 17:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771853#M74885</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-07-24T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771854#M74886</link>
      <description>chroot works just fine in 10.20, and actually even in 9.05 and 9.07  though unsupported.  I have been running wu_ftpd since the 9.07 days.....</description>
      <pubDate>Wed, 24 Jul 2002 17:55:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771854#M74886</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-07-24T17:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: ftpaccess</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771855#M74887</link>
      <description>So is your problem fixed?&lt;BR /&gt;If now what did we miss in our answers?&lt;BR /&gt;If so why not return the courtesy to the people who took time out of their day, free of charge, and assign them points accordingly.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 25 Jul 2002 14:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftpaccess/m-p/2771855#M74887</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-07-25T14:04:53Z</dc:date>
    </item>
  </channel>
</rss>

