<?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 security in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902819#M839619</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;consider ftpaccess:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90685/ch02s07.html?btnPrev=%AB%A0prev" target="_blank"&gt;http://docs.hp.com/en/B2355-90685/ch02s07.html?btnPrev=%AB%A0prev&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90685/ch02s08.html?btnNext=next%A0%BB" target="_blank"&gt;http://docs.hp.com/en/B2355-90685/ch02s08.html?btnNext=next%A0%BB&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and to restrict user to their home directory:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062903488" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062903488&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;u may also refer to these steps:&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;&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;3. Make inetd re-read its configuration:&lt;BR /&gt;&lt;BR /&gt;    inetd -c&lt;BR /&gt;&lt;BR /&gt;4. 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;5. 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;&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;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/ftpshell.&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;    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;&lt;BR /&gt;&lt;BR /&gt;if the user runs the ftp from only a particular host, u may restrict using /var/adm/inetd.sec.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
    <pubDate>Thu, 19 May 2005 02:34:58 GMT</pubDate>
    <dc:creator>Joseph Loo</dc:creator>
    <dc:date>2005-05-19T02:34:58Z</dc:date>
    <item>
      <title>FTP security</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902816#M839616</link>
      <description>I only want one user to be able to use ftp.&lt;BR /&gt;&lt;BR /&gt;How can I limit the use of ftp on a particular server?</description>
      <pubDate>Thu, 19 May 2005 02:19:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902816#M839616</guid>
      <dc:creator>Chris C. Guevarra</dc:creator>
      <dc:date>2005-05-19T02:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTP security</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902817#M839617</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use ftpaccess.&lt;BR /&gt;&lt;BR /&gt;man 4m ftpaccess for more details.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Thu, 19 May 2005 02:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902817#M839617</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-19T02:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTP security</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902818#M839618</link>
      <description>Hi chris,&lt;BR /&gt;&lt;BR /&gt;To allow one a particular user to use ftp you do like this&lt;BR /&gt;&lt;BR /&gt;a) Create /etc/ftpusers file&lt;BR /&gt;b) Add the login id of the user you wanted to deny the ftp access.&lt;BR /&gt;&lt;BR /&gt;For Hosts you can use inetd.sec file to allow or deny the access to ftp on your machine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IA</description>
      <pubDate>Thu, 19 May 2005 02:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902818#M839618</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-19T02:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: FTP security</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902819#M839619</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;consider ftpaccess:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90685/ch02s07.html?btnPrev=%AB%A0prev" target="_blank"&gt;http://docs.hp.com/en/B2355-90685/ch02s07.html?btnPrev=%AB%A0prev&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90685/ch02s08.html?btnNext=next%A0%BB" target="_blank"&gt;http://docs.hp.com/en/B2355-90685/ch02s08.html?btnNext=next%A0%BB&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and to restrict user to their home directory:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062903488" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062903488&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;u may also refer to these steps:&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;&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;3. Make inetd re-read its configuration:&lt;BR /&gt;&lt;BR /&gt;    inetd -c&lt;BR /&gt;&lt;BR /&gt;4. 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;5. 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;&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;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/ftpshell.&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;    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;&lt;BR /&gt;&lt;BR /&gt;if the user runs the ftp from only a particular host, u may restrict using /var/adm/inetd.sec.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Thu, 19 May 2005 02:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902819#M839619</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-05-19T02:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP security</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902820#M839620</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;The most simply is setting in the inetd.sec file (under /var/adm/inetd.sec)&lt;BR /&gt;You just specific which IP address can ftp to your server by adding one line in the inetd.sec file:&lt;BR /&gt;&lt;BR /&gt;ftp allow &lt;IP_ADDRESS_THAT_ALLOW_USE_FTP&gt;&lt;BR /&gt;&lt;BR /&gt;then :&lt;BR /&gt;#inetd -c&lt;BR /&gt;While add this line, by default ONLYthe listed IP can ftp to your server!&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Regard,&lt;BR /&gt;Hoang Chi Cong&lt;/IP_ADDRESS_THAT_ALLOW_USE_FTP&gt;</description>
      <pubDate>Thu, 19 May 2005 02:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902820#M839620</guid>
      <dc:creator>Hoang Chi Cong_1</dc:creator>
      <dc:date>2005-05-19T02:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: FTP security</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902821#M839621</link>
      <description>Thanks guys</description>
      <pubDate>Thu, 19 May 2005 22:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-security/m-p/4902821#M839621</guid>
      <dc:creator>Chris C. Guevarra</dc:creator>
      <dc:date>2005-05-19T22:59:40Z</dc:date>
    </item>
  </channel>
</rss>

