<?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>!NSFW</title>
	<atom:link href="http://nsfw.ibnmasud.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nsfw.ibnmasud.com</link>
	<description>Safe for Work</description>
	<lastBuildDate>Tue, 03 Aug 2010 22:10:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to tell what distro you are running?</title>
		<link>http://nsfw.ibnmasud.com/how-to-tell-what-distro-you-are-running/</link>
		<comments>http://nsfw.ibnmasud.com/how-to-tell-what-distro-you-are-running/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 22:09:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=97</guid>
		<description><![CDATA[So you inherit a box running linux and you have no idea which flavor of linux it is. How do you find out?
If all you need the kernel version you can try
uname -a
This outputs something like this
Linux localhost.localdomain 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux
If you need the actual distro [...]]]></description>
			<content:encoded><![CDATA[<p>So you inherit a box running linux and you have no idea which flavor of linux it is. How do you find out?</p>
<p>If all you need the kernel version you can try<br />
<code>uname -a</code></p>
<p>This outputs something like this</p>
<blockquote><p>Linux localhost.localdomain 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux</p></blockquote>
<p>If you need the actual distro name you can try<br />
<code>cat /etc/*release</code></p>
<p>In Ubuntu it shows up as</p>
<blockquote><p>DISTRIB_ID=Ubuntu<br />
DISTRIB_RELEASE=9.04<br />
DISTRIB_CODENAME=jaunty<br />
DISTRIB_DESCRIPTION=&#8221;Ubuntu 9.04&#8243;</p></blockquote>
<p>Or even<br />
<code>cat /etc/issue</code></p>
<p>which spits out the following on Ubuntu</p>
<blockquote><p>Ubuntu 9.04 \n \l</p></blockquote>
<p>You can combine all three to get the following<br />
<code>uname -a &#038;&#038; cat /etc/*release &#038;&#038; cat /etc/issue</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/how-to-tell-what-distro-you-are-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch editing Dial-up or VPN access settings in Active Directory</title>
		<link>http://nsfw.ibnmasud.com/batch-editing-dial-up-or-vpn-access-settings-in-active-directory/</link>
		<comments>http://nsfw.ibnmasud.com/batch-editing-dial-up-or-vpn-access-settings-in-active-directory/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 17:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[active directory]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=88</guid>
		<description><![CDATA[Script to edit Remote Access Permissions in the Dial-in tab in Active Directory for multiple users in an OU.]]></description>
			<content:encoded><![CDATA[<p>Active Directory doesn&#8217;t let you edit the Dial-up of VPN access policies for multiple users at once through the GUI. You have to edit this setting one at a time for each user. This can be painstaking if you a lot of users. Luckily there is a VB script available like for almost everything else in AD.<br />
<code><br />
Dim aConnection, aCommand, aResult, strLDAPPath, user, objUser<br />
Const ADS_PROPERTY_CLEAR = 1<br />
strLDAPPath = InputBox("Please enter the LDAP path of the OU:")<br />
WScript.Echo strLDAPPath<br />
Set aConnection = CreateObject("ADODB.Connection")<br />
Set aCommand = CreateObject("ADODB.Command")<br />
aConnection.Provider = "ADsDSOObject"<br />
aConnection.Open<br />
aCommand.ActiveConnection = aConnection<br />
aCommand.CommandText="<LDAP://" &#038; strLDAPPath &#038; ">;(&#038;(objectCategory=Person)(objectClass=User));distinguishedName;subTree"<br />
Set aResult = aCommand.Execute()<br />
Do While Not aResult.EOF<br />
	strDN = aResult.Fields("distinguishedName")<br />
	WScript.Echo strDN<br />
	Set objUser = GetObject("LDAP://" &#038; strDN)<br />
'	Comment the following line to manage connection through Remote Access Policy<br />
	objUser.Put "msNPAllowDialin", FALSE<br />
'	Uncomment the following line to manage connection through Remote Access Policy<br />
'	objUser.PutEx ADS_PROPERTY_CLEAR, "msNPAllowDialin", 0<br />
	objUser.SetInfo<br />
	aResult.MoveNext<br />
Loop</p>
<p></code><br />
This script will update the access settings for a group of users in a particular OU. Once you run the script, a dialog box will ask you for this OU. Once this is set all users in that OU will be updated. </p>
<p>The AD property this script modifies is &#8216;msNPAllowDialin&#8217;. This property is accepts boolean values. So the three options are </p>
<li>TRUE (to allow access)</li>
<li>FALSE (to deny access)</li>
<p>To manage access via the Remote Access Policy, comment out the<br />
<code><br />
	objUser.Put "msNPAllowDialin", FALSE<br />
</code><br />
and uncomment the<br />
<code><br />
'	objUser.PutEx ADS_PROPERTY_CLEAR, "msNPAllowDialin", 0<br />
</code><br />
line.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/batch-editing-dial-up-or-vpn-access-settings-in-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SNMP on OpenSolaris</title>
		<link>http://nsfw.ibnmasud.com/snmp-on-open-solaris/</link>
		<comments>http://nsfw.ibnmasud.com/snmp-on-open-solaris/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 14:46:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=85</guid>
		<description><![CDATA[SNMP is not installed by default on Open Solaris but really easy to set up. You don&#8217;t need to compile it from source as some would suggest.
All you&#8217;ll need is to install the SUNWsmmgr package.
pkg install SUNWsmmgr
All of the config files, including snmpd.conf are in /etc/sma/snmp.
The service to enable snmp is called sma.
svcadm enable svc:/application/management/sma:default
To [...]]]></description>
			<content:encoded><![CDATA[<p>SNMP is not installed by default on Open Solaris but really easy to set up. You don&#8217;t need to compile it from source as some would suggest.</p>
<p>All you&#8217;ll need is to install the <a href="http://docs.sun.com/app/docs/doc/817-3000/configure-1?a=view" onclick="javascript:pageTracker._trackPageview ('/outbound/docs.sun.com');">SUNWsmmgr</a> package.<br />
<code>pkg install SUNWsmmgr</code><br />
All of the config files, including snmpd.conf are in /etc/sma/snmp.</p>
<p>The service to enable snmp is called sma.<br />
<code>svcadm enable svc:/application/management/sma:default</code></p>
<p>To install utilities like snmpwalk and snmpget, you can install the SUNWsmcmd package. </p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/snmp-on-open-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing VirtualBoxAdditions in Ubuntu</title>
		<link>http://nsfw.ibnmasud.com/adding-virtualboxadditions-on-your-ubuntu-guest-os/</link>
		<comments>http://nsfw.ibnmasud.com/adding-virtualboxadditions-on-your-ubuntu-guest-os/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 18:56:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=79</guid>
		<description><![CDATA[In order to install Virtual Box Additions on your newly install Ubuntu virtual machine, you will need to fulfill the following dependencies.
Install dkms and the GNU C Compiler using the following command:
sudo apt-get install dkms gcc
Install the build and header files for Ubuntu using the following command:
sudo apt-get install linux-headers-$(uname -r)
$(uname -r) in the above [...]]]></description>
			<content:encoded><![CDATA[<p>In order to install Virtual Box Additions on your newly install Ubuntu virtual machine, you will need to fulfill the following dependencies.</p>
<p>Install <a href="http://linux.dell.com/dkms/" title="What is DKMS ?" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/linux.dell.com');">dkms</a> and the <a href="http://gcc.gnu.org/" title="GNU C Compiler" target="_blank" onclick="javascript:pageTracker._trackPageview ('/outbound/gcc.gnu.org');">GNU C Compiler</a> using the following command:</p>
<p><code>sudo apt-get install dkms gcc</code></p>
<p>Install the build and header files for Ubuntu using the following command:</p>
<p><code>sudo apt-get install linux-headers-$(uname -r)</code></p>
<p>$(uname -r) in the above command just passes your kernel version to apt-get</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/adding-virtualboxadditions-on-your-ubuntu-guest-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tell if .Net Framework is installed</title>
		<link>http://nsfw.ibnmasud.com/how-to-tell-if-net-framework-is-installed/</link>
		<comments>http://nsfw.ibnmasud.com/how-to-tell-if-net-framework-is-installed/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 17:59:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=72</guid>
		<description><![CDATA[The officially supported method of detecting the presence of the .NET Framework 2.0 is to check the following registry key/value:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Net Framework Setup\NDP\v2.0.50727]
Install = 1 (REG_DWORD)
]]></description>
			<content:encoded><![CDATA[<p>The officially supported method of detecting the presence of the .NET Framework 2.0 is to check the following registry key/value:</p>
<p><code>[HKEY_LOCAL_MACHINE\Software\Microsoft\Net Framework Setup\NDP\v2.0.50727]<br />
Install = 1 (REG_DWORD)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/how-to-tell-if-net-framework-is-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change password from the command line</title>
		<link>http://nsfw.ibnmasud.com/change-password-from-the-command-line/</link>
		<comments>http://nsfw.ibnmasud.com/change-password-from-the-command-line/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:50:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[howto password windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/change-password-from-the-command-line/</guid>
		<description><![CDATA[net user &#60;username&#62; &#60;password&#62;
Or if you want to hide the password and enter it at a prompt
net user &#60;username&#62; *
]]></description>
			<content:encoded><![CDATA[<p><code>net user &lt;username&gt; &lt;password&gt;</code><br />
Or if you want to hide the password and enter it at a prompt<br />
<code>net user &lt;username&gt; *</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/change-password-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allowing non-admin Windows users to change IP addresses</title>
		<link>http://nsfw.ibnmasud.com/allowing-non-admin-windows-users-to-change-ip-addresses/</link>
		<comments>http://nsfw.ibnmasud.com/allowing-non-admin-windows-users-to-change-ip-addresses/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=54</guid>
		<description><![CDATA[How to allow non-admin users change their IP address.]]></description>
			<content:encoded><![CDATA[<p>If you want to allow non-admin users in Windows to change the IP address settings on their PCs, you can add them to the built-in &#8220;Network Configuration Operators&#8221; group. This can be done from the command line as</p>
<p><code>net localgroup "Network Configuration Operators" /add &lt;username&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/allowing-non-admin-windows-users-to-change-ip-addresses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Office 2003 without a CD key ..sort of</title>
		<link>http://nsfw.ibnmasud.com/install-office-2003-without-a-cd-key-sort-of/</link>
		<comments>http://nsfw.ibnmasud.com/install-office-2003-without-a-cd-key-sort-of/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 20:21:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=49</guid>
		<description><![CDATA[Office 2003 wont install unless you supply a valid license key, unlike Office 2007 which lets you enter the key once you&#8217;re done installing. This is very inconvenient when you&#8217;re trying to create a base image of a system to deploy on multiple PCs. You can&#8217;t have the same Office license key for all the [...]]]></description>
			<content:encoded><![CDATA[<p>Office 2003 wont install unless you supply a valid license key, unlike Office 2007 which lets you enter the key once you&#8217;re done installing. This is very inconvenient when you&#8217;re trying to create a base image of a system to deploy on multiple PCs. You can&#8217;t have the same Office license key for all the PCs.</p>
<p>In order to get somewhat similar functionality as Office 2007, i.e., install without key to be filled in later, use the following method. You will still need a valid serial key for the first install, but it will be cleared after its completed.</p>
<p><code>setup.exe /QB PIDKEY=YOURSERIALHERE<br />
regedit /S  clear-key.reg</code></p>
<p>The first line installs office silently with the specified key, and second line clears the registration information. The clear-key.reg file contains the following registry key</p>
<p><code>Windows Registry Editor Version 5.00<br />
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Registration]<br />
</code></p>
<p>Now when you run Office, it&#8217;ll ask you for a license key.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/install-office-2003-without-a-cd-key-sort-of/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Allowing non-admins to manage services in Windows</title>
		<link>http://nsfw.ibnmasud.com/allowing-non-admins-to-manage-services-in-windows/</link>
		<comments>http://nsfw.ibnmasud.com/allowing-non-admins-to-manage-services-in-windows/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 14:39:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=44</guid>
		<description><![CDATA[This Microsoft KB article lists 3 ways to grant non-admin users the rights to manage services on a windows machine.
Method 1: Grant rights using Group Policy
Method 2: Grant rights using Security templates
Method 3: Grant rights using Subinacl.exe
The easiest and fastest method? Method 3 using subinacl.
SUBINACL /SERVICE \\MachineName\ServiceName /GRANT=[DomainName\]UserName[=Access]
[Source: How to grant users rights to manage [...]]]></description>
			<content:encoded><![CDATA[<p>This <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;288129" onclick="javascript:pageTracker._trackPageview ('/outbound/support.microsoft.com');">Microsoft KB article</a> lists 3 ways to grant non-admin users the rights to manage services on a windows machine.</p>
<p>Method 1: Grant rights using Group Policy<br />
Method 2: Grant rights using Security templates<br />
Method 3: Grant rights using Subinacl.exe</p>
<p>The easiest and fastest method? Method 3 using subinacl.<br />
<code>SUBINACL /SERVICE \\MachineName\ServiceName /GRANT=[DomainName\]UserName[=Access]</code></p>
<p>[Source: <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;288129" onclick="javascript:pageTracker._trackPageview ('/outbound/support.microsoft.com');">How to grant users rights to manage services in Windows 2000</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/allowing-non-admins-to-manage-services-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manage Exchange mailboxes from the command-line</title>
		<link>http://nsfw.ibnmasud.com/manage-exchange-mailboxes-from-the-command-line/</link>
		<comments>http://nsfw.ibnmasud.com/manage-exchange-mailboxes-from-the-command-line/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 22:58:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[cmd]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=36</guid>
		<description><![CDATA[ExchMbx is a command-line utility that lets you create user mailboxes, mail enable an AD object, move mailboxes and delete mailboxes among other tasks that can be done using the GUI.
Ex1:
ExchMbx -b cn=joe,dc=joe,dc=net -cr srv1:sg1:db2
Create mailbox for joe in Server srv1, storage group sg1, database db2.
Ex2:
ExchMbx -b cn=joe,dc=joe,dc=net -move srv1:sg1:db2
Ditto ex1 but move.
Ex3:
ExchMbx -b cn=joe,cn=users,dc=joe,dc=net [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.joeware.net/freetools/tools/exchmbx/index.htm" title="ExchMbx Download Page" onclick="javascript:pageTracker._trackPageview ('/outbound/www.joeware.net');">ExchMbx</a> is a command-line utility that lets you create user mailboxes, mail enable an AD object, move mailboxes and delete mailboxes among other tasks that can be done using the GUI.</p>
<p>Ex1:<br />
<code>ExchMbx -b cn=joe,dc=joe,dc=net -cr srv1:sg1:db2</code><br />
Create mailbox for joe in Server srv1, storage group sg1, database db2.</p>
<p>Ex2:<br />
<code>ExchMbx -b cn=joe,dc=joe,dc=net -move srv1:sg1:db2</code><br />
Ditto ex1 but move.</p>
<p>Ex3:<br />
<code>ExchMbx -b cn=joe,cn=users,dc=joe,dc=net -clear</code><br />
Clear Exchange attrs for joe, will delete mailbox or<br />
clean email addresses of mailenabled objects.</p>
<p>Ex4:<br />
<code>ExchMbx -b cn=gr1,cn=users,dc=joe,dc=net -me</code><br />
Mail Enable group gr1</p>
<p>Ex5:<br />
<code>ExchMbx -b cn=con1,cn=users,dc=joe,dc=net -me joe@joeware.net</code><br />
Mail Enable contact con1 with email address joe@joeware.net</p>
<p>ExchMbx can be obtained from <a href="http://www.joeware.net/freetools/index.htm" title="joeware.net" onclick="javascript:pageTracker._trackPageview ('/outbound/www.joeware.net');">joeware.net</a> along with many other useful tools.</p>
<p>[examples sourced from the <a href="http://www.joeware.net/freetools/tools/exchmbx/usage.htm" title="ExchMbx Usage Page" onclick="javascript:pageTracker._trackPageview ('/outbound/www.joeware.net');">ExchMbx Usage page</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/manage-exchange-mailboxes-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
