<?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>Admins Goodies &#187; security</title>
	<atom:link href="http://adminsgoodies.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminsgoodies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 24 May 2013 16:33:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to create a limited “domain admin” that does not have access to domain controllers?</title>
		<link>http://adminsgoodies.com/how-to-create-a-limited-domain-admin-that-does-not-have-access-to-domain-controllers/</link>
		<comments>http://adminsgoodies.com/how-to-create-a-limited-domain-admin-that-does-not-have-access-to-domain-controllers/#comments</comments>
		<pubDate>Thu, 16 May 2013 16:34:01 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[active-directory]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-to-create-a-limited-domain-admin-that-does-not-have-access-to-domain-controllers/</guid>
		<description><![CDATA[I&#8217;m looking to create an account similar to a Domain Admin, but without access to domain controllers. In other words, this account will have full Administrator rights to any client machine in the domain, be able to add machines to the domain, but have only limited user rights to the servers. This account will be used by a person in an end-user tech support kind of role. They should have full access to client machines [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m looking to create an account similar to a Domain Admin, but without access to domain controllers.  In other words, this account will have full Administrator rights to any client machine in the domain, be able to add machines to the domain, but have only limited user rights to the servers.</p>
<p>This account will be used by a person in an end-user tech support kind of role.  They should have full access to client machines for installing drivers, applications, etc&#8230; but I don&#8217;t want them on the servers.</p>
<p>While I could probably throw something together myself via policy, it&#8217;ll probably be messy so I figured I should ask: What&#8217;s the <strong>proper</strong> way to go about this?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/2189/boden" target="_blank">Boden</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>We do something similar to this in our remote offices.  First, create a group for the psuedo-admins in the domain.  In AD, delegate control to the OU&#8217;s they may need to manage (create/delete accounts, or maybe just reset passwords, or nothing at all).</p>
<p>Then use Group Policy to add your group to the local administrators group on the workstations and servers using <strong>Computer\Windows Settings\Security Settings\Restricted Groups</strong>.  Do not deploy this policy to the Domain Controllers OU or the OUs containing your servers.</p>
<p>This obviously depends on having a AD configured in a manner to separate the client systems from the servers.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/5391/doug-luxem" target="_blank">Doug Luxem</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/83686/how-to-create-a-limited-domain-admin-that-does-not-have-access-to-domain-contr" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-to-create-a-limited-domain-admin-that-does-not-have-access-to-domain-controllers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>REJECT vs DROP when using iptables</title>
		<link>http://adminsgoodies.com/reject-vs-drop-when-using-iptables/</link>
		<comments>http://adminsgoodies.com/reject-vs-drop-when-using-iptables/#comments</comments>
		<pubDate>Wed, 08 May 2013 16:33:51 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/reject-vs-drop-when-using-iptables/</guid>
		<description><![CDATA[Is there any reason why I would want to have iptables -A INPUT -j REJECT instead of iptables -A INPUT -j DROP Asked by Mike B As a general rule, use REJECT when you want the other end to know the port is unreachable&#8217; use DROP for connections to hosts you don&#8217;t want people to see. Usually, all rules for connections inside your LAN should use REJECT. For the Internet, With the exception of ident [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Is there any reason why I would want to have </p>
<pre class="prettyprint"><code>iptables -A INPUT -j REJECT
</code></pre>
<p>instead of </p>
<pre class="prettyprint"><code>iptables -A INPUT -j DROP
</code></pre>
<div class="author">Asked by <a href="http://serverfault.com/users/21875/mike-b" target="_blank">Mike B</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>As a general rule, use REJECT when you want the other end to know the port is unreachable&#8217; use DROP for connections to hosts you don&#8217;t want people to see.</p>
<p>Usually, all rules for connections inside your LAN should use REJECT. For the Internet,  With the exception of ident on certain servers, connections from the Internet are usually DROPPED.</p>
<p>Using DROP makes the connection appear to be to an unoccupied IP address.  Scanners may choose not to continue scanning addresses which appear unoccupied.  Given that NAT can be used to redirect a connection on the firewall, the existence of a well known service does not necessarily indicate the existence of a server on an address.</p>
<p>Ident should be passed or rejected on any address providing SMTP service.  However, use of Ident look-ups by SMTP serves has fallen out of use.  There are chat protocols which also rely on a working ident service. </p>
<div class="author">Answered by <a href="http://serverfault.com/users/36241/billthor" target="_blank">BillThor </a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/157375/reject-vs-drop-when-using-iptables" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/reject-vs-drop-when-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is this a &#8216;port scan&#8217;?</title>
		<link>http://adminsgoodies.com/is-this-a-port-scan/</link>
		<comments>http://adminsgoodies.com/is-this-a-port-scan/#comments</comments>
		<pubDate>Fri, 22 Mar 2013 16:34:45 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[brute-force-attacks]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/is-this-a-port-scan/</guid>
		<description><![CDATA[Is it still considered a &#8216;port scan&#8217; to have scripts trying to SSH in with a list of common account names or trying multiple passwords for &#8216;root&#8217; or &#8216;mail&#8217; (or similar)? I&#8217;m hoping to find a way to block these but I&#8217;m at a loss as to what to search for. When I imagine the term port scan I think of using NMAP (or equivalent) to find what&#8217;s open in iptables. Just curious if this [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Is it still considered a &#8216;port scan&#8217; to have scripts trying to SSH in with a list of common account names or trying multiple passwords for &#8216;root&#8217; or &#8216;mail&#8217; (or similar)? I&#8217;m hoping to find a way to block these but I&#8217;m at a loss as to what to search for.</p>
<p>When I imagine the term <code>port scan</code> I think of using NMAP (or equivalent) to find what&#8217;s open in iptables. Just curious if this falls under the same category.</p>
<p>Some of my systems are logging several thousand per day. It&#8217;s annoying. </p>
<p>Systems are all CentOS / RHEL. </p>
<p>EDIT: iptables &#8216;limiting&#8217; looks v promising. In the end I may have to setup a VPN for all the valid traffic and use something like &#8216;fail2ban&#8217; on my public servers.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/72780/ethrbunny" target="_blank">ethrbunny</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>The search term you need here is probably something like &#8220;block failed ssh login attempts&#8221; or &#8220;block brute force ssh&#8221; or even &#8220;stop malicious ssh logins&#8221;.</p>
<p>A very popular tool to stop these is <a href="http://www.fail2ban.org/wiki/index.php/Main_Page" rel="nofollow">fail2ban</a>. It can watch your logs for failed SSH login attempts and block the offending IP after a number of failures for a certain amount of time.</p>
<hr />
<p>Some other tips to beef up your SSH security:</p>
<ol>
<li>Disable direct root login if you haven&#8217;t already.</li>
<li>Disable password authentication and use public key authentication instead.</li>
<li>Use a non-standard port. You could use something like 2222 or preferably something even less obvious.</li>
<li>Block failed attempts using fail2ban.</li>
<li>Implement <a href="https://www.linux.com/learn/tutorials/351079%3aweekend-project-secure-your-system-with-port-knocking" rel="nofollow">port knocking</a>. This is perhaps a bit overkill but if implemented it can bring your failed login attempts down to essentially zero.</li>
</ol>
<div class="author">Answered by <a href="http://serverfault.com/users/49297/kenny-rasschaert" target="_blank">Kenny Rasschaert</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/490425/is-this-a-port-scan" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/is-this-a-port-scan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices for updating a previously unmaintained server RHEL5.7</title>
		<link>http://adminsgoodies.com/best-practices-for-updating-a-previously-unmaintained-server-rhel5-7/</link>
		<comments>http://adminsgoodies.com/best-practices-for-updating-a-previously-unmaintained-server-rhel5-7/#comments</comments>
		<pubDate>Mon, 04 Mar 2013 17:34:12 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[production-environment]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/best-practices-for-updating-a-previously-unmaintained-server-rhel5-7/</guid>
		<description><![CDATA[A new RedHat EL5.6 server has been recently put under my care. It is immediately obvious that, for the previous 12 months, little to no attention has been given to any sort of package updates. Typically I am of the mindset of if it isn&#8217;t broke &#8211; don&#8217;t fix it. However, after registering the server with RHN, and also using the yum-security plugin to check security updates, there are just over 1100 &#8220;security&#8221; updates available. [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>A new RedHat EL5.6 server has been recently put under my care.  It is immediately obvious that, for the previous 12 months, little to no attention has been given to any sort of package updates.</p>
<p>Typically I am of the mindset of if it isn&#8217;t broke &#8211; don&#8217;t fix it.  However, after registering the server with RHN, and also using the yum-security plugin to check security updates, there are just over 1100 &#8220;security&#8221; updates available.</p>
<p>Has anybody had a similar situation?  I am reluctant to just update everything, as I like to know what is being updated and whether or not it has the potential to impact anything running on the box (this is a production server).  However, it also looks like keeping in line with this practice would require me to go through 1100 package errata line by line.  Is there a more efficient solution?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/87409/tdk2fe" target="_blank">tdk2fe</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Generally speaking speaking security updates are considered to be somewhat safe, particularly for a distribution with goals like RedHat. Their core focus is creating an operating environment that is consistent. As such the maintainers tend to pick versions of packages and stick with them for the long haul. To see what I mean look at the versions of such packages like <code>kernel</code>, <code>python</code>, <code>perl</code>, and <code>httpd</code>. What they also do is backport security patches from the upstream developers. So if a security vulnerability is found for all versions of Apache httpd 2.2.x then the Apache foundation may release version 2.2.40 with the fix, but RedHat will roll the patch locally and release <code>httpd-2.2.3-80</code> with the fix.</p>
<p>Also keep in mind that you&#8217;re currently talking about a RHEL5.7 system, the current release is 5.9. Some software vendors will only support certain subreleases. I&#8217;ve recently come across one piece of software, for example, that the vendor says only works on 5.4. That doesn&#8217;t mean it <em>won&#8217;t</em> run on 5.9, but it may mean that they won&#8217;t provide any support it if <em>doesn&#8217;t</em> work.</p>
<p>There are also concerns with doing mass updates of a system that hasn&#8217;t been patched in such a long time. The biggest one that I&#8217;ve come across is actually more of a configuration management problem that can just be exacerbated by big updates. Sometimes a config file is changed but the administrator never restarts the service. This means that the config on disk has never been tested, and the running config may no longer exist. So if the service gets restarted, which will happen once you apply the kernel updates, it may not actually restart. Or it may act different <em>once</em> it restarts.</p>
<p>My advice, would be to do the updates, but be smart about it. </p>
<ul>
<li>Plan it out during a maintenance window. If nothing else the server will require restarting, there have been a number of kernel updates and you will have to reboot to apply them.</li>
<li>Make sure to take a full backup before doing anything. This could be snapshotting, if this is a VM, triggering a full backup on whatever your tool is, tarring up <code>/</code> (to another system), taking a <code>dd</code> image of the drives, whatever. Just so long as it&#8217;s something you can restore from.</li>
<li>Plan out <em>how</em> you apply the updates. You don&#8217;t want to just throw a <code>yum update -y</code> at it and walk away. For all of the good things that yum does do it does <em>not</em> order when it applies updates according to the dependencies. This has caused problems in the past. I always run <code>yum clean all &amp;&amp; yum update -y yum &amp;&amp; yum update -y glibc &amp;&amp; yum update</code>. That tends to take care of most of the potential ordering issues. </li>
</ul>
<p>This may also be a great time to replatform. We&#8217;ve had RHEL6 for quite a while now. Depending on what this server does, it may make sense to just let this one run as is while you bring up a new instance in parallel. Then once it&#8217;s installed you can copy all the data over, test the services, and perform the cut over. This will also give you the chance to know, from the ground up, that the system is standardized, clean, well documented, and all that jazz.</p>
<p>No matter what you do, I feel it&#8217;s pretty important that you get yourself up to a current system. You just need to make sure to do it in a way that lets you trust your work and the finished product.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/3356/scott-pack" target="_blank">Scott Pack</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/484472/best-practices-for-updating-a-previously-unmaintained-server-rhel5-7" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/best-practices-for-updating-a-previously-unmaintained-server-rhel5-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What does a standard tech audit include and what is a reasonable price for it?</title>
		<link>http://adminsgoodies.com/what-does-a-standard-tech-audit-include-and-what-is-a-reasonable-price-for-it/</link>
		<comments>http://adminsgoodies.com/what-does-a-standard-tech-audit-include-and-what-is-a-reasonable-price-for-it/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 17:33:57 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[audit]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[technical-support]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/what-does-a-standard-tech-audit-include-and-what-is-a-reasonable-price-for-it/</guid>
		<description><![CDATA[I am a programmer, but the company I am working for has been growing and has outgrown the 2 man IT contractor team that has been servicing us. We are looking into several different solutions for our IT needs now (smallish company 30 computers, 3 servers). I have been presented with a proposal from an IT company for a Tech Audit. The problem is I don&#8217;t know if they are covering all of the bases [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I am a programmer, but the company I am working for has been growing and has outgrown the 2 man IT contractor team that has been servicing us. </p>
<p>We are looking into several different solutions for our IT needs now (smallish company 30 computers, 3 servers).</p>
<p>I have been presented with a proposal from an IT company for a Tech Audit. The problem is I don&#8217;t know if they are covering all of the bases that they should, and if they are quoting us a reasonable price. </p>
<p>Here is a list of what they say is included in their tech audit:</p>
<p><strong>IT Roadmap and Budget Plan</strong></p>
<ul>
<li>Immediate needs</li>
<li>Short term needs</li>
<li>Long term needs</li>
</ul>
<p><strong>Network information</strong></p>
<ul>
<li>Visio diagram of complete network</li>
<li>IP addresses</li>
<li>DHCP</li>
<li>Router</li>
<li>Firewall</li>
<li>Switches</li>
<li>Server Access</li>
<li>VPN / Remote Access</li>
<li>DNS</li>
<li>Wireless Connectivity</li>
<li>Website</li>
</ul>
<p><strong>Asset Inventory</strong></p>
<ul>
<li>Server (Warranty)</li>
<li>Application (email, line of business applications databases, accounting</li>
<li>Desktops</li>
<li>Storage</li>
<li>Software licensing and renewals</li>
<li>Printers / Toner</li>
</ul>
<p><strong>Security</strong></p>
<ul>
<li>Compliant with IT standards</li>
<li>Antivirus</li>
<li>Password Policies</li>
<li>Windows updates</li>
<li>Encryption</li>
<li>Physical Access</li>
<li>Content Filter</li>
</ul>
<p><strong>Backups and Disaster Recovery</strong></p>
<ul>
<li>Backup System</li>
<li>Test / restore</li>
<li>Recovery point Objectives</li>
<li>Recovery time objectives</li>
<li>UPS / battery backups</li>
</ul>
<p><strong>Telco and Phone System</strong></p>
<ul>
<li>Internet Provider</li>
<li>Bandwidth speed</li>
<li>Phone system</li>
</ul>
<p>I know what most of those are and I think they need to be checked but some of them I&#8217;m sorta in the dark on. Like &#8216;Compliant with IT standards&#8217; &#8212; what IT standards? Where would be best to look those up?</p>
<p>Finally they say that to do this they will charge us <strong>$3500</strong>. That&#8217;s a decent amount of change for a company our size. </p>
<p>So is that a fair price for the services listed? </p>
<p>Are there any glaring omissions from this list that should be included? </p>
<p>Is there anything that I should be aware of when determining if this company would be a good fit for our IT needs?<br />
(The tech audit would be a precursor for them becoming our permanent IT provider.) </p>
<div class="author">Asked by <a href="http://serverfault.com/users/133850/ryan" target="_blank">ryan</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I suspect this question is out-of-scope for Server Fault, since it&#8217;s really about scoping the delivery of IT services. Having said that, the scope seems reasonable (if a little &#8220;sales-ey&#8221;&#8211; &#8220;IT Standards&#8221;&#8230; heh heh). The scope seems inclusive enough to show that this isn&#8217;t this company&#8217;s first rodeo (or, alternatively, that they bought some rather inclusive sales template documents).</p>
<p>I couldn&#8217;t comment on pricing w/o knowing more about the metes and bounds of your infrastructure. It doesn&#8217;t seem out of line, just off the cuff. It depends on how much &#8220;stuff&#8221; you have and how thorough they&#8217;re going to be. Whether or not the report will be of use to you is probably more of a good factor to assess the value for the price paid.</p>
<p>I would ask to see a sample report that has coverage for all of the areas they intend to cover for you. (I prepare a sample for every type of report / audit that I provide as part of developing the &#8220;product&#8221; and I find it to be a handy &#8220;sales&#8221; tool.) This will give you an idea of how thorough they&#8217;re planning on being (and gives you a standard to hold  them to when you get your report).</p>
<p>I would evaluate the sample report to see if it is helpful as a standalone resource. If it doesn&#8217;t provide sufficient detail to be worth the cost then I&#8217;d be wary of purchasing the offering they&#8217;re proposing. I don&#8217;t think it&#8217;s sensible to pay them for delivering a service if, ultimately, the service only helps them scope the &#8220;opportunity&#8221; with you and doesn&#8217;t give you an actionable resource. I&#8217;ve seen &#8220;managed IT services&#8221; firms use reports like this as a way to start a contractual service arrangement. If it&#8217;s being &#8220;sold&#8221; as a report to you with usefulness that stands on its own, and not as just part of the contract fees for starting an IT support contract with this provider, I&#8217;d be very, very sure that the sample report stands up as being a useful resource on its own (and, if it doesn&#8217;t, I would immediately be suspicious of the &#8220;character&#8221; of the provider).</p>
<p>When I prepare audits for prospective Customers I impress upon them that my report can be taken to any vendor of IT services as part of a Request for Proposal. I think that&#8217;s the only honest way to do it. I write my report <em>hoping</em> that I&#8217;m going to be the future vendor to act on the report&#8217;s recommendations, but I don&#8217;t assume it. I prepare most of my reports as work-for-hire, with the Customer &#8220;owning&#8221; the report&#8217;s &#8220;intellectual property&#8221; after they pay for the report. You should find out what the license you&#8217;re going to receive is like to determine if you can redistribute, &#8220;remix&#8221;, or otherwise make use of the report for your own purposes.</p>
<p>IT services is a largely unregulated industry, and although there have been various attempts at &#8220;standardizing&#8221; the methodology and delivery of IT service provision (ITIL, etc), there is really no guarantee that any provider is going to follow any particular methodology or reporting standard. The onus is on you, as a consumer of IT services, to assess how applicable the services are to your needs.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/7200/evan-anderson" target="_blank">Evan Anderson</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/478445/what-does-a-standard-tech-audit-include-and-what-is-a-reasonable-price-for-it" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/what-does-a-standard-tech-audit-include-and-what-is-a-reasonable-price-for-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I check that a user password is locked?</title>
		<link>http://adminsgoodies.com/how-do-i-check-that-a-user-password-is-locked/</link>
		<comments>http://adminsgoodies.com/how-do-i-check-that-a-user-password-is-locked/#comments</comments>
		<pubDate>Mon, 11 Feb 2013 17:33:49 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-do-i-check-that-a-user-password-is-locked/</guid>
		<description><![CDATA[I used: usermod -L myUser to disable the password for this account. Assuming that I don&#8217;t know the password how do I check that it has been disabled. According to the man page it places ! in the front of the encrypted password, but I don&#8217;t know how to check that either. Asked by DarkSheep You can use the passwd utility to look at the status of the user&#8217;s password entry passwd -S user user [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I used:</p>
<pre class="prettyprint"><code>usermod -L myUser
</code></pre>
<p>to disable the password for this account.  Assuming that I don&#8217;t know the password how do I check that it has been disabled.  </p>
<p>According to the man page it places ! in the front of the encrypted password, but I don&#8217;t know how to check that either.  </p>
<div class="author">Asked by <a href="http://serverfault.com/users/157921/darksheep" target="_blank">DarkSheep</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>You can use the <a href="http://linux.die.net/man/1/passwd" rel="nofollow">passwd</a> utility to look at the status of the user&#8217;s password entry</p>
<pre class="prettyprint"><code>passwd -S user
user LK 2012-11-06 0 99999 7 -1 (Password locked.) (CentOS)
user L 01/22/2013 0 99999 7 -1 (Ubuntu)
</code></pre>
<p>The <strong>LK</strong> as well as the <strong>(Password Locked)</strong> text indicate a locked password entry on CentOS and <strong>L</strong> indicates a locked password entry on Ubuntu.</p>
<p>You can also use <a href="http://linux.die.net/man/1/getent" rel="nofollow">getent</a> to read the <a href="http://linux.die.net/man/5/shadow" rel="nofollow">shadow</a> database</p>
<pre class="prettyprint"><code>getent shadow user
user:!$6$ic7iX.Q2$q9K5gi5pOb...TJlhAIoKVJfAybADtv80:15650:0:99999:7:::
</code></pre>
<p>or you can just look at the shadow file yourself</p>
<pre class="prettyprint"><code>grep user /etc/shadow
user:!$6$ic7iX.Q2$q9K5gi5pOb...TJlhAIoKVJfAybADtv80:15650:0:99999:7:::
</code></pre>
<div class="author">Answered by <a href="http://serverfault.com/users/9517/iain" target="_blank">Iain</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/477517/how-do-i-check-that-a-user-password-is-locked" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-do-i-check-that-a-user-password-is-locked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Found special user in apache weblog called @^Y@.@{phqsp~{2&#8242;/2&#124;pq{jvk@-1(&#8216;@lvo)&amp;1&#8211;1.(/1)&#8217;@./*</title>
		<link>http://adminsgoodies.com/found-special-user-in-apache-weblog-called-y-phqsp22pqjvk-1lvo1-1-1/</link>
		<comments>http://adminsgoodies.com/found-special-user-in-apache-weblog-called-y-phqsp22pqjvk-1lvo1-1-1/#comments</comments>
		<pubDate>Fri, 25 Jan 2013 17:34:14 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[http-basic-authentication]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/found-special-user-in-apache-weblog-called-y-phqsp22pqjvk-1lvo1-1-1/</guid>
		<description><![CDATA[When checking the logfiles of some of my customers I found this as username for authenticated users. We have a .htusers file used for basic web auth, all other users in the serverlog I found in the .htusers, but not the @^Y@.@{phqsp~{2'/2&#124;pq{jvk@-1('@lvo)&#38;1--1.(/1)'@./* user. Server version is 2.2.22 on 64b Opensuse 12 First question: was this user able to receive the content protected by the .htusers file? Next one: anyone having more information about this break-in [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>When checking the logfiles of some of my customers I found this as username for authenticated users. We have a <code>.htusers</code> file used for basic web auth, all other users in the serverlog I found in the <code>.htusers</code>, but not the <code>@^Y@.@{phqsp~{2'/2|pq{jvk@-1('@lvo)&amp;1--1.(/1)'@./*</code> user. </p>
<p>Server version is 2.2.22 on 64b Opensuse 12</p>
<p><strong>First question:</strong> was this user able to receive the content protected by the <code>.htusers</code> file?</p>
<p><strong>Next one:</strong> anyone having more information about this break-in attempt? I found nothing on Google except lots of access-logs from all over the world.</p>
<p>Edit:<br />
Just to add the logentries:</p>
<p><code>x.y.z.x - @^Y@.@{phqsp~{2'/2|pq{jvk@-1('@lvo)&amp;1--1.(/1)'@./* [06/Jan/2013:16:53:16 +0000] "GET xxxxxxxxxxxxxxx HTTP/1.1" 200 676 "xxxxxxxxxxxxxxx" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML,                like Gecko) Chrome/23.0.1271.97 Safari/537.11"</code></p>
<p><code>x.y.z.x - @^Y@.@{phqsp~{2'/2|pq{jvk@-1('@lvo)&amp;1--1.(/1)'@./* [06/Jan/2013:16:53:16 +0000] "GET xxxxxxxxxxxxxxx HTTP/1.1" 200 523 "xxxxxxxxxxxxxxx" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML,                like Gecko) Chrome/23.0.1271.97 Safari/537.11"</code></p>
<p><code>x.y.z.x - @^Y@&amp;@{phqsp~{2'/2|pq{jvk@-1('@lvo)&amp;1--1.(/1)'@./* [06/Jan/2013:16:57:47 +0000] "GET xxxxxxxxxxxxxxx HTTP/1.1" 200 11 "xxxxxxxxxxxxxxx" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11"</code></p>
<div class="author">Asked by <a href="http://serverfault.com/users/155444/peter-stimpel" target="_blank">Peter Stimpel</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I think there&#8217;s some bad news if the xxxxxx&#8217;ed-out ressources are located in the protected area. The http status code 200 in your logs tells that your server has happily sent out the ressource to the client x.y.z.x. If basic-auth had failed in any way, a 401 (forbidden) would have been returned instead.</p>
<p>The number next to the <em>200</em> tells you how many bytes have been sent in the answer. Check if the ressources behind the xxxxxx&#8217;es are actually 676, 523 and 11 bytes in size for another hint if the data was successfully accessed.</p>
<p><strong>Update / Solution:</strong></p>
<p>As it turned out in the comments, the mentioned accesses were to ressources in unprotected areas, thus resulting in http status code 200 (OK). The confusing fact that a unknown user name is shown in the logs is due to the possibilty to set the &#8220;Authorization&#8221; header in a http request regardless of whether authorization was requested by the server at all or whether the username is known on the server. So apparently this is the work of some webcrawler or bot having set the auth header by default. Maybe innocent, maybe not, but obviously not as harmful as it seems at a first glance to the logfile.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/144503/karma-fusebox" target="_blank">Karma Fusebox</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/471169/found-special-user-in-apache-weblog-called-y-phqsp2-2pqjvk-1lvo1" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/found-special-user-in-apache-weblog-called-y-phqsp22pqjvk-1lvo1-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ordinary users are able to read /etc/passwd, is this a security hole?</title>
		<link>http://adminsgoodies.com/ordinary-users-are-able-to-read-etcpasswd-is-this-a-security-hole/</link>
		<comments>http://adminsgoodies.com/ordinary-users-are-able-to-read-etcpasswd-is-this-a-security-hole/#comments</comments>
		<pubDate>Wed, 23 Jan 2013 17:34:23 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/ordinary-users-are-able-to-read-etcpasswd-is-this-a-security-hole/</guid>
		<description><![CDATA[ls -l /etc/passwd gives $ ls -l /etc/passwd -rw-r--r-- 1 root root 1862 2011-06-15 21:59 /etc/passwd So an ordinary user can read the file. Is this a security hole? Asked by abc Actual password hashes are stored in /etc/shadow, which is not readable by regular users. /etc/passwd holds other information about user ids and shells that must be readable by all users for the system to function. Answered by Michael Check more discussion of this [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<pre class="prettyprint"><code>ls -l /etc/passwd
</code></pre>
<p>gives</p>
<pre class="prettyprint"><code>$ ls -l /etc/passwd
-rw-r--r-- 1 root root 1862 2011-06-15 21:59 /etc/passwd
</code></pre>
<p>So an ordinary user can read the file. Is this a security hole?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/78915/abc" target="_blank">abc</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Actual password hashes are stored in <code>/etc/shadow</code>, which is not readable by regular users.  <code>/etc/passwd</code> holds other information about user ids and shells that must be readable by all users for the system to function.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/66038/michael" target="_blank">Michael</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/286654/ordinary-users-are-able-to-read-etc-passwd-is-this-a-security-hole" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/ordinary-users-are-able-to-read-etcpasswd-is-this-a-security-hole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What to do when someone logged as root on my server</title>
		<link>http://adminsgoodies.com/what-to-do-when-someone-logged-as-root-on-my-server/</link>
		<comments>http://adminsgoodies.com/what-to-do-when-someone-logged-as-root-on-my-server/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 17:34:53 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh-keys]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/what-to-do-when-someone-logged-as-root-on-my-server/</guid>
		<description><![CDATA[I have a server running Debian 6.0 with logcheck installed. Yesterday ago, I received this message: Jan 19 19:15:10 hostname sshd[28397]: Authentication tried for root with correct key but not from a permitted host (host=4.red-2-140-77.dynamicip.rima-tde.net, ip=2.140.77.4). I don&#8217;t know who this is and I doubt he was there by accident. Now, what should I do? First thing I done was disable ssh password authentication and switched to public/private key. I also check the authorized_keys file [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have a server running Debian 6.0 with logcheck installed.<br />
Yesterday ago, I received this message:</p>
<pre class="prettyprint"><code>Jan 19 19:15:10 hostname sshd[28397]: Authentication tried for root with correct key but not from a permitted host (host=4.red-2-140-77.dynamicip.rima-tde.net, ip=2.140.77.4).
</code></pre>
<p>I don&#8217;t know who this is and I doubt he was there by accident.</p>
<p>Now, what should I do?</p>
<p>First thing I done was disable ssh password authentication and switched to public/private key. I also check the authorized_keys file and saw only my public key</p>
<p>What next?</p>
<p>How can I know what the other guy did on my machine?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/155220/ben" target="_blank">Ben</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I believe this is a bug That has been hanging around for <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406987" rel="nofollow">far too long</a> which is fixed in later versions (6.0p1).</p>
<p>It should be fairly easy to verify this by trying to connect to the system yourself from a host that would be restricted, using a different key and seeing what messages you get.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/9517/iain" target="_blank">Iain</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/470769/what-to-do-when-someone-logged-as-root-on-my-server" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/what-to-do-when-someone-logged-as-root-on-my-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sendmail config, making open relay</title>
		<link>http://adminsgoodies.com/sendmail-config-making-open-relay/</link>
		<comments>http://adminsgoodies.com/sendmail-config-making-open-relay/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 17:33:43 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/sendmail-config-making-open-relay/</guid>
		<description><![CDATA[I&#8217;m trying to find a sendmail.mc that allows open relaying without username/password to any system (im testing some code that uses SMTP). Google&#8217;d, could not find and it has been a long while since I modified sendmail config! (it&#8217;s a private system for temporary use) Thanks in advance Asked by Aiden Bell Try FEATURE(promiscuous_relay) According to the doco, By default, the sendmail configuration files do not permit mail relaying (that is, accepting mail from outside [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m trying to find a sendmail.mc that allows open relaying without username/password to any system (im testing some code that uses SMTP).</p>
<p>Google&#8217;d, could not find and it has been a long while since I modified sendmail config!</p>
<p>(it&#8217;s a private system for temporary use)</p>
<p>Thanks in advance</p>
<div class="author">Asked by <a href="http://serverfault.com/users/13300/aiden-bell" target="_blank">Aiden Bell</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Try</p>
<pre class="prettyprint"><code>FEATURE(promiscuous_relay)
</code></pre>
<p>According to the doco,</p>
<blockquote>
<p>By default, the sendmail configuration files do not permit mail<br />
  relaying (that is, accepting mail from outside your local host (class<br />
  {w}) and sending it to another host than your local host).  This<br />
  option sets your site to allow mail relaying from any site to any<br />
  site.</p>
</blockquote>
<div class="author">Answered by <a href="http://serverfault.com/users/55514/madhatter" target="_blank">MadHatter</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/469276/sendmail-config-making-open-relay" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/sendmail-config-making-open-relay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 2.044 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-05-24 19:36:38 -->
