<?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 Services &amp;amp; Restriction in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360115#M193907</link>
    <description>Do you have the following line in /etc/ftpd/ftpaccess?&lt;BR /&gt;&lt;BR /&gt;class remote real,guest,anonymous *&lt;BR /&gt;&lt;BR /&gt;Without a valid class all access to ftp server will be denied.&lt;BR /&gt;&lt;BR /&gt;real -&amp;gt; for users having real accounts&lt;BR /&gt;guest -&amp;gt; for guest users defined with guestgroup&lt;BR /&gt;anonymous -&amp;gt; for anonymous access</description>
    <pubDate>Thu, 19 Aug 2004 02:10:32 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2004-08-19T02:10:32Z</dc:date>
    <item>
      <title>FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360107#M193899</link>
      <description>Hi,&lt;BR /&gt; I have configured a user account on my server &lt;BR /&gt; running HP-UX 11.23&lt;BR /&gt;&lt;BR /&gt; I want to use this account as ftp account&lt;BR /&gt; and the users who login to this account&lt;BR /&gt; cannot telnet and if they login through ftp&lt;BR /&gt; cannot change directory.&lt;BR /&gt;&lt;BR /&gt; Thanks,&lt;BR /&gt; Amit</description>
      <pubDate>Wed, 18 Aug 2004 11:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360107#M193899</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-08-18T11:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360108#M193900</link>
      <description>Sounds like you want something that functions as "chroot" Using this utility you can setup a "jail" so the ftp user cannot go directories above - in fact, to the ftp user this would look like the / directory, so there is no where to go but down. (The ftp user can descend into directories that have been created.)&lt;BR /&gt;&lt;BR /&gt;To prevent the telnet, change the shell type in the passwd file.&lt;BR /&gt;&lt;BR /&gt;Look up chroot. Sounds like what you want.</description>
      <pubDate>Wed, 18 Aug 2004 11:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360108#M193900</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-08-18T11:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360109#M193901</link>
      <description>1) vi /etc/inetd.conf&lt;BR /&gt;ftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l -a&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;add -a option to the ftpd&lt;BR /&gt;&lt;BR /&gt;# inetd -c&lt;BR /&gt;&lt;BR /&gt;Force inetd to reread the configuration&lt;BR /&gt;&lt;BR /&gt;2) groupadd -g ftpgroup &lt;BR /&gt;&lt;BR /&gt; Add a group called ftpgroup&lt;BR /&gt;&lt;BR /&gt;3) useradd -g ftpgroup -m -s /usr/bin/false ftpuser&lt;BR /&gt;&lt;BR /&gt;Create a user called ftpuser with /usr/bin/false as the shell&lt;BR /&gt;&lt;BR /&gt;  # passwd ftpuser&lt;BR /&gt;&lt;BR /&gt;4) vi /etc/shells&lt;BR /&gt;/usr/bin/false&lt;BR /&gt;&lt;BR /&gt;  add the shell to /etc/shells&lt;BR /&gt;&lt;BR /&gt;5) # vi /etc/ftpd/ftpaccess&lt;BR /&gt;   guestgroup ftpgroup&lt;BR /&gt;   #&lt;BR /&gt;&lt;BR /&gt; Edit ftpaccess and define the guestgroup as ftp&lt;BR /&gt;&lt;BR /&gt;6) # cd ~ftpuser&lt;BR /&gt;   # mkdir -p etc usr/bin &lt;BR /&gt;   # cp -p /etc/group etc/&lt;BR /&gt;   # cp -p /etc/passwd etc/&lt;BR /&gt;   # cp /sbin/ls usr/bin&lt;BR /&gt;&lt;BR /&gt;Try telnet and ftp now as ftpuser.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Aug 2004 11:21:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360109#M193901</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-08-18T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360110#M193902</link>
      <description>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;   b. cp -p /usr/newconfig/etc/ftpd/ftpaccess .&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;       i. Either change that group designation to one you already&lt;BR /&gt;          have or keep that designation.&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;   b. Add the -a flag to the ftp daemon.&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;   b. exit 0&lt;BR /&gt;   c. chmod 555 /usr/bin/ftpshell&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;   b. Include these lines in the file:&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;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;   /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;   b. mkdir usr&lt;BR /&gt;   c. mkdir usr/bin&lt;BR /&gt;   d. cp -p /sbin/ls usr/bin&lt;BR /&gt;   e. chown -R bin:bin usr&lt;BR /&gt;   f. chmod -R 555 usr&lt;BR /&gt;&lt;BR /&gt;ref: Document id# BC0814KBRC00007719&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 18 Aug 2004 11:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360110#M193902</guid>
      <dc:creator>Rgomes</dc:creator>
      <dc:date>2004-08-18T11:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360111#M193903</link>
      <description>Once you create the directories etc usr/bin under the user's home directory, you also need to change the permissions such that the user is able to navigate/have read-only access to passwd,group and ls files.</description>
      <pubDate>Wed, 18 Aug 2004 11:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360111#M193903</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-08-18T11:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360112#M193904</link>
      <description>From your description of having multiple users login to a single ftp-only account, it actually sounds like the built-in anonymous ftp facility in ftpd would suffice. Make the user account name ftp... if they should be able to write files to the server set the write bit on the home directory defined (not generally a good idea, but kept to a non-critical file system can work... only serious problem then is users potentially overwriting/deleting each other's files). You can keep the account disabled/locked to disallow telnet access. Users login the ftp session as user ftp or anonymous and they are unable to cd anywhere else on the system. Check out the ftpd man page for setting it up.</description>
      <pubDate>Wed, 18 Aug 2004 11:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360112#M193904</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-08-18T11:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360113#M193905</link>
      <description>And I should mention... the anonymous ftp route doesn't provide an audit trail of who was connecting to the system... of course, if you have one accoutn with all of the fancy configurations the others have mentioned that multiple people share, you're not getting any useful authentication information anyway. Just something to consider in your implementation whichever way you go.</description>
      <pubDate>Wed, 18 Aug 2004 11:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360113#M193905</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-08-18T11:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360114#M193906</link>
      <description>Hi Sundar,&lt;BR /&gt;  I have configured ftp using your method &lt;BR /&gt;  and now I am not able to connect &lt;BR /&gt;  to server using ftp.&lt;BR /&gt;&lt;BR /&gt;  None of the account is working ??&lt;BR /&gt;&lt;BR /&gt;  what should I do ?&lt;BR /&gt;&lt;BR /&gt;  Thanks, &lt;BR /&gt;  Amit</description>
      <pubDate>Thu, 19 Aug 2004 00:36:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360114#M193906</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-08-19T00:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360115#M193907</link>
      <description>Do you have the following line in /etc/ftpd/ftpaccess?&lt;BR /&gt;&lt;BR /&gt;class remote real,guest,anonymous *&lt;BR /&gt;&lt;BR /&gt;Without a valid class all access to ftp server will be denied.&lt;BR /&gt;&lt;BR /&gt;real -&amp;gt; for users having real accounts&lt;BR /&gt;guest -&amp;gt; for guest users defined with guestgroup&lt;BR /&gt;anonymous -&amp;gt; for anonymous access</description>
      <pubDate>Thu, 19 Aug 2004 02:10:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360115#M193907</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-08-19T02:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Services &amp; Restriction</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360116#M193908</link>
      <description>Also check /var/adm/inetd.sec file.&lt;BR /&gt;Permit ftp by IP addresses.&lt;BR /&gt;&lt;BR /&gt;It should look like this:&lt;BR /&gt;------&lt;BR /&gt;ftp permit 192.168.3.2 192.168.3.110&lt;BR /&gt;------&lt;BR /&gt;regards,&lt;BR /&gt;Richard</description>
      <pubDate>Thu, 19 Aug 2004 04:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-services-amp-restriction/m-p/3360116#M193908</guid>
      <dc:creator>Rgomes</dc:creator>
      <dc:date>2004-08-19T04:27:44Z</dc:date>
    </item>
  </channel>
</rss>

