<?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>ejohansson.se &#187; debian</title>
	<atom:link href="http://ejohansson.se/categories/computers/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejohansson.se</link>
	<description>Random bits about Linux, programming, computers and occasionally other stuff.</description>
	<lastBuildDate>Tue, 06 Mar 2012 09:02:05 +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>SFTP only access to&#160;server</title>
		<link>http://ejohansson.se/archives/2011/11/29/sftp-only-access-to-server/</link>
		<comments>http://ejohansson.se/archives/2011/11/29/sftp-only-access-to-server/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 10:17:16 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=370</guid>
		<description><![CDATA[I recently installed a NAS server in my home and wanted to give my family and relatives access to it so that they could use it as a remote backup server for photos and stuff. To keep it as secure as possible I only wanted to give them SFTP access. (All commands below are executed [...]]]></description>
			<content:encoded><![CDATA[<p>I recently installed a NAS server in my home and wanted to give my family and relatives access to it so that they could use it as a remote backup server for photos and stuff. To keep it as secure as possible I only wanted to give them SFTP access.</p>
<p>(All commands below are executed as root.)</p>
<p>First I created a group to group them together and then added the users to that group. I choose to disable their password as I only allow logins using SSH keys.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">addgroup sftponly
<span style="color: #666666; font-style: italic;"># Repeat the line below for each user</span>
adduser <span style="color: #660033;">--disabled-password</span> <span style="color: #660033;">--ingroup</span> sftponly ausername</pre></div></div>

<p>As for the upload directory I wanted them to upload their data to my raid1 volume mounted under /data/pool1. Since OpenSSH has some requirements for the permission on the directories used as chroot I created the following directory layout.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>pool1
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">751</span> sftp
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> . sftp<span style="color: #000000; font-weight: bold;">/</span>home
<span style="color: #666666; font-style: italic;"># Repeat the lines below for each user</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">700</span> sftp<span style="color: #000000; font-weight: bold;">/</span>ausername
<span style="color: #c20cb9; font-weight: bold;">chmod</span> ausername.root sftp<span style="color: #000000; font-weight: bold;">/</span>ausername</pre></div></div>

<p>The home symlink is there to make the initial SFTP directory /ausername and the sftp directory is created with 751 to disallow directory listing in the top directory.</p>
<p>Then, as &#8220;all components of the pathname must be root-owned directories that are not writable by any other user or group&#8221; and /data/pool1 is not root owned I created a bind mount by adding the following to /etc/fstab.</p>

<div class="wp_syntax"><div class="code"><pre class="div" style="font-family:monospace;"><span style="color: #44aa44;">/</span>data<span style="color: #44aa44;">/</span>pool1<span style="color: #44aa44;">/</span>sftp  <span style="color: #44aa44;">/</span>srv<span style="color: #44aa44;">/</span>sftp  bind  bind  <span style="color: #cc66cc;">0</span>  <span style="color: #cc66cc;">0</span></pre></div></div>

<p>Before the initial mount, the directory must be created.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>sftp
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>sftp</pre></div></div>

<p>Then, the final part was to configure OpenSSH by adding the following lines at the end of /etc/ssh/sshd_config.</p>

<div class="wp_syntax"><div class="code"><pre class="div" style="font-family:monospace;">Match Group sftponly
  ChrootDirectory <span style="color: #44aa44;">/</span>srv<span style="color: #44aa44;">/</span>sftp
  ForceCommand internal<span style="color: #44aa44;">-</span>sftp
  AllowTcpForwarding no
  X11Forwarding no</pre></div></div>

<p>Remember to restart the server afterwards.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2011/11/29/sftp-only-access-to-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Licq to build with&#160;pbuilder</title>
		<link>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/</link>
		<comments>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 18:44:53 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=344</guid>
		<description><![CDATA[I wanted to test that I had specified the correct Build-Depends in my Debian package of Licq 1.5.0-rc2. It seemed like the simplest way to do this was to create a personal builder installation and build the package in that chroot. So I did: sudo pbuilder create --debootstrapopts --variant=buildd Building should then be as simple [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to test that I had specified the correct Build-Depends in my Debian package of <a href="http://www.licq.org/blog/Licq-1.5.0-rc2">Licq 1.5.0-rc2</a>. It seemed like the simplest way to do this was to create a personal builder installation and build the package in that chroot.</p>
<p>So I did:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pbuilder create <span style="color: #660033;">--debootstrapopts</span> <span style="color: #660033;">--variant</span>=buildd</pre></div></div>

<p>Building should then be as simple as executing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git-buildpackage <span style="color: #660033;">--git-builder</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>git-buildpackage<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>gbp-pbuilder <span style="color: #660033;">--git-cleaner</span>=<span style="color: #ff0000;">&quot;fakeroot debian/rules clean&quot;</span></pre></div></div>

<p>Or it should have been that simple. Unfortunately the build failed with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Fatal: no entropy gathering module detected</pre></div></div>

<p>After some googling and testing; the fix was to add two random devices to the chroot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pbuilder <span style="color: #c20cb9; font-weight: bold;">login</span> <span style="color: #660033;">--save-after-login</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random c <span style="color: #000000;">1</span> <span style="color: #000000;">8</span>
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom c <span style="color: #000000;">1</span> <span style="color: #000000;">9</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">666</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>(The change of permission for /dev/null was needed to avoid getting errors later in the build process.)</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/09/26/getting-licq-to-build-with-pbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/me is the new Debian maintainer for&#160;Licq</title>
		<link>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/</link>
		<comments>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 23:01:01 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[licq]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=320</guid>
		<description><![CDATA[Update 2010-10-30: Changed the initial setup to use gbp-clone. I&#8217;m now officially the maintainer of Licq&#8217;s Debian packages. Since I&#8217;m not a real Debian maintainer, I&#8217;m very grateful to Joel Rosdahl who is my sponsor. Version 1.3.8-1 is coming to a mirror near you as I write this. The package source is kept in my [...]]]></description>
			<content:encoded><![CDATA[<p><b>Update 2010-10-30:</b> Changed the initial setup to use gbp-clone.</p>
<p>I&#8217;m now officially the maintainer of Licq&#8217;s Debian packages. Since I&#8217;m not a real Debian maintainer, I&#8217;m very grateful to <a href="http://joel.rosdahl.net/">Joel Rosdahl</a> who is my sponsor.</p>
<p>Version 1.3.8-1 is coming to a mirror near you as I write this.</p>
<p>The package source is kept in my <a href="http://git.ejohansson.se/">git repository</a>. To build the package from the git repository, install git-buildpackage and pristine-tar then follow the instructions below.</p>
<p>Initial setup:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> gbp-clone <span style="color: #660033;">--pristine-tar</span> <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.ejohansson.se<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>licq.git</pre></div></div>

<p><strike></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>git.ejohansson.se<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>licq.git
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">cd</span> licq
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> checkout <span style="color: #660033;">-b</span> pristine-tar origin<span style="color: #000000; font-weight: bold;">/</span>pristine-tar
licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">co</span> master</pre></div></div>

<p></strike></p>
<p>To build the latest version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage <span style="color: #660033;">--git-export-dir</span>=..<span style="color: #000000; font-weight: bold;">/</span>build-area</pre></div></div>

<p>To build a specific version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage <span style="color: #660033;">--git-export-dir</span>=..<span style="color: #000000; font-weight: bold;">/</span>build-area <span style="color: #660033;">--git-export</span>=debian<span style="color: #000000; font-weight: bold;">/</span>1.3.8-<span style="color: #000000;">1</span></pre></div></div>

<p>The final packages will be available in ../build-area.</p>
<p>Later on when you wish to update:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">licq <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">git</span> pull
licq <span style="color: #000000; font-weight: bold;">%</span> git-buildpackage ...</pre></div></div>

<p>The next version will have qt4-gui.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2010/01/15/me-is-the-new-debian-maintainer-for-licq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wake on LAN with&#160;Debian</title>
		<link>http://ejohansson.se/archives/2009/12/31/wake-on-lan-with-debian/</link>
		<comments>http://ejohansson.se/archives/2009/12/31/wake-on-lan-with-debian/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:45:20 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=309</guid>
		<description><![CDATA[To enable Wake on LAN on a Asus P5E-V motherboard under Debian you can do the following. Since I have a Asus motherboard, that&#8217;s the only one I&#8217;ve tested, but except from the BIOS (which may differ a bit), the instructions should be the same for all motherboards/NIC that supports Wake on LAN. In the [...]]]></description>
			<content:encoded><![CDATA[<p>To enable <a href="http://en.wikipedia.org/wiki/Wake-on-LAN">Wake on LAN</a> on a Asus P5E-V motherboard under Debian you can do the following. Since I have a Asus motherboard, that&#8217;s the only one I&#8217;ve tested, but except from the BIOS (which may differ a bit), the instructions should be the same for all motherboards/NIC that supports Wake on LAN.</p>
<p>In the BIOS, enable &#8220;Power on by PCIE device&#8221;.</p>
<p>In Linux, first install ethtool and then check that Wake on LAN is supported by running the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ ethtool eth0
...
        Supports Wake-on: g
        Wake-on: g
...</pre></div></div>

<p>The output should contain a &#8216;g&#8217; to indicate that the device can be woken by sending it a &#8220;magic packet&#8221;.</p>
<p>Enable Wake-on by running:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ ethtool <span style="color: #660033;">-s</span> eth0 wol g</pre></div></div>

<p>Since this command must be run on every boot, add it to /etc/rc.local.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local
...
ethtool <span style="color: #660033;">-s</span> eth0 wol g
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>As the last step we must make sure that halt doesn&#8217;t disable the network device. This is done by adding this line to /etc/default/halt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">NETDOWN</span>=no</pre></div></div>

<p>We also need the MAC address to send the magic packet to.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0
eth0      Link encap:Ethernet  HWaddr 00:1e:8c:cf:d0:bb  
...</pre></div></div>

<p>Then shutdown the computer. On an other computer, install e.g. <a href="http://gsd.di.uminho.pt/jpo/software/wakeonlan/">wakeonlan</a> and run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>other$ wakeonlan 00:1e:8c:cf:d0:bb</pre></div></div>

<p>The computer should now start.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2009/12/31/wake-on-lan-with-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debian&#160;packages</title>
		<link>http://ejohansson.se/archives/2008/08/23/debian-packages/</link>
		<comments>http://ejohansson.se/archives/2008/08/23/debian-packages/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 13:55:03 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=192</guid>
		<description><![CDATA[My Debian packages are now available at debian.ejohansson.se instead of eddie.ejohansson.se. Please update your /etc/apt/sources.list to point to the new location.]]></description>
			<content:encoded><![CDATA[<p>My Debian packages are now available at <a href="http://debian.ejohansson.se/">debian.ejohansson.se</a> instead of eddie.ejohansson.se. Please update your /etc/apt/sources.list to point to the new location.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2008/08/23/debian-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SELinux on NSLU2 now&#160;working</title>
		<link>http://ejohansson.se/archives/2007/09/02/selinux-on-nslu2-now-working/</link>
		<comments>http://ejohansson.se/archives/2007/09/02/selinux-on-nslu2-now-working/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 18:10:11 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[nslu2]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2007/09/02/selinux-on-nslu2-now-working/</guid>
		<description><![CDATA[Not willing to wait any longer for a resolution to the bug I wrote about in my last post I decided to take action. I have now compiled libsepol with my fix applied and uploaded the debian package to my repository. Since libsepol1-dev ships with a static version of libsepol, I&#8217;ve also recompiled some of [...]]]></description>
			<content:encoded><![CDATA[<p>Not willing to wait any longer for a resolution to the <a href="http://bugs.debian.org/439539">bug</a> I wrote about in my last post I decided to take action. I have now compiled libsepol with my fix applied and uploaded the debian package to my <a href="/archives/2006/03/11/presenting-my-debian-repository/">repository</a>.</p>
<p>Since libsepol1-dev ships with a static version of libsepol, I&#8217;ve also recompiled some of the packages that build-depends on libsepol1-dev and added them to the repository as well.</p>
<p>If you wish to use SELinux on you slug and feel that you trust me enough to use my version of this rather central piece of security software, add this to your sources.list:</p>
<pre>
deb http://eddie.ejohansson.se/debian/ etch main
</pre>
<p>The version number is the same as the version in etch with &#8216;a&#8217; added at the end. Hopefully this means that when updated official packages are released they will automatically be upgraded.</p>
<p>If you want information on how to configure SELinux, this <a href="http://wiki.debian.org/SELinux">guide</a> worked for me. But before you follow that guide (and after installing my updated packages), run &#8216;dpkg-reconfigure selinux-policy-refpolicy-targeted&#8217; so that the base module and modules for the daemons you&#8217;re using are properly loaded.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2007/09/02/selinux-on-nslu2-now-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSLU2 +&#160;SELinux</title>
		<link>http://ejohansson.se/archives/2007/08/25/nslu2-selinux/</link>
		<comments>http://ejohansson.se/archives/2007/08/25/nslu2-selinux/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 14:24:30 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[nslu2]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2007/08/25/nslu2-selinux/</guid>
		<description><![CDATA[It took some time, but I finally figured out why SELinux wouldn&#8217;t work on my Debian/NSLU2 installation. The bug report has all the details.]]></description>
			<content:encoded><![CDATA[<p>It took some time, but I finally figured out why SELinux wouldn&#8217;t work on my <a href="http://www.nslu2-linux.org/wiki/Debian/HomePage">Debian/NSLU2</a> installation.  The <a href="http://bugs.debian.org/439539">bug report</a> has all the details.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2007/08/25/nslu2-selinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DSPAM Sarge&#160;backport</title>
		<link>http://ejohansson.se/archives/2006/05/14/dspam-sarge-backport/</link>
		<comments>http://ejohansson.se/archives/2006/05/14/dspam-sarge-backport/#comments</comments>
		<pubDate>Sun, 14 May 2006 17:41:38 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2006/05/14/dspam-sarge-backport/</guid>
		<description><![CDATA[A backport of DSPAM for Debian stable (Sarge) is now available in my repository. No changes have been done compared to the version in unstable, just a recompile. For those of you that don&#8217;t know what DSPAM is: DSPAM is a scalable and open-source content-based spam filter designed for multi-user enterprise systems. On a properly [...]]]></description>
			<content:encoded><![CDATA[<p>A backport of <a href="http://dspam.nuclearelephant.com/">DSPAM</a> for Debian stable (Sarge) is now available in my <a href="http://ejohansson.se/archives/2006/03/11/presenting-my-debian-repository/">repository</a>. No changes have been done compared to the version in unstable, just a recompile.</p>
<p> For those of you that don&#8217;t know what DSPAM is:</p>
<blockquote cite="http://dspam.nuclearelephant.com/" title="DSPAM"><p>
DSPAM is a scalable and open-source content-based spam filter designed for multi-user enterprise systems. On a properly configured system, many users experience results between 99.5% &#8211; 99.95%, or one error for every 200 to 2000 messages.
</p></blockquote>
<p>If anybody is interested in my setup (Exim4+DSPAM+MySQL), let my know and I&#8217;ll publish my configuration files.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2006/05/14/dspam-sarge-backport/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Sarge&#160;r2</title>
		<link>http://ejohansson.se/archives/2006/04/19/sarge-r2/</link>
		<comments>http://ejohansson.se/archives/2006/04/19/sarge-r2/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 14:34:04 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2006/04/19/sarge-r2/</guid>
		<description><![CDATA[Sarge r2 is out. Time to put your up alias to work. You do have an up alias now, don&#8217;t you? If not, time to add this to your ~/.bashrc and save a few keystrokes. alias up='aptitude update &#38;&#38; aptitude upgrade' Now, up and enjoy the beauty of apt. Being a Debian administrator is sooo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.us.debian.org/News/2006/20060419">Sarge r2 is out</a>. Time to put your up alias to work. You do have an up alias now, don&#8217;t you? If not, time to add this to your ~/.bashrc and save a few keystrokes.</p>
<pre>
alias up='aptitude update &amp;&amp; aptitude upgrade'
</pre>
<p>Now, up and enjoy the beauty of apt. Being a Debian administrator is sooo easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2006/04/19/sarge-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DSA reaches&#160;1000</title>
		<link>http://ejohansson.se/archives/2006/03/14/dsa-reaches-1000/</link>
		<comments>http://ejohansson.se/archives/2006/03/14/dsa-reaches-1000/#comments</comments>
		<pubDate>Tue, 14 Mar 2006 13:31:00 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2006/03/14/dsa-reaches-1000/</guid>
		<description><![CDATA[Debian Security Advisory 1000 just arrived in my mailbox. This might or might not (depending on your point of view) be something to celebrate. We skip the celebration for now and look at some statistics instead. Since the first DSA in November 2000 (that&#8217;s when the first DSA was issued, Debian has been releasing security [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.debian.org/security/2006/dsa-1000">Debian Security Advisory 1000</a> just arrived in my mailbox. This might or might not (depending on your point of view) be something to celebrate. We skip the celebration for now and look at some statistics instead.</p>
<p>Since the <a href="http://www.debian.org/security/2000/20001129">first DSA</a> in November 2000 (that&#8217;s when the first DSA was issued, Debian has been releasing security advisories since <a href="http://www.debian.org/security/1997/">1997</a>) there has been a steady flow, with an average of 1 advisory every other day.</p>
<pre>
# ruby -rdate -e 'puts "DSAs/day: #{1000.0/(Date.parse("2006-03-14") - Date.parse("2000-11-29"))}"'
DSAs/day: 0.517866390471258
# ruby -e 'puts "Days between DSAs: #{1/0.517866390471258}"'
Days between DSAs: 1.931
</pre>
<p>We can also note that every year has seen more DSAs then the previous. This year does not seem to be any different. So far 72 advisories have been issued, which, by a strike of coincidence, is the exact same number as 2005 (up to March the 14th).</p>
<pre>
2000:  10
2001:  85
2002: 124
2003: 186
2004: 216
2005: 307
2006:  72
</pre>
<p>Continuing on the date statistics, we see that January is, by far, the month with most advisories (153). Followed by October (96)  and February (94). Interesting is also the fact that the late spring and summer months July (72), June (62) and May (40) comes furthest down in the result list. It would seem that even security experts prefer the sun to the computer. Nah, proably purely coincidental. Everybody knows that computer geeks prefers the screen and its friendly glow <img src='http://ejohansson.se/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The most popular date is, far from surprisingly, in January. Namely the 23th (12) with three advisories more than any other day.</p>
<h3>Top 10</h3>
<p>But, let us leave the dates and move on to something more interesting: Top 10.</p>
<h4>Vulnerabilities</h4>
<p>The top 10 vulnerabilities is given below (the number is the number of DSAs tagged with the vulnerability).</p>
<pre>
173 - buffer overflow
130 - several vulnerabilities
 57 - buffer overflows
 37 - missing input sanitising
 37 - insecure temporary file
 27 - insecure temporary files
 27 - programming error
 23 - denial of service
 22 - integer overflow
 18 - format string
</pre>
<p>The most common vulnerability is not surprisingly buffer overflows, followed by insecure temporary files and missing sanitising of input. All three classic security issues.</p>
<h4>Packages</h4>
<p>The 16 (only 10 would have excluded packages with the same number of advisories as some that where included) packages with the most advisories are given below.</p>
<pre>
13 - ethereal
13 - kdelibs
11 - squid
10 - cvs
 9 - mysql
 8 - krb5
 8 - cupsys
 8 - heimdal
 8 - samba
 7 - sudo
 7 - tcpdump
 7 - xfree86
 7 - xpdf
 7 - apache
 7 - openssl
 7 - fetchmail
</pre>
<p>These numbers are actually a bit suprising. I can understand that kdelibs, mysql, cupsys, samba, xfree86 and apache are included since they are pretty big. But what&#8217;s ethereal, cvs, tcpdump, xpdf and fetchmail doing there? I don&#8217;t think they are big enough to justify theire appearance among the top (bottom?) 10.</p>
<p>We close this post with the top packages, counting only 2005 and 2006. Much the same as the previous, but now with squid as the leader and courier and firefox joining in.</p>
<pre>
7 - squid
5 - clamav
4 - courier
4 - ethereal
4 - xpdf
4 - mozilla-firefox
4 - kdelibs
</pre>
<p><strong>Disclaimer:</strong> I know it&#8217;s unfair to just list the packages with the most advisories. I should proably dig deeper and compare the count to the impact each vulnerability had. But I don&#8217;t have the time to do so now and my tiny <a href="http://svn.ejohansson.se/repos/src/misc/ruby/dsa_stats.rb">DSA statistics script</a> doesn&#8217;t do it for me. So take the data presented here (as the Swedish saying goes) with an ounce of salt.</p>
<p><a href="http://digg.com/security/Debian_Security_Advisory_statistics">Digg This Article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2006/03/14/dsa-reaches-1000/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

