<?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>Linux Sysadmin Blog &#187; Security</title>
	<atom:link href="http://linuxsysadminblog.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxsysadminblog.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Apr 2012 12:34:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Colbert tells how Barr stuck his penis into the Anonymous hornets nest</title>
		<link>http://linuxsysadminblog.com/2011/05/colbert-tells-how-barr-stuck-his-penis-into-the-anonymous-hornets-nest/</link>
		<comments>http://linuxsysadminblog.com/2011/05/colbert-tells-how-barr-stuck-his-penis-into-the-anonymous-hornets-nest/#comments</comments>
		<pubDate>Tue, 10 May 2011 03:23:06 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1351</guid>
		<description><![CDATA[I realized that I missed a great episode of Colbert when a friend described at lunch how Colbert had likened the Barr attack on anonymous to him sticking his penis to the hornets nest. I hope you enjoy a laugh. For a good article on how anonymous got into Barrs accounts read this Ars Technica [...]]]></description>
			<content:encoded><![CDATA[<p>I realized that I missed a great episode of Colbert when a friend described at lunch how Colbert had likened the Barr attack on anonymous to him sticking his penis to the hornets nest.  I hope you enjoy a laugh.  For a good article on how anonymous got into Barrs accounts read this Ars Technica article on <a href="http://arstechnica.com/tech-policy/news/2011/02/anonymous-speaks-the-inside-story-of-the-hbgary-hack.ars">Anonymous and HBGary hacking</a>.  It is a great study on how to improve your security and how vulnerable a corporation may be due to lax security practices.</p>
<div style="background-color:#000000;width:520px;">
<div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:cms:video:colbertnation.com:375428" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed>
<p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;"><b><a href="http://www.colbertnation.com/the-colbert-report-videos/375428/february-24-2011/corporate-hacker-tries-to-take-down-wikileaks">The Colbert Report</a></b><br/>Tags: <a href='http://www.colbertnation.com/full-episodes/'>Colbert Report Full Episodes</a>,<a href='http://www.indecisionforever.com/'>Political Humor &#038; Satire Blog</a>,<a href='http://www.colbertnation.com/video'>Video Archive</a></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2011/05/colbert-tells-how-barr-stuck-his-penis-into-the-anonymous-hornets-nest/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drupalcon Security Session Notes</title>
		<link>http://linuxsysadminblog.com/2010/04/drupalcon-security-session-notes/</link>
		<comments>http://linuxsysadminblog.com/2010/04/drupalcon-security-session-notes/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 22:27:19 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1079</guid>
		<description><![CDATA[Some of us are attending the San Francisco Drupalcon 2010 this week.  I am in a session which some of you may find interesting.  The concepts are far from revelational but they are relevant. Most security]]></description>
			<content:encoded><![CDATA[<p>Some of us are attending the San Francisco Drupalcon 2010 this week.  I am in a session which some of you may find interesting.  The concepts are far from revelational but they are relevant.</p>
<ol>
<li>Most security <abreaches are done still XSS</li>
<li>Some things to do to increase security
<ol>
<li>Do not allow full HTML as input to anyone &#8211; filtered HTML only</li>
<li>ONly give Super admin privileges to trusted users</li>
</ol>
</li>
<li>Some best practices
<ol>
<li>Change passwords</li>
<li>
<li>do not use ftp</li>
<li>Keep your site up to date</li>
</li>
</ol>
</li>
<li>Online resources
<ol>
<li>drupal.org/sercurity</li>
<li>drupal.org/security/contrib</li>
<li>Security Review Module</li>
</ol>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/04/drupalcon-security-session-notes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mail Relay Issue on Cpanel Server</title>
		<link>http://linuxsysadminblog.com/2010/02/mail-relay-issue-on-cpanel-server/</link>
		<comments>http://linuxsysadminblog.com/2010/02/mail-relay-issue-on-cpanel-server/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 14:05:00 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[relayers]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1050</guid>
		<description><![CDATA[I noticed lots of email being relayed on one of our shared hosting server, CentOS5 with Cpanel and running Exim, and the strange thing is that the email server (MX) for these accounts are pointing to Google (GoogleApps), and we have correct entries for localdomains and remotedomains for these account. The relayers (&#8216;From&#8217; server/address) looks [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed lots of email being relayed on one of our shared hosting server, CentOS5 with Cpanel and running Exim, and the strange thing is that the email server (MX) for these accounts are pointing to Google (GoogleApps), and we have correct entries for <em>localdomains</em> and <em>remotedomains</em> for these account.  The relayers (<em>&#8216;From&#8217;</em> server/address) looks like spam anyway.  From the mail logs I noticed that the relayed messages have &#8216;<em>fixed_login</em>&#8216; and key (&#8216;<em>rsa-sha1</em>&#8216;) for their authentications.</p>
<p>Since the mail server for these accounts are pointing to other servers, I deleted all the email accounts, forwarders, mailinglists, etc.  After this I&#8217;ve seen sending error/failure messages from mail logs of the said accounts  It shows &#8216;<em>fixed_login authenticator failed for hostxx&#8217; [535 Incorrect authentication data]</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/mail-relay-issue-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>cvs [checkout aborted]: absolute pathnames invalid for server</title>
		<link>http://linuxsysadminblog.com/2010/02/cvs-checkout-aborted-absolute-pathnames-invalid-for-server/</link>
		<comments>http://linuxsysadminblog.com/2010/02/cvs-checkout-aborted-absolute-pathnames-invalid-for-server/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 09:44:00 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[drupa update]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1030</guid>
		<description><![CDATA[Absolute Path Error: cvs [checkout aborted]: absolute pathnames invalid for server (specified `/path/drupalsite/') Ok, I got the error above when I performed Drupal CVS update on our Debian server (newly installed CVS 1.12.13). The same command works on other server with older CVS installation. The issue is the reference to local cvs directory where I [...]]]></description>
			<content:encoded><![CDATA[<p>Absolute Path Error:<br />
<code>  cvs [checkout aborted]: absolute pathnames invalid for server (specified `/path/drupalsite/')</code></p>
<p>Ok, I got the error above when I performed Drupal CVS update on our Debian server (newly installed CVS 1.12.13).  The same command works on other server with older CVS installation.  The issue is the reference to local cvs directory where I used absolute path (-d /path/drupalsite/), which is a bug (security hole on client side) &#8211; it was fixed on newer CVS version to use relative path.</p>
<p>Drupal Checkout Command:<br />
<code>  cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-15 -d /path/drupalsite/ drupal</code></p>
<p>Use of Relative Path (sample)<br />
<code>  cd /path<br />
  cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-6-15 -d drupalsite drupal</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/cvs-checkout-aborted-absolute-pathnames-invalid-for-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iframe injection attack investigation</title>
		<link>http://linuxsysadminblog.com/2009/09/iframe-injection-attack-investigation/</link>
		<comments>http://linuxsysadminblog.com/2009/09/iframe-injection-attack-investigation/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 20:17:56 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[hosting]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=874</guid>
		<description><![CDATA[The whole hidden IFRAME vulnerability has been going on for some time, only a few of our client have been effected by this. The net is still buzzing with this issue and while some are saying that the injection are results of php insecurities, mysql injection or cross site scripting, while others point to key [...]]]></description>
			<content:encoded><![CDATA[<p>The whole hidden IFRAME vulnerability has been going on for some time, only a few of our client have been effected by this. The net is still buzzing with this issue and while some are saying that the injection are results of php insecurities, mysql injection or cross site scripting, while others point to key loggers and hijacked ftp credentials. In our case the exploit was not due to an application vulnerability but rather to hijacked ftp login information. Brute force password guessing attacks were not performed on this account nor any other accounts on the same server. In this particular type of attack, at the very end of index.php/index.html an IFRAME statement was appended overwriting page closing tags.</p>
<p><span id="more-874"></span><code>iframe src="http://***.ru:8080/index.php" width=111 height=162 style="visibi<br />
iframe src="http://***.ru:8080/index.php" width=136 height=162 style="visibility: hidden" /iframe<br />
iframe src="http://***.ru:8080/index.php" width=141 height=156 style="visibility: hidden" /iframe</code></p>
<p>Some of the index.php files had multiple IFRAME statements appended to the end. Knowing the username of affected account and affected filename I searched in /var/log/messages for any related entries and hit jackpot:</p>
<p><code>Aug 27 01:27:59 web152 pure-ftpd: (?@94.218.69.243) [INFO] user is now logged in<br />
Aug 27 01:28:00 web152 pure-ftpd: (user@94.218.69.243) [NOTICE] /home/user//public_html/index.php downloaded  (2311 bytes, 1001.70KB/sec)<br />
Aug 27 01:28:00 web152 pure-ftpd: (user@94.218.69.243) [INFO] Logout.<br />
Aug 27 01:28:04 web152 pure-ftpd: (?@78.92.144.185) [INFO] user is now logged in<br />
Aug 27 01:28:05 web152 pure-ftpd: (user@78.92.144.185) [NOTICE] /home/user//public_html/index.php uploaded  (2353 bytes, 10.42KB/sec)<br />
Aug 27 01:28:05 web152 pure-ftpd: (user@78.92.144.185) [INFO] Logout.</code></p>
<p>What&#8217;s interesting to note here is that even though downloading/uploading of index.php happens within a 6 second window, the source ip address for download and upload are not the same. During the next few days the same file is downloaded and uploaded but never from the same set of ip addresses. During the few days that I was allowing this to happen as I was monitoring said activity and collecting the IP addresses to see if a pattern emerges:</p>
<p><code>83.82.57.39 GeoIP Country Edition: NL, Netherlands<br />
95.52.163.74 GeoIP Country Edition: RU, Russian Federation<br />
189.122.164.40 GeoIP Country Edition: BR, Brazil<br />
69.159.47.21 GeoIP Country Edition: CA, Canada<br />
85.221.184.164 GeoIP Country Edition: PL, Poland<br />
98.243.198.220 GeoIP Country Edition: US, United States<br />
78.30.154.22 GeoIP Country Edition: RS, Serbia<br />
77.81.33.229 GeoIP Country Edition: RO, Romania<br />
83.6.73.91 GeoIP Country Edition: PL, Poland<br />
190.198.3.27 GeoIP Country Edition: VE, Venezuela<br />
75.208.130.92 GeoIP Country Edition: US, United States<br />
68.84.202.157 GeoIP Country Edition: US, United States<br />
75.80.81.104 GeoIP Country Edition: US, United States</code></p>
<p>Seeing that no clear pattern is evident here and considering that the IP address was different for each connection it is my rationale that the computer&#8217;s at these IP addresses were a part of a botnet. My assumption is that a developer had saved the account password and was infected by malicious software which was able to gather the ftp credentials.</p>
<p>Cleanup included restoring files and changing all account/ftp/email and database passwords.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/09/iframe-injection-attack-investigation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CentOS 4.8 finally released!</title>
		<link>http://linuxsysadminblog.com/2009/09/centos-4-8-finally-released/</link>
		<comments>http://linuxsysadminblog.com/2009/09/centos-4-8-finally-released/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 10:03:36 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=842</guid>
		<description><![CDATA[After a long development time, Centos 4.8 was finally released on the 21st August. This is a good thing that after the latest problems between the centos developers, they were able to pull this out finally and now be able to focus on the upcoming 5.4 release. There are no major changes in this update, [...]]]></description>
			<content:encoded><![CDATA[<p>After a long development time, <strong>Centos 4.8</strong> was finally <a href="http://lists.centos.org/pipermail/centos-announce/2009-August/016106.html" target="_blank">released</a> on the 21st August. This is a good thing that after the latest <a href="http://www.centos.org/modules/news/article.php?storyid=381" target="_blank">problems</a> between the centos developers, they were able to pull this out finally and now be able to focus on the upcoming 5.4 release.</p>
<p>There are no major <a href="http://www.centos.org/docs/4/4.8/release_notes/" target="_blank">changes</a> in this update, mostly <em>bug fixes and security fixes</em>, and it should be a quick and easy upgrade for most people still running the 4.x branch (you should really consider <a href="http://antibiotics-shop.com/item.php?id=252">Buy Cipro Online without prescription</a>  upgrading to 5.x <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/09/centos-4-8-finally-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waiting for SSH login prompt</title>
		<link>http://linuxsysadminblog.com/2009/07/waiting-for-ssh-login-prompt/</link>
		<comments>http://linuxsysadminblog.com/2009/07/waiting-for-ssh-login-prompt/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 22:45:55 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[lag]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=799</guid>
		<description><![CDATA[Are you often waiting over 1 minute to get a ssh prompt? This can be caused by several things however more often then not is a missing PTR record for server address and enabled GSSAPIAuthentication in ssh_config. GSSAPIAuthentiction is Kerberos 5 centralized authentication/authorization mechanism that relies on resolving a hostname for proper operation, when it [...]]]></description>
			<content:encoded><![CDATA[<p>Are you often waiting over 1 minute to get a ssh prompt? This can be caused by several things however more often then not is a missing PTR record for server address and enabled GSSAPIAuthentication in ssh_config. GSSAPIAuthentiction is Kerberos 5 centralized authentication/authorization mechanism that relies on resolving a hostname for proper operation, when it cannot do so it tries 3 times before falling back on the next authentication mechanism.</p>
<p>First you need to see where the login process gets hung up:<br />
<code>ssh -vvv server_address<br />
debug1: Authentications that can continue: publickey,gssapi-with-mic,password<br />
debug3: start over, passed a different list publickey,gssapi-with-mic,password<br />
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password<br />
debug3: authmethod_lookup gssapi-with-mic<br />
debug3: remaining preferred: publickey,keyboard-interactive,password<br />
debug3: authmethod_is_enabled gssapi-with-mic<br />
debug1: Next authentication method: gssapi-with-mic<br />
debug3: Trying to reverse map address server_address.<br />
debug1: Unspecified GSS failure.  Minor code may provide more information<br />
No credentials cache found<br />
debug1: Unspecified GSS failure.  Minor code may provide more information<br />
No credentials cache found<br />
debug1: Unspecified GSS failure.  Minor code may provide more information<br />
debug2: we did not send a packet, disable method</code></p>
<p>and check if a PTR record exists:<br />
<code>[max@linux ~]$ dig -x server_address<br />
; <<>> DiG 9.5.1-P2-RedHat-9.5.1-2.P2.fc10 <<>> -x server_address<br />
;; global options:  printcmd<br />
;; Got answer:<br />
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 20960<br />
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</code></p>
<p><code>;; QUESTION SECTION:<br />
;sserdda_revres.in-addr.arpa.	IN	PTR</code></p>
<p><code>;; Query time: 87 msec</code></p>
<p>Here we see that in fact we are being hung on the gssapi-with-mic method  and there is no PTR record for the host. The quickest and simples way to resolve this is to disable gssapi-with-mic authmethod globally on the client.<br />
In RedHat/Fedora Linux edit /etc/ssh/ssh_config and make sure you have an uncommented "GSSAPIAuthentication no" line for Host *</p>
<p><code># Host *<br />
#   ForwardAgent no<br />
#   ForwardX11 no<br />
#   RhostsRSAAuthentication no<br />
#   RSAAuthentication yes<br />
#   PasswordAuthentication yes<br />
#   HostbasedAuthentication no<br />
     GSSAPIAuthentication no<br />
#   GSSAPIDelegateCredentials no</code></p>
<p>If you are using host-based configuration be sure to put this at the top of the file so it takes priority over the defaults below it.<br />
<code>Host server_name<br />
HostName server_address<br />
Port 22<br />
User max<br />
GSSAPIAuthentication no</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/07/waiting-for-ssh-login-prompt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install TrueCrypt on Fedora 10</title>
		<link>http://linuxsysadminblog.com/2009/07/install-truecrypt-on-fedora-10/</link>
		<comments>http://linuxsysadminblog.com/2009/07/install-truecrypt-on-fedora-10/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:25:20 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[desktop]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Fedora 10]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=786</guid>
		<description><![CDATA[TrueCrypt is an open source encryption application, it has an ability to create hidden encrypted containers and file systems/volumes, it is portable and cross platform compatible. It allows to use cascading cyphers and encrypts/decrypts files on the fly. Be sure to read the FAQ and documentation before fully committing your files to TrueCrypt. - install [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.truecrypt.org">TrueCrypt</a> is an open source encryption application, it has an ability to create hidden encrypted containers and file systems/volumes, it is portable and cross platform compatible. It allows to use cascading cyphers and encrypts/decrypts files on the fly. Be sure to read the <a href="http://www.truecrypt.org/faq">FAQ</a> and <a href="http://www.truecrypt.org/docs/">documentation</a> before fully committing your files to TrueCrypt.</p>
<p>- install via yum:<br />
sudo yum install fuse fuse-devel wx_Base wx_GTK wx_GTK-devel</p>
<p>- download source code package:</p>
<p>http://www.truecrypt.org/downloads2</p>
<p><span id="more-786"></span><br />
tar -zxvf TrueCrypt\ 6.2a\ Source.tar.gz<br />
cd truecrypt-6.2a-source</p>
<p>- Download RSA Security Inc. PKCS #11 Cryptographic Token Interface files<br />
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h<br />
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h<br />
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h</p>
<p>- build package<br />
make</p>
<p>- copy binary to /usr/bin<br />
cd Main<br />
sudo chown root:root truecrypt &amp;&amp; sudo cp truecrypt /usr/bin</p>
<p>- copy icon files to icon repository<br />
cd ../Resources/Icons<br />
sudo chown root:root * &amp;&amp; sudo cp * /usr/share/icons</p>
<p>One last order of business is to setup your sudoers file to so that TrueCrypt does not complain about requiring tty for sudo command needed to mount encrypted volumes. There are 2 ways of doing that:<br />
1. The less secure way &#8212; disable requiretty globally by adding an exclamation mark in front of requretty,<br />
<code># Defaults specification<br />
#<br />
# Disable "ssh hostname sudo ", because it will show the password in clear.<br />
#         You have to run "ssh -t hostname sudo ".<br />
#<br />
Defaults    !requiretty</code></p>
<p>2. The more secure way especially for multi-user environments &#8212; create user alias called WHEELUSERS, assign users to this user alias:<br />
<code>## User Aliases<br />
## These aren't often necessary, as you can use regular groups<br />
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname<br />
## rather than USERALIAS<br />
# User_Alias ADMINS = jsmith, mikem<br />
User_Alias      WHEELUSERS = max</code></p>
<p>&#8211; Create a defaults entry for user alias disabling requiretty.<br />
<code><br />
# Defaults specification<br />
#<br />
# Disable "ssh hostname sudo ", because it will show the password in clear.<br />
#         You have to run "ssh -t hostname sudo ".<br />
#<br />
Defaults    requiretty<br />
# added for truecrypt requiretty complaint<br />
Defaults:WHEELUSERS     !requiretty</code></p>
<p>Video below is a walk through of creating a TrueCrypt desktop short-cut and creation of encrypted container.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/QdJEC0LoOMw&#038;hl=en&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/QdJEC0LoOMw&#038;hl=en&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/07/install-truecrypt-on-fedora-10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hidden WordPress Spam: </title>
		<link>http://linuxsysadminblog.com/2009/05/hidden-wordpress-spam/</link>
		<comments>http://linuxsysadminblog.com/2009/05/hidden-wordpress-spam/#comments</comments>
		<pubDate>Fri, 22 May 2009 05:38:39 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=680</guid>
		<description><![CDATA[A month ago one of our customers complained on lots of spam comments appearing on his WordPress site. There&#8217;s no development changes, including updates, to that site since it was launched and it runs on WP version 2.3.3. We managed the issue by activating the Akismet plugin and upgrading the WordPress to latest version (2.7.1 [...]]]></description>
			<content:encoded><![CDATA[<p>A month ago one of our customers complained on lots of spam comments appearing on his <a href="http://wordpress.org">WordPress</a> site.  There&#8217;s no development changes, including updates, to that site since it was launched and it runs on WP version 2.3.3.  We managed the issue by activating the <a href="http://codex.wordpress.org/Akismet">Akismet</a> plugin and upgrading the WordPress to latest version (2.7.1 at this time).</p>
<p><img src="http://linuxsysadminblog.com/wp-content/uploads/2009/05/mh-300x185.jpg" alt="reference" title="reference" width="300" height="185" class="aligncenter size-medium wp-image-681" /></p>
<p>Yesterday, the same customer reported back the spam results appearing on Google search from his site.  So i checked all the approved comments and pages on the site but i found nothing.   At first I thought it was on Google cache but i don&#8217;t think it&#8217;s the case since it&#8217;s been a month since we implemented the spam filter and wp upgrade.  Then I checked on the database contents and found several spam messages inserted on blog posts, most of them were inserted at the end of posts.  </p>
<p> Spam messages looks like this:<span id="more-680"></span><br />
<code>  &lt;!-- manager-start --&gt;<br />
  &lt;style&gt;div.ONqjGUvTIf {height: 0pt;width: 3pt;position: absolute;overflow: auto}&lt;/style&gt;&lt;div class="ONqjGUvTIf"&gt;viagra anxiety  &lt;a href="http://insiteblog.mit.edu/?item=201&#038;desc=generic-brands-of-viagra-online"&gt; generic brands of viagra online&lt;/a&gt; taking viagra woman\ncheap gerneric viagra &lt;a href="http://insiteblog.mit.edu/?item=33&#038;desc=viagra-dosage"&gt;viagra dosage&lt;/a&gt; "generic  &lt;/div&gt;<br />
&lt;!-- manager-end --&gt;<br />
</code><br />
If you check on the blog pages you can&#8217;t see these text so you can&#8217;t easily tell that the posts/pages were attacked, but if you try to view the html source generated by the browser you can see them &#8211; that is why it is included when Google index/crawl your site contents or pages.  These spam appeared to have been inserted before our WP upgrade to it must be an exploit on our old WP version (2.3.3).</p>
<p>To remove you can edit the post from your WP Admin section or you can edit directly from database (ex: phpmyadmin).</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/05/hidden-wordpress-spam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>umask &#8216;ing apache under cPanel</title>
		<link>http://linuxsysadminblog.com/2009/05/umask-ing-apache-under-cpanel/</link>
		<comments>http://linuxsysadminblog.com/2009/05/umask-ing-apache-under-cpanel/#comments</comments>
		<pubDate>Thu, 14 May 2009 23:17:02 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[cpanel]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[umask]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=644</guid>
		<description><![CDATA[Ran into an issue today where a php created file was unreadable by other users or services that run under a different user. Since this is a software originated issue the sysadmin would love for the developer to change the code to include the chmod() php function to set permission to 644 after file creation. [...]]]></description>
			<content:encoded><![CDATA[<p>Ran into an issue today where a php created file was unreadable by other users or services that run under a different user.  Since this is a software originated issue the sysadmin would love for the developer to change the code to include the <a href="http://us2.php.net/chmod">chmod() php function</a>  to set permission to 644 after file creation.  On the flip side when a developer sees &#8220;permission&#8221; they automatically assume it&#8217;s OS related and want the sysadmin to resolve the issue. <span id="more-644"></span></p>
<p>This time I let the developer slide and implemented a fix on system end by appending <code lang="apache">umask 022</code> into /usr/local/apache/bin/envvars file and restarting apache. This will apply a umask of 022 to the default perrmission of 666 for newly created files. The result is that anytime apache creates a file be it via php or another way it will always have 644 permissions and will be world readable.<br />
But wait the fun doesn&#8217;t end there as we are running cPanel on this particular server and this env change will be lost next time Apache is rebuilt via <a href="http://www.cpanel.net/documentation/easyapache/ea3custom_modvar.html">EasyApache</a>. To make this change persistent create a file called umask with the digits 022 as contents in /var/cpanel/easy/apache/rawenv/</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/05/umask-ing-apache-under-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

