<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Allowing FTP access to files outside the home directory chroot</title> <atom:link href="http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Thu, 09 Feb 2012 03:50:59 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Setting up Ubuntu/WordPress on Amazon EC2 &#8211; Part 2</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193711</link> <dc:creator>Setting up Ubuntu/WordPress on Amazon EC2 &#8211; Part 2</dc:creator> <pubDate>Wed, 07 Dec 2011 21:14:01 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193711</guid> <description>[...] Finally because the main reason I wanted FTP access was to easily edit the CSS running in the WordPress themes I wanted to make /var/www/wordpress/wp-content available via the FTP connection. The hardening rules above lock FTP access to your home directory, so how do you work around this? The answer strangely enough is to mount the relevant directory in your home directory (as described at http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/): [...]</description> <content:encoded><![CDATA[<p>[...] Finally because the main reason I wanted <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> access was to easily edit the <abbr
class="uttInitialism" title="Cascading Style Sheets">CSS</abbr>(<a
class="ubernym" href="http://www.w3.org/Style/CSS/">link</a>) (Cascading Style Sheets) running in the WordPress themes I wanted to make /var/www/wordpress/wp-content available via the <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> connection. The hardening rules above lock <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> access to your home directory, so how do you work around this? The answer strangely enough is to mount the relevant directory in your home directory (as described at <a
href="http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/" rel="nofollow">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/</a>): [...]</p> ]]></content:encoded> </item> <item><title>By: Ahmadirad</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193668</link> <dc:creator>Ahmadirad</dc:creator> <pubDate>Mon, 14 Nov 2011 12:09:26 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193668</guid> <description>Dear all
when i use command &quot; mount --bind /var/www/html/files/download/ /var/www/html/images/download_dir/&quot; i receive error &quot;mount: special device /var/www/html/files/download/ does not exist&quot;.
please help me.</description> <content:encoded><![CDATA[<p>Dear all<br
/> when i use command &#8221; mount &#8211;bind /var/www/html/files/download/ /var/www/html/images/download_dir/&#8221; i receive error &#8220;mount: special device /var/www/html/files/download/ does not exist&#8221;.<br
/> please help me.</p> ]]></content:encoded> </item> <item><title>By: esm</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193648</link> <dc:creator>esm</dc:creator> <pubDate>Mon, 31 Oct 2011 21:05:31 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193648</guid> <description>Great article... Makes for an easy setup to accomplish this without complex configuration or changing FTP servers. Thanks.</description> <content:encoded><![CDATA[<p>Great article&#8230; Makes for an easy setup to accomplish this without complex configuration or changing <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> servers. Thanks.</p> ]]></content:encoded> </item> <item><title>By: This Sunday weblog: sFTP, Samba, vsftpd chroot all in Oneiric Ocelot [links] &#171; Pikir dan Rasa</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193614</link> <dc:creator>This Sunday weblog: sFTP, Samba, vsftpd chroot all in Oneiric Ocelot [links] &#171; Pikir dan Rasa</dc:creator> <pubDate>Sun, 16 Oct 2011 08:11:31 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193614</guid> <description>[...] www.ducea.com &#8230; allowing-ftp-access-to-files-outside-the-home-directory-chroot/ [...]</description> <content:encoded><![CDATA[<p>[...] <a
href="http://www.ducea.com" rel="nofollow">http://www.ducea.com</a> &#8230; allowing-ftp-access-to-files-outside-the-home-directory-chroot/ [...]</p> ]]></content:encoded> </item> <item><title>By: SELinux</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193577</link> <dc:creator>SELinux</dc:creator> <pubDate>Thu, 29 Sep 2011 16:25:06 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193577</guid> <description>I had the same issue. After mounting the remote folder in the users&#039; home directory, I was still unable to access the files.
If you use ftpd try
setsebool -P allow_ftpd_full_access 1
and if you use vsftpd
setsebool -P sftpd_full_access 1You may also have to do setsebool -P ftp_home_dir 1
to allow ftp to cd to /home/user in the fisrt place.J.D.</description> <content:encoded><![CDATA[<p>I had the same issue. After mounting the remote folder in the users&#8217; home directory, I was still unable to access the files.<br
/> If you use ftpd try<br
/> setsebool -P allow_ftpd_full_access 1<br
/> and if you use vsftpd<br
/> setsebool -P sftpd_full_access 1</p><p>You may also have to do setsebool -P ftp_home_dir 1<br
/> to allow ftp to cd to /home/user in the fisrt place.</p><p>J.D.</p> ]]></content:encoded> </item> <item><title>By: FTP upload &#38; overwrite does NOT overwite, but creates [file.ext].# instead</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193454</link> <dc:creator>FTP upload &#38; overwrite does NOT overwite, but creates [file.ext].# instead</dc:creator> <pubDate>Sat, 10 Sep 2011 13:10:30 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193454</guid> <description>[...] ftp access for everyone, and in order for FTP to access /srv/www/, I have used the instructions on this site to mount /srv/www/ inside /home/[user]/ftp/ using the bind operation. Ergo, FTP access is chrooted [...]</description> <content:encoded><![CDATA[<p>[...] ftp access for everyone, and in order for <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> to access /srv/www/, I have used the instructions on this site to mount /srv/www/ inside /home/[user]/ftp/ using the bind operation. Ergo, <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> access is chrooted [...]</p> ]]></content:encoded> </item> <item><title>By: preyo999</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193410</link> <dc:creator>preyo999</dc:creator> <pubDate>Mon, 05 Sep 2011 20:20:55 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193410</guid> <description>Thanks it saved our time :)</description> <content:encoded><![CDATA[<p>Thanks it saved our time <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: fitz</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193351</link> <dc:creator>fitz</dc:creator> <pubDate>Fri, 26 Aug 2011 15:57:15 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193351</guid> <description>Great, I&#039;ll give it a try this evening. Thanks again Marius, really appreciate your assistance.</description> <content:encoded><![CDATA[<p>Great, I&#8217;ll give it a try this evening. Thanks again Marius, really appreciate your assistance.</p> ]]></content:encoded> </item> <item><title>By: - Marius -</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193350</link> <dc:creator>- Marius -</dc:creator> <pubDate>Fri, 26 Aug 2011 15:32:20 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193350</guid> <description>@fitz: you could use something like this:
chmod -R g+w folder
if you want to give group write permissions on the folder and its content. If you want to give write permissions to eveyone use: g+w,o+w</description> <content:encoded><![CDATA[<p>@fitz: you could use something like this:<br
/> chmod -R g+w folder<br
/> if you want to give group write permissions on the folder and its content. If you want to give write permissions to eveyone use: g+w,o+w</p> ]]></content:encoded> </item> <item><title>By: fitz</title><link>http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/comment-page-3/#comment-193349</link> <dc:creator>fitz</dc:creator> <pubDate>Fri, 26 Aug 2011 15:14:46 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/#comment-193349</guid> <description>Thanks for your suggestion Marius, I appreciate you replying about this. I checked the properties of the folder in the FTP program and the Group and Global Write checkboxes were unchecked. But after I checked them and tried to send the file I got the same permission denied message. When I checked the folder properties again, the Write checkboxes were unchecked again, so I guess it didn&#039;t save. Is there a command line to modify permissions on the server for that folder?</description> <content:encoded><![CDATA[<p>Thanks for your suggestion Marius, I appreciate you replying about this. I checked the properties of the folder in the <acronym
class="uttAcronym" title="File Transfer Protocol">FTP</acronym> program and the Group and Global Write checkboxes were unchecked. But after I checked them and tried to send the file I got the same permission denied message. When I checked the folder properties again, the Write checkboxes were unchecked again, so I guess it didn&#8217;t save. Is there a command line to modify permissions on the server for that folder?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.ducea.com @ 2012-02-08 19:56:18 by W3 Total Cache -->
