<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: More Basic MySQL Security</title>
	<atom:link href="http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/feed/" rel="self" type="application/rss+xml" />
	<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/</link>
	<description>Expert times and information on MySQL</description>
	<lastBuildDate>Fri, 12 Mar 2010 22:45:29 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shlomi Noach</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-556</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Wed, 03 Jun 2009 04:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-556</guid>
		<description>Following Lenz&#039; comment and post, I stand corrected and am very surprised.
Thanks for shedding some light!</description>
		<content:encoded><![CDATA[<p>Following Lenz&#8217; comment and post, I stand corrected and am very surprised.<br />
Thanks for shedding some light!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lenz Grimmer</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-552</link>
		<dc:creator>Lenz Grimmer</dc:creator>
		<pubDate>Tue, 02 Jun 2009 13:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-552</guid>
		<description>Somehow backtracking to this blog entry failed - I wrote a short blog entry with more details about the password obfuscation in the process list here:
http://www.lenzg.net/archives/256-Basic-MySQL-Security-Providing-passwords-on-the-command-line.html</description>
		<content:encoded><![CDATA[<p>Somehow backtracking to this blog entry failed &#8211; I wrote a short blog entry with more details about the password obfuscation in the process list here:<br />
<a href="http://www.lenzg.net/archives/256-Basic-MySQL-Security-Providing-passwords-on-the-command-line.html" rel="nofollow">http://www.lenzg.net/archives/256-Basic-MySQL-Security-Providing-passwords-on-the-command-line.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lenz Grimmer</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-551</link>
		<dc:creator>Lenz Grimmer</dc:creator>
		<pubDate>Tue, 02 Jun 2009 10:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-551</guid>
		<description>Shlomi: &quot;ps aux&quot; does not actually reveal the password. The mysql command line client obfuscates it - if you check the output of &quot;ps aux &#124; grep mysql&quot; you will see, that the password string has been replaced with &quot;xxxxx&quot;.</description>
		<content:encoded><![CDATA[<p>Shlomi: &#8220;ps aux&#8221; does not actually reveal the password. The mysql command line client obfuscates it &#8211; if you check the output of &#8220;ps aux | grep mysql&#8221; you will see, that the password string has been replaced with &#8220;xxxxx&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Noach</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-550</link>
		<dc:creator>Shlomi Noach</dc:creator>
		<pubDate>Sat, 30 May 2009 17:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-550</guid>
		<description>Hi,

Shameless promotion: please check out &lt;a href=&quot;http://code.openark.org/forge/openark-kit/oak-security-audit&quot; rel=&quot;nofollow&quot;&gt;oak-secutiry-audit&lt;/a&gt;, a utility which audits your MySQL installation against many security holes and weaknesses, covering empty passwords, duplicate passwords, permissive grants, weak configuration etc.

While Linux security is often considered good, an astonishing weakness is &quot;ps aux&quot;, where *every* user can see *every* process running. Therefore, even user &quot;games&quot; can see that user root is running &quot;mysql -pmypassword&quot;.
I find this a much higher risk than putting the MySQL&#039;s root password in file, where a user need to gain access to machine&#039;s &quot;root&quot;.

Still, linux security is by far higher than MySQL security (I have no proof for this, just the common understanding). If you chmod 600 /root/.my.cnf, may be move it to /root/surprise/unexpected.filename (who says it&#039;s to be called my.cnf?), you add some more confusion (though still easily hacked by the experienced).

Obviously, for specific cronjob tasks, just create the required users with limited privileges, never with GRANT OPTION. However, I find that for many tasks, the abused SUPER privilege is required, which allows for nasty stuff like KILL etc.).</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Shameless promotion: please check out <a href="http://code.openark.org/forge/openark-kit/oak-security-audit" rel="nofollow">oak-secutiry-audit</a>, a utility which audits your MySQL installation against many security holes and weaknesses, covering empty passwords, duplicate passwords, permissive grants, weak configuration etc.</p>
<p>While Linux security is often considered good, an astonishing weakness is &#8220;ps aux&#8221;, where *every* user can see *every* process running. Therefore, even user &#8220;games&#8221; can see that user root is running &#8220;mysql -pmypassword&#8221;.<br />
I find this a much higher risk than putting the MySQL&#8217;s root password in file, where a user need to gain access to machine&#8217;s &#8220;root&#8221;.</p>
<p>Still, linux security is by far higher than MySQL security (I have no proof for this, just the common understanding). If you chmod 600 /root/.my.cnf, may be move it to /root/surprise/unexpected.filename (who says it&#8217;s to be called my.cnf?), you add some more confusion (though still easily hacked by the experienced).</p>
<p>Obviously, for specific cronjob tasks, just create the required users with limited privileges, never with GRANT OPTION. However, I find that for many tasks, the abused SUPER privilege is required, which allows for nasty stuff like KILL etc.).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-553</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 29 May 2009 23:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-553</guid>
		<description>if you&#039;re root, you can already own a MySQL database with fairly basic knowledge with or without a mysql &#039;root&#039; account. :)   Using .cnf files is much preferred to using -p and (as Morgan pointed out) having this exposed and logged in various ways.</description>
		<content:encoded><![CDATA[<p>if you&#8217;re root, you can already own a MySQL database with fairly basic knowledge with or without a mysql &#8216;root&#8217; account. <img src='http://ronaldbradford.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    Using .cnf files is much preferred to using -p and (as Morgan pointed out) having this exposed and logged in various ways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Ljungstrom</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-555</link>
		<dc:creator>Erik Ljungstrom</dc:creator>
		<pubDate>Fri, 29 May 2009 22:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-555</guid>
		<description>While I agree with Morgan in principle, setting a password will stop your average &quot;curious teenage hacker&quot; from causing trouble because he was given the opportunity, but would of course not stop someone even reasonably novice, yet determined to sabotage or steal data.

But yes, ~/.bash_history and ~/.mysql_history is indeed another thing to bear in mind for the security conscious person!</description>
		<content:encoded><![CDATA[<p>While I agree with Morgan in principle, setting a password will stop your average &#8220;curious teenage hacker&#8221; from causing trouble because he was given the opportunity, but would of course not stop someone even reasonably novice, yet determined to sabotage or steal data.</p>
<p>But yes, ~/.bash_history and ~/.mysql_history is indeed another thing to bear in mind for the security conscious person!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morgan Tocker</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-554</link>
		<dc:creator>Morgan Tocker</dc:creator>
		<pubDate>Fri, 29 May 2009 20:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-554</guid>
		<description>So you say that you shouldn&#039;t keep the root password in a file that only root can read, but you don&#039;t mention that the *same user* has the permissions to just restart the server with a --init-file to change the password, skip grants, or create a new user with just as powerful permissions?

In your example the password also ends up in the bash history file :p

I&#039;ve never liked having to enter passwords to a service I should already have permissions to.  It encourages people to use things that they can remember easily, which generally means that the passwords are weak, or repeated elsewhere.</description>
		<content:encoded><![CDATA[<p>So you say that you shouldn&#8217;t keep the root password in a file that only root can read, but you don&#8217;t mention that the *same user* has the permissions to just restart the server with a &#8211;init-file to change the password, skip grants, or create a new user with just as powerful permissions?</p>
<p>In your example the password also ends up in the bash history file :p</p>
<p>I&#8217;ve never liked having to enter passwords to a service I should already have permissions to.  It encourages people to use things that they can remember easily, which generally means that the passwords are weak, or repeated elsewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaka Jančar</title>
		<link>http://ronaldbradford.com/blog/more-basic-mysql-security-2009-05-29/comment-page-1/#comment-549</link>
		<dc:creator>Jaka Jančar</dc:creator>
		<pubDate>Fri, 29 May 2009 19:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://ronaldbradford.com/blog/?p=1518#comment-549</guid>
		<description>If someone has access to the unix root account, then they can change the root mysql password anyways.

What&#039;s more insecure is passing password as an argument to MySQL, like you&#039;ve written (-p[password]), since that can really be seen by anyone.</description>
		<content:encoded><![CDATA[<p>If someone has access to the unix root account, then they can change the root mysql password anyways.</p>
<p>What&#8217;s more insecure is passing password as an argument to MySQL, like you&#8217;ve written (-p[password]), since that can really be seen by anyone.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
