<?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: setting up ftp access in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930380#M111497</link>
    <description>Steve, I am confused.  If this is a stop access file why is line 1 in the access file all about the username and the guests being the ones allowed to ftp into the machine?&lt;BR /&gt;&lt;BR /&gt;I read in the man ftpaccess that if class is not defined correctly access is denied.  Should a 'class' be defined somewhere else, or is it the line in this file starting :  class all test1,guest *  ?&lt;BR /&gt;&lt;BR /&gt;Is there such a thing as ftp.allow file? where is it supposed to be ?&lt;BR /&gt;&lt;BR /&gt;Hope you can still help me here?&lt;BR /&gt;thanks so far.&lt;BR /&gt;Maria</description>
    <pubDate>Wed, 19 Mar 2003 03:29:06 GMT</pubDate>
    <dc:creator>Peter Gillis</dc:creator>
    <dc:date>2003-03-19T03:29:06Z</dc:date>
    <item>
      <title>setting up ftp access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930378#M111495</link>
      <description>Hi,&lt;BR /&gt;opsys=ux 11.00&lt;BR /&gt;&lt;BR /&gt;I need to setup our system so that there is only one user allowed to ftp to our system.  &lt;BR /&gt;&lt;BR /&gt;I have read previous forum messages and followed some of the instructions. The following is one particular:&lt;BR /&gt;&lt;BR /&gt;1)load in [PHNE_23949/PACHRDME/English] (or latest ftp/ftpd). This patch resolves a couple of issues with ftpaccess. &lt;BR /&gt;&lt;BR /&gt;2) create a user via SAM (eg. user= test1 group= none) &lt;BR /&gt;&lt;BR /&gt;3) This user has ONLY ftp access, so it would be wise to code the start-up program as /usr/bin/false &lt;BR /&gt;&lt;BR /&gt;4) For the home directory, specify /home//. eg: /home/test1/./ (explanation in man ftpaccess)/etc/passwd looks like test1:qXznDQ1RUwqZ6:115:20:,,,:/home/test1/./:/usr/bin/false **ignore the error with SAM not being able to create a /. directory. &lt;BR /&gt;&lt;BR /&gt;5) all other questions in SAM are as per normal. &lt;BR /&gt;&lt;BR /&gt;6) ensure that /usr/bin/false is also coded in a file /etc/shells &lt;BR /&gt;&lt;BR /&gt;7) then edit-create the file /etc/ftpd/ftpaccess to have these lines: class all test1,guest * &amp;lt;-- line#1 &lt;BR /&gt;guestgroup none &amp;lt;-- line#2 &lt;BR /&gt;limit all 5 Any /no-more-ftp-access &amp;lt;-- line#3 noretrieve /etc/passwd core &amp;lt;-- line#4 &lt;BR /&gt;&lt;BR /&gt;with #chmod 444 ftpaccess &lt;BR /&gt;#chown bin:bin ftpaccess &lt;BR /&gt;&lt;BR /&gt;Explanation: &lt;BR /&gt;&lt;BR /&gt;line#1 : 'class' is a verb 'all' is a class of users; you can call it anything you like. 'guest' is a verb ???test1??? is the user name '*' is the range of users allowed to ftp into the machine. You can restrict this further if you want to. Do a man ftpaccess &lt;BR /&gt;&lt;BR /&gt;line#2 : 'guestgroup' is a verb : 'none' is the group name of the users that have been coded via SAM (see /etc/group to find out what group that has) &lt;BR /&gt;&lt;BR /&gt;line#3 : 'limit' is a verb 'all' as per line#1,the class of users. '5' is the number of ftp sessions; in this case its five. You can change it to any number of your choice. 'Any' , do a man ftpaccess for explanation '/no-more-ftp-access' is a filename that contains a message to be displayed when the limit is reached. &lt;BR /&gt;&lt;BR /&gt;line#4 : types of files to restrict &lt;BR /&gt;&lt;BR /&gt;8) then edit /etc/inetd.conf to add in '-a' argument for ftpd; thus: ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a &lt;BR /&gt;&lt;BR /&gt;9) inetd -c (to re-read the configuration file) &lt;BR /&gt;&lt;BR /&gt;10) Create the following subdirecties and files: a. ~test1/usr #chown ???R bin:bin usr #chmod 555 usr b. ~test1/usr/bin #chown root bin #chmod 555 bin #cp -p /sbin/ls ~test1/usr/bin/ls &lt;BR /&gt;&lt;BR /&gt;11) The ~test1/usr/bin/ls allows the use of the 'ls' command in ftp to find out the files that are present in their directory. &lt;BR /&gt;&lt;BR /&gt;12) test to verify &lt;BR /&gt;&lt;BR /&gt;Now no one can ftp to this machine.&lt;BR /&gt;CAn some one tell me what it is I missed?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Maria.</description>
      <pubDate>Wed, 19 Mar 2003 02:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930378#M111495</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2003-03-19T02:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ftp access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930379#M111496</link>
      <description>The ftpaccess file is a stop access file.  Make sure your one intended user who is supposed to have access is not in that file.&lt;BR /&gt;&lt;BR /&gt;If I understand your information correctly your ftp user is listed which would deny access.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 19 Mar 2003 02:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930379#M111496</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-19T02:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ftp access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930380#M111497</link>
      <description>Steve, I am confused.  If this is a stop access file why is line 1 in the access file all about the username and the guests being the ones allowed to ftp into the machine?&lt;BR /&gt;&lt;BR /&gt;I read in the man ftpaccess that if class is not defined correctly access is denied.  Should a 'class' be defined somewhere else, or is it the line in this file starting :  class all test1,guest *  ?&lt;BR /&gt;&lt;BR /&gt;Is there such a thing as ftp.allow file? where is it supposed to be ?&lt;BR /&gt;&lt;BR /&gt;Hope you can still help me here?&lt;BR /&gt;thanks so far.&lt;BR /&gt;Maria</description>
      <pubDate>Wed, 19 Mar 2003 03:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930380#M111497</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2003-03-19T03:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ftp access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930381#M111498</link>
      <description>Take the example from this thread instead.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdacea1abbac8d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdacea1abbac8d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;Hope this helps ..</description>
      <pubDate>Wed, 19 Mar 2003 03:45:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930381#M111498</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-03-19T03:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: setting up ftp access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930382#M111499</link>
      <description>Hi Maria,&lt;BR /&gt;point no. 7 of your configuration may not be  straight by the book; the man page for ftpaccess prescribes the following syntax for a "class" line: &lt;BR /&gt;class class typelist addrglob [ addrglob ... ]&lt;BR /&gt;qoute from the manpage:&lt;BR /&gt;typelist is a comma-separated list of any of the &lt;BR /&gt;keywords anonymous, guest and real.&lt;BR /&gt;unqoute&lt;BR /&gt;Therefore using test1 there may cause problems. &lt;BR /&gt;&lt;BR /&gt;In order to obtain your obejctive I suggest that you  include test1 in a group, in which he is the only member, and then - by ftpaccess - configure that only this group can ftp to the system.&lt;BR /&gt;This can be achieved by first including test1 in a new group, e.g. "ftponly"&lt;BR /&gt;Then replace the actions under point no. 7 by first    copying /usr/newconfig/etc/ftpd/ftpaccess to /etc/ftpd/ftpaccess. Then modify   in  /etc/ftpd/ftpaccess the existing line:&lt;BR /&gt;class   remote  real,guest,anonymous *&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;class   remote  guest *&lt;BR /&gt;&lt;BR /&gt;Near the bottom of /etc/ftpd/ftpaccess there should be a the line starting with guestgroup:&lt;BR /&gt;&lt;BR /&gt;guestgroup ftponly&lt;BR /&gt;&lt;BR /&gt;If not as above, change it into that.&lt;BR /&gt;The first change should allow only what is considered a "guest" to ftp to your system. The guestgroup line  should enable that a member of ftponly is considered as a "guest".&lt;BR /&gt;Then execute inetd -c to re-read the configuration.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Wed, 19 Mar 2003 10:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-up-ftp-access/m-p/2930382#M111499</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-03-19T10:35:28Z</dc:date>
    </item>
  </channel>
</rss>

