<?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: wu-ftpd not setting home directory correctly in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173455#M32115</link>
    <description>In the ftpaccess file, you should have "guestuser/guestgroup" configured, or the ftpd daemon was set to start with the -a option.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 03 Apr 2008 19:09:14 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2008-04-03T19:09:14Z</dc:date>
    <item>
      <title>wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173450#M32110</link>
      <description>The wu-ftpd service has been up and running for years, no updates to the deamon itself.  Its on v 2.6.1-24.&lt;BR /&gt;We have the following ftp account setup:&lt;BR /&gt;hhc:x:732:100:VMMS Scanner:/database/vmms/db/hhdown:/bin/sh&lt;BR /&gt;When the hhc account logged into the ftp server a month ago (via a script), it showed the user logging in OK, the home directory set right and a file transfer that traversed up one level worked fine:&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: command: PASS password^M&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 230 User hhc logged in.&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: FTP LOGIN FROM 10.3.1.18 [10.3.1.18], hhc&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: command: PWD^M&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 257 "/database/vmms/db/hhup" is current directory.&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: command: TYPE I^M&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 200 Type set to I.&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: command: PORT 10,3,1,18,19,48^M&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 200 PORT command successful.&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: command: STOR /database/vmms/db/hhup/202010/&lt;BR /&gt;CHECK.ME^M&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 150 Opening BINARY mode data connection&lt;BR /&gt; for /database/vmms/db/hhup/202010/CHECK.ME.&lt;BR /&gt;Mar  3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 226 Transfer complete&lt;BR /&gt;-----&lt;BR /&gt;Now, whenever the hhc accout logs into the ftp server, it doesn't show the right home directory, and cannot traverse up one level to send a file and gets this error:&lt;BR /&gt;Apr  2 09:35:59 vgandj ftpd[6458]: &amp;lt;--- 230 User hhc logged in.  Access restrictions apply.&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: FTP LOGIN FROM 10.3.1.18 [10.3.1.18], hhc&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: command: PWD^M&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: &amp;lt;--- 257 "/" is current directory.&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: command: TYPE I^M&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: &amp;lt;--- 200 Type set to I.&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: command: PORT 10,3,1,18,4,168^M&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: &amp;lt;--- 200 PORT command successful.&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: command: STOR /database/vmms/db/hhup/202010/CHECK.ME^M&lt;BR /&gt;Apr  2 09:54:03 vgandj ftpd[7294]: &amp;lt;--- 553 Could not determine cwdir: No such file or directory.&lt;BR /&gt;&lt;BR /&gt;So, it used to be able to chroot up a level to /database/vmms/db/hhup from its home directory of /database/vmms/db/hhdown -- but now when it logs in, it doesn't show the right home directory, and attempts to send a file to another directory errors.&lt;BR /&gt;&lt;BR /&gt;All file permissions are OK to have the hhc send files to the directory in question.&lt;BR /&gt;drwxrwxrwx    7 gbg      users        4096 Apr  3 09:24 hhdown&lt;BR /&gt;drwxrwxrwx    7 gbg      users        4096 Apr  2 09:52 hhup&lt;BR /&gt;&lt;BR /&gt;The wu-ftpd configuration has not changed. What coud the problem be?&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2008 14:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173450#M32110</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2008-04-03T14:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173451#M32111</link>
      <description>That is perfectly normal, as the home directory is:&lt;BR /&gt;&lt;BR /&gt;/database/vmms/db/hhdown&lt;BR /&gt;&lt;BR /&gt;And you chroot to that directory, that becomes "/", so you can't go up.&lt;BR /&gt;&lt;BR /&gt;You must modify your home directory to be:&lt;BR /&gt;&lt;BR /&gt;/database/vmms/db/./&lt;BR /&gt;&lt;BR /&gt;And your scripts to do:&lt;BR /&gt;&lt;BR /&gt;cd /hhup&lt;BR /&gt;cd /hhdown&lt;BR /&gt;&lt;BR /&gt;When required.</description>
      <pubDate>Thu, 03 Apr 2008 15:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173451#M32111</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-04-03T15:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173452#M32112</link>
      <description>These scripts have been in place for 4 years and they are embedded in scanner software which is not easily changable.  Something must have changed that now doesn't allow the script to deposit files where it used to, but wu-ftpd did not change.  Any other ideas?</description>
      <pubDate>Thu, 03 Apr 2008 17:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173452#M32112</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2008-04-03T17:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173453#M32113</link>
      <description>&amp;gt;&amp;gt;&amp;gt; So, it used to be able to chroot up a level to /database/vmms/db/hhup from its home directory of /database/vmms/db/hhdown &lt;BR /&gt;&lt;BR /&gt;That is not possible. Chroot was not working before.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Mar 3 11:21:35 vgandj ftpd[11160]: &amp;lt;--- 257 "/database/vmms/db/hhup" is current directory.&lt;BR /&gt;&lt;BR /&gt;This message means that the user was not chrooted.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Apr 2 09:54:03 vgandj ftpd[7294]: &amp;lt;--- 257 "/" is current directory.&lt;BR /&gt;&lt;BR /&gt;This message means that the user is now chrooted.&lt;BR /&gt;&lt;BR /&gt;You won't be able to go up. What you have to do is to change the home directory to one level up. You can then create symbolik links to avoid changing your scripts.</description>
      <pubDate>Thu, 03 Apr 2008 18:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173453#M32113</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-04-03T18:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173454#M32114</link>
      <description>Ok -- so the problem is the server is now change rooting correctly and it didnt before, instead of the other way around. But can anyone tell me what file or files or rpm's would change this feature?   I need to know what changed.</description>
      <pubDate>Thu, 03 Apr 2008 18:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173454#M32114</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2008-04-03T18:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173455#M32115</link>
      <description>In the ftpaccess file, you should have "guestuser/guestgroup" configured, or the ftpd daemon was set to start with the -a option.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Apr 2008 19:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173455#M32115</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-04-03T19:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173456#M32116</link>
      <description>The /etc/ftpaccess file and /etc/xinetd.d/wu-ftpd has not changed since 2003.    Would some other security update, bug fix to some other package could have made the chroot to work now?</description>
      <pubDate>Thu, 03 Apr 2008 19:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173456#M32116</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2008-04-03T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: wu-ftpd not setting home directory correctly</title>
      <link>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173457#M32117</link>
      <description>Have you only one ftp server installed?&lt;BR /&gt;&lt;BR /&gt;rpm -qa | grep -i ftp&lt;BR /&gt;chkconfig --list | grep -i ftp&lt;BR /&gt;&lt;BR /&gt;Do you have the user listed in ftpaccess?</description>
      <pubDate>Thu, 03 Apr 2008 19:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/wu-ftpd-not-setting-home-directory-correctly/m-p/4173457#M32117</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2008-04-03T19:41:41Z</dc:date>
    </item>
  </channel>
</rss>

