<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Blog on Charlie's Server &#187; Security</title> <atom:link href="http://blog.charlies-server.com/tag/security/feed" rel="self" type="application/rss+xml" /><link>http://blog.charlies-server.com</link> <description></description> <lastBuildDate>Fri, 09 Sep 2011 05:31:51 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Quick Tip: Install a Custom SSL Root Certificate/Key on iPhone</title><link>http://blog.charlies-server.com/2009/10/30/install-custom-ssl-root-certificatekey-on-iphone</link> <comments>http://blog.charlies-server.com/2009/10/30/install-custom-ssl-root-certificatekey-on-iphone#comments</comments> <pubDate>Fri, 30 Oct 2009 18:08:44 +0000</pubDate> <dc:creator>Hasan</dc:creator> <category><![CDATA[Geekdom]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Security]]></category><guid isPermaLink="false">http://blog.charlies-server.com/?p=308</guid> <description><![CDATA[As it turns out, it&#8217;s pretty easy to install new root certificates on the iPhone. All you have to do is grab the certificate file in PEM format (via e-mail or web, either will work) and then open it up. Simple as that. In my case, since I wanted to grab the CACert root certificate [...]]]></description> <content:encoded><![CDATA[<p>As it turns out, it&#8217;s pretty easy to install new root certificates on the iPhone. All you have to do is grab the certificate file in PEM format (via e-mail or web, either will work) and then open it up. Simple as that. In my case, since I wanted to grab the <a href="http://cacert.org">CACert</a> root certificate so that I could use the WordPress iPhone application with this blog, all I had to do was navigate to <a href="http://www.cacert.org/certs/root.crt">their Class 1 PKI Key</a> in Safari on my iPhone and I was presented with an installation dialogue. After clicking &#8216;Install&#8217; I was ready to go.</p> ]]></content:encoded> <wfw:commentRss>http://blog.charlies-server.com/2009/10/30/install-custom-ssl-root-certificatekey-on-iphone/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Allowing Access to FTP Disk Only Via FTP</title><link>http://blog.charlies-server.com/2008/08/10/allowing-access-to-ftp-disk-only-via-ftp</link> <comments>http://blog.charlies-server.com/2008/08/10/allowing-access-to-ftp-disk-only-via-ftp#comments</comments> <pubDate>Sun, 10 Aug 2008 22:25:26 +0000</pubDate> <dc:creator>Hasan</dc:creator> <category><![CDATA[Geekdom]]></category> <category><![CDATA[FTP]]></category> <category><![CDATA[HOWTO]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Security]]></category><guid isPermaLink="false">http://blog.charlies-server.com/?p=122</guid> <description><![CDATA[For bandwidth shaping reasons, I wanted to be able to allow access to my FTP disk (mounted at /var/ftp) only via FTP (hosted by ProFTPd). As it turns out, this is quite easy to do using a couple of UNIX permissions tricks and some ProFTPd voodoo. Read on for the basic description of how I&#8217;ve [...]]]></description> <content:encoded><![CDATA[<p>For bandwidth shaping reasons, I wanted to be able to allow access to my FTP disk (mounted at <code>/var/ftp</code>) only via FTP (hosted by <a href="http://www.proftpd.org/" title="My FTP Daemon of Choice.">ProFTPd</a>). As it turns out, this is quite easy to do using a couple of UNIX permissions tricks and some ProFTPd voodoo. Read on for the basic description of how I&#8217;ve done it.<span id="more-122"></span></p><p><strong>Note</strong>: Here we will assume that ProFTPd has been configured for SQL authentication.</p><h3 id="toc-restricting-access-via-shell">Restricting Access Via Shell</h3><p>The first thing that needs to be done is to restrict permissions on the FTP disk so that shell users aren&#8217;t allowed to read it. This requires some simple UNIX permissions knowledge, and I used the following to get the job done.</p><p><code class="block">chown -r gongloo:ftp /var/ftp<br /> find /var/ftp -type f -exec chmod 640 {} \;<br /> find /var/ftp -type d -exec chmod 755 {} \;</code></p><p>That&#8217;ll set the permissions for all directories so that they can be opened by anyone but written to only by <code>gongloo</code>, and permissions for all files so that they can only be read by those in the <code>ftp</code> group and, again, can only be written to by <code>gongloo</code>. This means that any users who have FTP access as well as shell access will be able to list, but unable to read, the files on the FTP disk via shell.</p><p>Now all that we have to do is make sure that the <code>ftp</code> UNIX group contains only members that should have access to the FTP disk via shell.</p><h3 id="toc-allowing-access-via-ftp">Allowing Access Via FTP</h3><p>The second thing we need to get done is to allow access to the files via FTP for those users who should have it. This is fairly straightforward if we configure ProFTPd to assign GIDs directly from the SQL database that it uses as its authentication backend. We simply create an entry in the SQL table for ProFTPd groups matching the <code>ftp</code> entry in <code>/etc/group</code>. I used something like the following:</p><p><code class="block">INSERT INTO groups (groupname, gid, members) VALUES<br /> ('ftp', '21', 'userid1, userid2, userid3, ..., useridn');</code></p><p>And that&#8217;s it! Users listed in the <code>ftp</code> group in the SQL database are now able to grab files off of the FTP disk. Huzzah!</p> ]]></content:encoded> <wfw:commentRss>http://blog.charlies-server.com/2008/08/10/allowing-access-to-ftp-disk-only-via-ftp/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: blog.charlies-server.com @ 2012-02-10 22:22:10 -->
