<?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: Creating a highly restricted FTP user account in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720873#M63142</link>
    <description>Have you considered using an anonymous ftp account?&lt;BR /&gt;'man ftpd' explains how to go about setting up an anonymous ftp account.&lt;BR /&gt;</description>
    <pubDate>Fri, 10 May 2002 09:04:22 GMT</pubDate>
    <dc:creator>Deepak Extross</dc:creator>
    <dc:date>2002-05-10T09:04:22Z</dc:date>
    <item>
      <title>Creating a highly restricted FTP user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720869#M63138</link>
      <description>Please advise on the most secure method or steps in creating a user account strictly for the purpose of receiving a weekly file transfer from a remote server. The user should have the following restrictions, security is a real issue:&lt;BR /&gt;&lt;BR /&gt;-Must be password protected&lt;BR /&gt;-Must be restricted to its login directory&lt;BR /&gt;-Local login should also be highly restrictive &lt;BR /&gt;-Unable to execute any primary or privileged commands&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;</description>
      <pubDate>Thu, 09 May 2002 18:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720869#M63138</guid>
      <dc:creator>Donald Osbourne</dc:creator>
      <dc:date>2002-05-09T18:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a highly restricted FTP user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720870#M63139</link>
      <description>You need to create a group only for ftp  &lt;BR /&gt; access at /etc/group.&lt;BR /&gt; After you create the group you must add a new user to your system and after this associate this new user with the ftp group at /etc/passwd:&lt;BR /&gt;   ftpusr:fzWDa.lw6Y11w:204:105::/in/smp/charging/./:/usr/bin/ftpshell&lt;BR /&gt; &lt;BR /&gt; You must to observe that you can restrict &lt;BR /&gt; the ftp to the dir /in/smp/charging/./&lt;BR /&gt; &lt;BR /&gt; You also need to configure your ftpaccess file at the /etc path&lt;BR /&gt;  &lt;BR /&gt; This user use the shell /usr/bin/ftpshell that has no cmds. You can create a new shell just doing a vi /user/bin/ftpshell and inserting the line exit 0.&lt;BR /&gt; You need to change the owner.group to bin.bin&lt;BR /&gt; With this shell you cannot execute a login via shell only via FTP&lt;BR /&gt;&lt;BR /&gt; To restrict the user to a path you can install the wu-ftpd that you can find at&lt;BR /&gt; &lt;A href="http://www.wu-ftpd.org" target="_blank"&gt;http://www.wu-ftpd.org&lt;/A&gt;&lt;BR /&gt;  &lt;BR /&gt; Hope this help.&lt;BR /&gt;&lt;BR /&gt; Regds,&lt;BR /&gt;&lt;BR /&gt; Bassoi&lt;BR /&gt;</description>
      <pubDate>Thu, 09 May 2002 18:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720870#M63139</guid>
      <dc:creator>Ricardo Bassoi</dc:creator>
      <dc:date>2002-05-09T18:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a highly restricted FTP user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720871#M63140</link>
      <description>Hi donald,&lt;BR /&gt;use setting 'ftpaccess' config. There is a man page for this.&lt;BR /&gt;#man ftpaccess&lt;BR /&gt;&lt;BR /&gt;1. edit the /etc/passwd file by adding users: &lt;BR /&gt;&lt;BR /&gt;ftpguest:adjf+ke:505:125::/home/ftp/ftpguest/./:/usr/bin/false &lt;BR /&gt;&lt;BR /&gt;'.' is the delimiter to determine where the chroot will be performed. In &lt;BR /&gt;this example, after logging in '/' will in effect be /home/ftp/ftpguest. &lt;BR /&gt;If the delimiter was placed between ftp and ftpguest then '/' would be &lt;BR /&gt;/home/ftp. In sort he can't performe cd .. from home.&lt;BR /&gt;&lt;BR /&gt;2. &lt;BR /&gt;/usr/bin/false will have to be added to the /etc/shells file for shell restriction. &lt;BR /&gt;See man(4) shells for further details. &lt;BR /&gt;&lt;BR /&gt;Search forum for Restriction on ftp.&lt;BR /&gt;&lt;BR /&gt;Sachin&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Thu, 09 May 2002 18:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720871#M63140</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-05-09T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a highly restricted FTP user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720872#M63141</link>
      <description>This is from Technical DB. Example of creating a ftp account to only allow the user to be in his directory and restrict to only 5 ftp sessions and cannot retrieve system files (eg: /etc/passwd). As you can see you can do your own customization along the way.&lt;BR /&gt;&lt;BR /&gt;1) Make sure you have the latest ftp/ftpd patches&lt;BR /&gt;&lt;BR /&gt;2) Create 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 toc ode the start-up program as /usr/bin/false&lt;BR /&gt;&lt;BR /&gt;4) For the home directory, specify /home//.&lt;BR /&gt;   test1:qXznDQ1RUwqZ6:115:20:,, :/home/test1/./:/usr/bin/false&lt;BR /&gt;&lt;BR /&gt;**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:&lt;BR /&gt;&lt;BR /&gt;class all test1,guest *&lt;BR /&gt;guestgroup none    &lt;BR /&gt;limit all 5 Any /no-more-ftp-access&lt;BR /&gt;noretrieve /etc/passwd&lt;BR /&gt;&lt;BR /&gt;#chmod 444 ftpaccess&lt;BR /&gt;#chown bin:bin ftpaccess&lt;BR /&gt;&lt;BR /&gt;Explanation:&lt;BR /&gt;line#1 : 'class' is a verb&lt;BR /&gt;'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.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;line#3 : 'limit' is a verb&lt;BR /&gt;'all' as per line#1,the class of users.'5' is the number of ftp sessions; in this caseits 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) Edit /etc/inetd.conf to add in '-a' argument for ftpd&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;a. ~test1/usr&lt;BR /&gt;#chown -R bin:bin usr&lt;BR /&gt;#chmod 555 usr&lt;BR /&gt;b. ~test1/usr/bin&lt;BR /&gt;#chown root bin&lt;BR /&gt;#chmod 555 bin&lt;BR /&gt;#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;Do you test ..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 May 2002 18:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720872#M63141</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-09T18:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a highly restricted FTP user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720873#M63142</link>
      <description>Have you considered using an anonymous ftp account?&lt;BR /&gt;'man ftpd' explains how to go about setting up an anonymous ftp account.&lt;BR /&gt;</description>
      <pubDate>Fri, 10 May 2002 09:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720873#M63142</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-05-10T09:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a highly restricted FTP user account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720874#M63143</link>
      <description>Hi Donald,&lt;BR /&gt;&lt;BR /&gt;You can configure ftpaccess for this user id. This way you can restrict the following,&lt;BR /&gt;&lt;BR /&gt;User can only do an ftp to the system. He cannot do a telnet.&lt;BR /&gt;He will be restrted to his home directory only. &lt;BR /&gt;You can restrict the commands used by him.&lt;BR /&gt;He can upload / download to /from only alloed directories,&lt;BR /&gt;&lt;BR /&gt;Take a look at the thread below on how to setup ftpaccess,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4df5f3351cb3447b6b/screen=ckiDisplayDocument?docId=200000055935266" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4df5f3351cb3447b6b/screen=ckiDisplayDocument?docId=200000055935266&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also do a "man ftpaccess" for more details on the various options and how they can help you in configuring the ftpaccess.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Fri, 10 May 2002 13:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-highly-restricted-ftp-user-account/m-p/2720874#M63143</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-05-10T13:31:35Z</dc:date>
    </item>
  </channel>
</rss>

