<?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; HOWTO</title> <atom:link href="http://blog.charlies-server.com/tag/howto/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>Fring, SkypeOut Not Playing Nice? Solved.</title><link>http://blog.charlies-server.com/2008/12/06/fring-skypeout-not-playing-nice-solved</link> <comments>http://blog.charlies-server.com/2008/12/06/fring-skypeout-not-playing-nice-solved#comments</comments> <pubDate>Sat, 06 Dec 2008 23:31:37 +0000</pubDate> <dc:creator>Hasan</dc:creator> <category><![CDATA[Day-To-Day]]></category> <category><![CDATA[Geekdom]]></category> <category><![CDATA[HOWTO]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Skype]]></category><guid isPermaLink="false">http://blog.charlies-server.com/?p=166</guid> <description><![CDATA[I&#8217;ve been using Fring to make SkypeOut calls over WiFi. Not only does this shave billed minutes off of my phone bill, but what with the iPhone&#8217;s 3G chipset being unreliable as all hell, I honestly prefer to make some of my calls via Skype anyways as long as I know I&#8217;m going to be [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.fring.com" title="Cute iPhone app for IM and Skype">Fring</a> to make <a href="http://www.skype.com/allfeatures/callphones/" title="Call any phone via Skype.">SkypeOut</a> calls over WiFi. Not only does this shave billed minutes off of my phone bill, but what with the iPhone&#8217;s 3G chipset being unreliable as all hell, I honestly prefer to make some of my calls via Skype anyways as long as I know I&#8217;m going to be in WiFi range for the duration of the call.</p><p><strong>Here&#8217;s how to get Fring to work with SkypeOut</strong>: prepend the call number a <code>+</code> followed by the country code of the recipient of the call. For example, when calling a phone in the U.S. add <code>+1</code>; <code>(800) 867-5309</code> then becomes <code>+18008675309</code>. To get the <code>+</code>, I simply press and hold the <code>0</code> key on the dial pad in Fring.</p><p>I&#8217;m not sure that this was always required, as I could have sworn that Fring used to &#8216;just work&#8217; most of the time, but maybe I&#8217;m mistaken. Either way, I&#8217;m glad to have it working again!</p> ]]></content:encoded> <wfw:commentRss>http://blog.charlies-server.com/2008/12/06/fring-skypeout-not-playing-nice-solved/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:16:50 -->
