<?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>Enhanced Linux &#187; Debian</title> <atom:link href="http://enhancedlinux.com/category/debian/feed/" rel="self" type="application/rss+xml" /><link>http://enhancedlinux.com</link> <description>Enhancing Linux since 2006!</description> <lastBuildDate>Wed, 06 Apr 2011 22:44:38 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>[SECURITY] [DSA-1971-1] New libthai packages fix arbitrary code execution</title><link>http://enhancedlinux.com/2010/01/15/security-dsa-1971-1-new-libthai-packages-fix-arbitrary-code-execution/</link> <comments>http://enhancedlinux.com/2010/01/15/security-dsa-1971-1-new-libthai-packages-fix-arbitrary-code-execution/#comments</comments> <pubDate>Sat, 16 Jan 2010 00:13:02 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[security]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=134</guid> <description><![CDATA[Package : libthai Vulnerability : integer overflow Problem type : local (remote) Debian-specific : no CVE Id : CVE-2009-4012 Tim Starling discovered that libthai, a set of Thai language support routines, is vulnerable of integer/heap overflow. This vulnerability could allow an attacker to run arbitrary code by sending a very long string. For the oldstable distribution (etch), this [...]]]></description> <content:encoded><![CDATA[<p><strong><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png"><img class="alignright size-full wp-image-11" title="debianlogo-100" src="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png" alt="" width="100" height="123" /></a>Package </strong>: libthai<br /> <strong>Vulnerability</strong> : integer overflow<br /> <strong>Problem type</strong> : local (remote)<br /> <strong>Debian-specific</strong> : no<br /> <strong>CVE Id </strong> : CVE-2009-4012</p><p>Tim Starling discovered that libthai, a set of Thai language support routines, is vulnerable of integer/heap overflow. This vulnerability could allow an attacker to run arbitrary code by sending a very long string.</p><p>For the oldstable distribution (etch), this problem has been fixed in version 0.1.6-1+etch1.</p><p>For the stable distribution (lenny), this problem has been fixed in version 0.1.9-4+lenny1.</p><p>For the testing distribution (squeeze), and the unstable distribution (sid), this problem will be fixed soon.</p><p>We recommend that you upgrade your libthai package.</p> ]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/15/security-dsa-1971-1-new-libthai-packages-fix-arbitrary-code-execution/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Finding Files and Binaries on Linux and UNIX</title><link>http://enhancedlinux.com/2010/01/08/finding-files-and-binaries-on-linux-and-unix/</link> <comments>http://enhancedlinux.com/2010/01/08/finding-files-and-binaries-on-linux-and-unix/#comments</comments> <pubDate>Fri, 08 Jan 2010 16:02:31 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[arch]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[find]]></category> <category><![CDATA[freebsd]]></category> <category><![CDATA[locate]]></category> <category><![CDATA[OS X]]></category> <category><![CDATA[whereis]]></category> <category><![CDATA[which]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=76</guid> <description><![CDATA[I manage a number of different types of systems. I have an Arch Linux laptop, a Macbook installed with OS X, CentOS and RHEL machines at work, as well as Debian servers both at work and home. As if that weren&#8217;t enough I also maintain a few FreeBSD servers. Between all of these different Operating [...]]]></description> <content:encoded><![CDATA[<p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png"><img class="alignright size-full wp-image-11" title="debianlogo-100" src="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png" alt="" width="100" height="123" /></a>I manage a number of different types of systems. I have an Arch Linux laptop, a Macbook installed with OS X, CentOS and RHEL machines at work, as well as Debian servers both at work and home. As if that weren&#8217;t enough I also maintain a few FreeBSD servers. Between all of these different Operating Systems and variants I find that certain files and commands aren&#8217;t always where I might expect them to be. For today&#8217;s article I&#8217;ve outlined different methods for finding files and binaries on Linux and UNIX systems.</p><p><strong>Locate</strong></p><p>The first tool I&#8217;ll share is the <em>locate</em> command. This command searches through an index, built-daily, of all files and folders on your machine. Locate should be available on all standard UNIX systems, and is generally a very fast way to search for files.</p><ul><li>Positives: fast</li><li>Negatives: not very specific, index updated daily</li></ul><p>If you need to re-build your index to include recently added files, you can run the command:</p><blockquote><p><code>updatedb</code></p></blockquote><p><strong>Find</strong></p><p>The <em>find</em> command is much, much more granular than the <em>locate</em> command but it can also be more complicated to use. Explaining all of its options would warrant a post of its own, so I&#8217;ll just outline a few basic uses.</p><ul><li> Positives: very, very granular search parameters</li><li>Negatives: slower than other methods</li></ul><p>To use the find command, refer to one of these examples:</p><blockquote><p><code>find / -type f -iname "httpd.conf"<br /> find . -type f -name ".bashrc"<br /> find /etc/ -type f -name "hosts.*"<br /> find /usr/local/ -type d -iname "www"<br /> </code></p></blockquote><p>These examples are all very similar, with only slight variations, to give you an idea of some of the power of <em>find</em>. Again, <em>find</em> can do <strong>much</strong> more than this, but this is enough to get you started.</p><ul><li>The first command searches from the root directory for any files (-type f) for the case-insensitive string of &#8220;httpd.conf&#8221;.</li><li>The second command searches the current working directory for any files with the case-sensitive name of &#8220;.bashrc&#8221;.</li><li>The third command searches within the /etc/ directory (and subdirectories) for any files matching the name &#8220;hosts.*&#8221;</li><li>The last command searches within the /usr/local/ directory for any directories (-type d) with the case-insensitive name of &#8220;www&#8221;.</li></ul><p>As you can see, <em>find</em> can be very flexible and this only touches on the advanced search patterns it can define. I highly suggest you have a look at the <em>find</em> man page for more information!</p><p><strong>Which</strong></p><p>The <em>which</em> command searches for binary files within your PATH. For example, let&#8217;s say you need to know the full path to the <em>wget</em> command. You could use:</p><blockquote><p><code>which wget</code></p></blockquote><p>You should see something along the lines of:</p><blockquote><p><code>/usr/bin/wget</code></p></blockquote><p>Binaries may be stored in different places on different systems, which is again why it is important to know how to find them. I use which frequently within my scripting in an attempt to make scripts portable. Let me give you an example:</p><blockquote><p><code>#!/bin/bash<br /> if [ -x $(which wget) ]; then<br /> $(which wget) http://example.com/file.txt<br /> fi</code></p></blockquote><p>This very simply script doesn&#8217;t make any assumptions about the availability or the location of the wget tool. It does a simple check to see if the binary, as defined by its full path, is executable and if so use it to download a file. If wget does not exist the script will do nothing, and if it does exist it will be sure to execute it by its full path.</p><p>This tool has been helpful when moving between operating systems and variants. It helps me ensure I know exactly where files are, and not make any assumptions.</p><p><strong>Whereis</strong></p><p>The whereis tool is similar to the <em>locate</em> tool in that it is not as granular as <em>find</em>, and it is also similar to the <em>which</em> tool in that it searches only a predefined PATH for files. I use whereis constantly on my FreeBSD systems to search for ports within the ports tree. An example:</p><blockquote><p>whereis portmaster</p></blockquote><p>This would give me the output (assuming it is installed), of:</p><blockquote><p>portmaster: /usr/local/sbin/portmaster /usr/local/man/man8/portmaster.8.gz /usr/ports/ports-mgmt/portmaster</p></blockquote><p>This searches the standard binary, manual page, and source directories. As you can see from the above output, I have a result from each. This tells me where the binary is in its full path, where the man page(s) is stored as well as within the ports tree. If I didn&#8217;t have it installed, the only result I would be given would be the ports tree entry. This would help me find the path, allowing me to install it.</p><p><strong>Conclusion</strong></p><p>All of these tools are standard UNIX binaries that you should find on any system. Each tool has its own strengths and weaknesses, and none of them will always do the job the right way. I find myself using each of these on a regular basis, each for its own strengths. I would invite you to start using these commands in your day-to-day as needed, and read more about them.</p> ]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2010/01/08/finding-files-and-binaries-on-linux-and-unix/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Configure Logwatch Log Monitoring Tool on Debian 5.x (Stable)</title><link>http://enhancedlinux.com/2009/12/25/configure-logwatch-log-monitoring-tool-on-debian-5-x-stable/</link> <comments>http://enhancedlinux.com/2009/12/25/configure-logwatch-log-monitoring-tool-on-debian-5-x-stable/#comments</comments> <pubDate>Sat, 26 Dec 2009 04:48:40 +0000</pubDate> <dc:creator>Christer</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[logwatch]]></category><guid isPermaLink="false">http://enhancedlinux.com/?p=17</guid> <description><![CDATA[Despite the fact that I am a Red Hat Certified Engineer, and manage Red Hat and CentOS for a living, I prefer running Debian 5.x (Stable) on my personal servers.  The one thing that I end up needing to add to my Debian servers however is Logwatch (which is default on Red Hat). This post [...]]]></description> <content:encoded><![CDATA[<p><a href="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png"><img class="alignright size-full wp-image-11" style="border: 0pt none; margin: 1px;" title="debianlogo-100" src="http://enhancedlinux.com/wp-content/uploads/2009/12/debianlogo-100.png" alt="" width="100" height="123" /></a>Despite the fact that I am a Red Hat Certified Engineer, and manage Red Hat and CentOS for a living, I prefer running Debian 5.x (Stable) on my personal servers.  The one thing that I end up needing to add to my Debian servers however is Logwatch (which is default on Red Hat). This post will outline how to install, configure and verify Logwatch on your Debian 5.x (Stable) server.</p><p>From the Logwatch home page:</p><blockquote><p>Logwatch is a customizable log analysis system. Logwatch parses through your system&#8217;s logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is easy to use and will work right out of the  package on most systems.</p></blockquote><p><strong>Installing Logwatch</strong></p><p>To install the Logwatch Log Monitoring tool, you&#8217;ll need to install the required package. This package should be available in the main repository and simply requires Perl and a Mail Transport Agent. Perl is something you&#8217;ll likely already have, and Exim should be installed by default (although I prefer Postfix).</p><p>Use the following command to install Logwatch:</p><blockquote><p><code>sudo aptitude install logwatch</code></p></blockquote><p><strong>Configure Logwatch</strong></p><p>Logwatch runs via cron each day and, assuming you want to receive these reports, you&#8217;ll likely want to configure it to send these reports via email. You&#8217;ll need to update the configuration to output to <em>mail</em> as well as define the address you&#8217;d like it to send to. This is done in the following file:</p><blockquote><p><code>/usr/share/logwatch/default.conf/logwatch.conf</code></p></blockquote><p>The two changes you&#8217;ll want to make are as follows:</p><ol><li>You should find, around line 35, a setting for <em>Output</em>. You&#8217;ll want to change this to <em>mail</em>.</li><li>Find, around line 44, the setting for <em>MailTo</em>. You&#8217;ll want to change this to the email address you&#8217;d like the reports sent.</li></ol><p>You can verify the functionality by simply running the <code>logwatch</code> command and checking the email account you configured.</p><p><strong>Troubleshooting</strong></p><p>If you find that you don&#8217;t receive an email as expected, it is likely an issue with your Mail Transport Agent (Exim, Postfix, Sendmail, etc..) Take a look at <em>/var/log/mail.log</em> and see if that gives you any hints.</p><p>I have run into machines where Exim, the default Mail Transport Agent, was not configured properly to be able to send email outside of the machine. You can try to reconfigure Exim by reconfiguring the package installation:</p><blockquote><p><code>sudo dpkg-reconfigure exim4</code></p></blockquote><p>You can also try installing something you might be more familiar with. Perhaps Postfix or Sendmail. If you install Postfix, select the &#8220;Local Only&#8221; option during installation and it should work as expected.</p> ]]></content:encoded> <wfw:commentRss>http://enhancedlinux.com/2009/12/25/configure-logwatch-log-monitoring-tool-on-debian-5-x-stable/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 8/16 queries in 0.198 seconds using disk: basic

Served from: enhancedlinux.com @ 2012-02-04 07:28:27 -->
