<?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 restricted ftp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-ftp/m-p/3540848#M223203</link>
    <description>I am trying to setup restricted ftp on my server. I am running into the problem that the chroot isn't being done. I have the passwd file modified to have /home/wss/./ as the home directory but when I ftp in as this user and do a pwd I see the full path and I can go down a level using cd. Is there something else that needs to be setup for this to work?</description>
    <pubDate>Mon, 09 May 2005 18:25:56 GMT</pubDate>
    <dc:creator>Angela Swyers_1</dc:creator>
    <dc:date>2005-05-09T18:25:56Z</dc:date>
    <item>
      <title>restricted ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-ftp/m-p/3540848#M223203</link>
      <description>I am trying to setup restricted ftp on my server. I am running into the problem that the chroot isn't being done. I have the passwd file modified to have /home/wss/./ as the home directory but when I ftp in as this user and do a pwd I see the full path and I can go down a level using cd. Is there something else that needs to be setup for this to work?</description>
      <pubDate>Mon, 09 May 2005 18:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-ftp/m-p/3540848#M223203</guid>
      <dc:creator>Angela Swyers_1</dc:creator>
      <dc:date>2005-05-09T18:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: restricted ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-ftp/m-p/3540849#M223204</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;go through these steps to see what is missing:&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;hope it helps.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Mon, 09 May 2005 18:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-ftp/m-p/3540849#M223204</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-05-09T18:33:29Z</dc:date>
    </item>
  </channel>
</rss>

