<?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: help with ftp server. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310054#M567976</link>
    <description>Solution:&lt;BR /&gt;&lt;BR /&gt;**Install latest version ftp ( wu-ftpd, software.hp.com).&lt;BR /&gt;&lt;BR /&gt;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;10. Test to verify.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Richard</description>
    <pubDate>Sun, 20 Jun 2004 23:53:31 GMT</pubDate>
    <dc:creator>Rgomes</dc:creator>
    <dc:date>2004-06-20T23:53:31Z</dc:date>
    <item>
      <title>help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310053#M567975</link>
      <description>Hi, I have read the ftp server builds on this forum. However what I do need is the follow: a. have a ftp for user to log from outside.&lt;BR /&gt;b. each user would have his own dirs and can not browser anybody else.&lt;BR /&gt;c. I do not have any firewall protection. &lt;BR /&gt;d. instead of anonymous I would like each user to have their own login/passwd.&lt;BR /&gt;e. chroot is a must to the user's dirs - under ftp.&lt;BR /&gt;&lt;BR /&gt;can somebody give me some light on how to build such server with these specs.&lt;BR /&gt;&lt;BR /&gt;thank you in advance.&lt;BR /&gt;&lt;BR /&gt;./antonio/.</description>
      <pubDate>Sun, 20 Jun 2004 16:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310053#M567975</guid>
      <dc:creator>antonio elder prado</dc:creator>
      <dc:date>2004-06-20T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310054#M567976</link>
      <description>Solution:&lt;BR /&gt;&lt;BR /&gt;**Install latest version ftp ( wu-ftpd, software.hp.com).&lt;BR /&gt;&lt;BR /&gt;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;10. Test to verify.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Richard</description>
      <pubDate>Sun, 20 Jun 2004 23:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310054#M567976</guid>
      <dc:creator>Rgomes</dc:creator>
      <dc:date>2004-06-20T23:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310055#M567977</link>
      <description>1. Under WU-FTPD, you cannot login by userid 'root' by default. If you want to then you will have to remove the user name 'root' from /etc/ftpd/ftpusers file.&lt;BR /&gt;&lt;BR /&gt;2. You can increase security by adding username and corresponding IP address of that user's PC/workstation in /etc/ftpd/ftphosts.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2004 00:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310055#M567977</guid>
      <dc:creator>Rgomes</dc:creator>
      <dc:date>2004-06-21T00:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310056#M567978</link>
      <description>hi guys,&lt;BR /&gt;&lt;BR /&gt;all seems OK, except that I cannot ftp in . when I try this is the message.&lt;BR /&gt;&lt;BR /&gt;Connected to hpqa08.&lt;BR /&gt;220 hpqa08.tidalsoft.COM FTP server (Revision 1.003 Version wuftpd-2.6.1 Thu Aug  7 06:14:59 GMT 2003) ready.&lt;BR /&gt;Name (hpqa08:root): tunin&lt;BR /&gt;331 Password required for tunin.&lt;BR /&gt;Password:&lt;BR /&gt;530 Login incorrect.&lt;BR /&gt;Login failed.&lt;BR /&gt;Remote system type is UNIX.&lt;BR /&gt;Using binary mode to transfer files.&lt;BR /&gt;ftp&amp;gt; &lt;BR /&gt;&lt;BR /&gt;from the /var/adm/syslog...&amp;gt;&lt;BR /&gt;un 21 09:11:40 hpqa08 ftpd[2040]: FTP LOGIN REFUSED (shell not in /etc/shells) FROM hpqa07.tidalsoftware.com [10.10.20.52], tunin&lt;BR /&gt;Jun 21 09:12:10 hpqa08 ftpd[2040]: FTP session closed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tells me that there is no shell on /etc/shells.&lt;BR /&gt;&lt;BR /&gt;but there is...&lt;BR /&gt;# cat /etc/shells&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;/usr/bin/ftpshell&lt;BR /&gt;/bin/sh&lt;BR /&gt;/bin/ksh&lt;BR /&gt;/bin/csh&lt;BR /&gt;/bin/rsh &lt;BR /&gt;/bin/false&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and from the /etc/passwd | grep tunin&lt;BR /&gt;&lt;BR /&gt;tunin:SiPAaCcnqjhgg:104:39:tunin chrrot ssh:/new-root/home/tunin/./:/usr/bin/ftpshell &lt;BR /&gt;&lt;BR /&gt;and yes the file exists.&lt;BR /&gt;# ls -lt /usr/bin/ftpshell&lt;BR /&gt;-r-xr-xr-x   1 bin        bin             26 Jun 21 08:46 /usr/bin/ftpshell&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks once again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps. this drives me nuts. :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2004 11:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310056#M567978</guid>
      <dc:creator>antonio elder prado</dc:creator>
      <dc:date>2004-06-21T11:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310057#M567979</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Unless you are running a very old patched version of HP-UX, it's FTP comes with ftpaccess and you can applying the above chroot'ing procedure without wu-ftp. &lt;BR /&gt;&lt;BR /&gt;Try with default ftp. You will need to add "-a" flag to enable the use of ftpaccess.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 21 Jun 2004 11:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310057#M567979</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-06-21T11:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310058#M567980</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;out of desperation I did remove the ftp-user from /etc/passwd and did enter "exactly the same line" . and guess what it now works with flaw. pwck comes clean and ftp goes to where it should .&lt;BR /&gt;&lt;BR /&gt;go figure...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thank you all for the help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;./antonio/.</description>
      <pubDate>Mon, 21 Jun 2004 11:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310058#M567980</guid>
      <dc:creator>antonio elder prado</dc:creator>
      <dc:date>2004-06-21T11:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: help with ftp server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310059#M567981</link>
      <description>apart from the standard ftp, hp has additional software that would be of greate help in you senerio.&lt;BR /&gt;&lt;BR /&gt;you need to get the software apply it.&lt;BR /&gt;&lt;BR /&gt;you need to comment the standard ftp service on the /etc/inetd.conf and use the addon HP FTP server.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jul 2004 11:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-ftp-server/m-p/3310059#M567981</guid>
      <dc:creator>clement_10</dc:creator>
      <dc:date>2004-07-05T11:43:24Z</dc:date>
    </item>
  </channel>
</rss>

