<?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: cd command in an ftp session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948853#M931633</link>
    <description>I used the following to set up a particular user as well as                                                                                                                                                                                              &lt;BR /&gt;DOC NR0801KBRC00007714                                                                                                                                                                                                                                   &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;&lt;A href="http://support2.itrc.hp.com/service/cki/search.do?searchString=A5651654&amp;amp;mode=id&amp;amp;submit=Search&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty" target="_blank"&gt;http://support2.itrc.hp.com/service/cki/search.do?searchString=A5651654&amp;amp;mode=id&amp;amp;submit=Search&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&lt;/A&gt; &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;I think you will find what you need here as well.                                                                                                                                                                                                        &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;Best of luck.                                                                                                                                                                                                                                            &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;dl                                                                                                                                                                                                                                                       &lt;BR /&gt;</description>
    <pubDate>Fri, 11 Apr 2003 18:06:08 GMT</pubDate>
    <dc:creator>Dave La Mar</dc:creator>
    <dc:date>2003-04-11T18:06:08Z</dc:date>
    <item>
      <title>cd command in an ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948850#M931630</link>
      <description>Hi everybody&lt;BR /&gt;How can I restrict the cd command in an ftp session?&lt;BR /&gt;&lt;BR /&gt;I want that a user can't navigate the tree in the ftp session.&lt;BR /&gt;&lt;BR /&gt;thanks in advance!</description>
      <pubDate>Fri, 11 Apr 2003 00:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948850#M931630</guid>
      <dc:creator>Lino Martinez</dc:creator>
      <dc:date>2003-04-11T00:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: cd command in an ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948851#M931631</link>
      <description>Change the user's shell to restricted.  I.e., rksh or rsh.  &lt;BR /&gt;&lt;BR /&gt;See a list of all shells in /etc/shells.</description>
      <pubDate>Fri, 11 Apr 2003 01:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948851#M931631</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-11T01:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: cd command in an ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948852#M931632</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;have a look at my post at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc736b941255cd71190080090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc736b941255cd71190080090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tons of information there!&lt;BR /&gt;&lt;BR /&gt;in summary:&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;&lt;BR /&gt;5. 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/false&lt;BR /&gt;&lt;BR /&gt;6. Now add a user to the system.  Use a group that is 'ftponly' and&lt;BR /&gt;   make the user's shell /usr/bin/false.&lt;BR /&gt;&lt;BR /&gt;7. 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;8. 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;hth&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Fri, 11 Apr 2003 02:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948852#M931632</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-04-11T02:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: cd command in an ftp session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948853#M931633</link>
      <description>I used the following to set up a particular user as well as                                                                                                                                                                                              &lt;BR /&gt;DOC NR0801KBRC00007714                                                                                                                                                                                                                                   &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;&lt;A href="http://support2.itrc.hp.com/service/cki/search.do?searchString=A5651654&amp;amp;mode=id&amp;amp;submit=Search&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty" target="_blank"&gt;http://support2.itrc.hp.com/service/cki/search.do?searchString=A5651654&amp;amp;mode=id&amp;amp;submit=Search&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&lt;/A&gt; &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;I think you will find what you need here as well.                                                                                                                                                                                                        &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;Best of luck.                                                                                                                                                                                                                                            &lt;BR /&gt;                                                                                                                                                                                                                                                         &lt;BR /&gt;dl                                                                                                                                                                                                                                                       &lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2003 18:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cd-command-in-an-ftp-session/m-p/2948853#M931633</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-04-11T18:06:08Z</dc:date>
    </item>
  </channel>
</rss>

