<?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>Tuts4Tech &#187; users</title>
	<atom:link href="http://tuts4tech.net/tag/users/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Windows 7 Move the Users and Program Files Directories To A Different Partition</title>
		<link>http://tuts4tech.net/2009/08/05/windows-7-move-the-users-and-program-files-directories-to-a-different-partition/</link>
		<comments>http://tuts4tech.net/2009/08/05/windows-7-move-the-users-and-program-files-directories-to-a-different-partition/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 16:28:48 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[directories]]></category>
		<category><![CDATA[mlink]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[program files]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=519</guid>
		<description><![CDATA[After installing windows 7 you will be greeted with a user creation prompt press shift+f10 and you should get a cmd window up like in the image below Copy the Users Profiles, Program Files And ProgramData Folders onto the Partition you want to use robocopy &#34;C:\Users&#34; &#34;D:\Users&#34; /E /COPYALL /XJ robocopy &#34;C:\Program Files&#34; &#34;D:\Program Files&#34; [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>After installing windows 7 you will be greeted with a user creation prompt press shift+f10 and you should get a cmd window up like in the image below<img class="aligncenter size-full wp-image-520" title="cmduser" src="http://tuts4tech.net/wp-content/uploads/2009/08/cmduser.png" alt="cmduser" width="500" height="374" /></li>
<li>Copy the Users Profiles, Program Files And ProgramData Folders onto the Partition you want to use
<pre class="brush: plain;">robocopy &quot;C:\Users&quot; &quot;D:\Users&quot; /E /COPYALL /XJ
robocopy &quot;C:\Program Files&quot; &quot;D:\Program Files&quot; /E /COPYALL /XJ
robocopy &quot;C:\ProgramData&quot; &quot;D:\ProgramData&quot; /E /COPYALL /XJ</pre>
</li>
<li>Delete the old folders and create links<br />
For Program Files:</p>
<pre class="brush: plain;">rmdir &quot;C:\Program Files&quot; /S /Q
mklink /J &quot;C:\Program Files&quot; &quot;D:\Program Files&quot;</pre>
<p>For the User Profiles:</p>
<pre class="brush: plain;">rmdir &quot;C:\users&quot; /S /Q
mklink /J &quot;C:\users&quot; &quot;D:\users&quot;</pre>
<p>and lastly ProgramData:</p>
<pre class="brush: plain;">rmdir &quot;C:\ProgramData&quot; /S /Q
mklink /J &quot;C:\ProgramData &quot;D:\ProgramData&quot;</pre>
<p><strong>If you have any permissions issues while deleting C:\ProgramData don't worry about them just try to delete it and make the links again after first reboot </strong></li>
<li>Now open regedit simply by typing regedit on the cmd window</li>
<li>To change the program files path navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion and edit the ProgramFilesDir and CommonFilesDir as needed<br />
<img class="aligncenter size-full wp-image-529" title="regeditproc" src="http://tuts4tech.net/tutorials/win7moveusersprogs/win7progpath.jpg" alt="regeditproc" width="500" height="212" /></li>
<li>For the user profiles you'll need to go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList and again edit the paths as needed<br />
<img class="aligncenter size-full wp-image-528" title="regeditprof" src="http://tuts4tech.net/tutorials/win7moveusersprogs/win7userpath.jpg" alt="regeditprof" width="500" height="183" /></li>
<li>Exit Regedit and the cmd window</li>
<li>Continue to create your user</li>
<li>Reboot your machine and you should be good to go</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/08/05/windows-7-move-the-users-and-program-files-directories-to-a-different-partition/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Nano write check before editing</title>
		<link>http://tuts4tech.net/2009/07/08/nano-write-check-before-editing/</link>
		<comments>http://tuts4tech.net/2009/07/08/nano-write-check-before-editing/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 18:29:35 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[configurations]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[premissions]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[wheel]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=463</guid>
		<description><![CDATA[Have you ever been using nano to edit a long configuration file and when you've just finished you go to save and you get "Error writing /dir/somefile: Permission denied" as you've forgotten to use sudo or switch user if so this tutorial might just be your solution. What this does is it runs a script [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever been using nano to edit a long configuration file and when you've just finished you go to save and you get "Error writing /dir/somefile: Permission denied" as you've forgotten to use sudo or switch user if so this tutorial might just be your solution. What this does is it runs a script to check if you have write access on the file if you do it will continue and open nano as normal if you don't it will ask you do you want to continue so lets get started</p>
<ol>
<li>Save the following to /usr/bin/writecheck
<pre class="brush: bash;">#!/bin/bash
FILE=&quot;$1&quot;

[ $# -eq 0 ] &amp;&amp; exit 1

if [ -w &quot;$FILE&quot; ]
then
nano $FILE
else
   echo &quot;You Do Not Have Write Acess To $FILE&quot;
   echo -n &quot;Do You Want To Continue (y/n)?&quot;
   read reply
   [ $reply == &quot;y&quot; ] &amp;&amp; nano $FILE
fi</pre>
</li>
<li>Allow the script to be executed
<pre class="brush: bash;">chmod +x /usr/bin/writecheck</pre>
</li>
<li>Finally we need to add a alias for it
<pre class="brush: bash;">echo &quot;alias nano='writecheck'&quot; &gt;&gt; /etc/bash.bashrc</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/07/08/nano-write-check-before-editing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup a LDAP Server</title>
		<link>http://tuts4tech.net/2009/07/01/how-to-setup-a-ldap-server/</link>
		<comments>http://tuts4tech.net/2009/07/01/how-to-setup-a-ldap-server/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:50:29 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=403</guid>
		<description><![CDATA[Installation We need to install the ldap packages apt-get install slapd ldap-utils migrationtools Answer the questions and then use dpkg to reconfigure slapd for more options dpkg-reconfigure slapd Omit OpenLDAP server configuration? ... No DNS domain name: ... home.local Name of your organization: ... home Admin Password: some-really-strong-password Confirm Password: some-really-strong-password OK BDB Do you [...]]]></description>
			<content:encoded><![CDATA[<h3>Installation</h3>
<ol>
<li>We need to install the ldap packages
<pre class="brush: bash;">apt-get install slapd ldap-utils migrationtools</pre>
</li>
<li>Answer the questions and then use dpkg to reconfigure slapd for more options
<pre class="brush: bash;">dpkg-reconfigure slapd</pre>
<p>
<pre class="brush: plain;">Omit OpenLDAP server configuration? ... No
DNS domain name: ... home.local
Name of your organization: ... home
Admin Password: some-really-strong-password
Confirm Password: some-really-strong-password
OK
BDB
Do you want your database to be removed when slapd is purged? ... No
Move old database? ... Yes
Allow LDAPv2 Protocol? ... No </pre>
</li>
<li>Check that the ldap server is now running
<pre class="brush: bash;">ldapsearch -x -b dc=home,dc=local</pre>
<p>If you get this error 
<pre class="brush: plain;">ldap_bind: Can't contact LDAP server (-1)</pre>
<p>Its likely the daemon isn't running so start it
<pre class="brush: plain;">/etc/init.d/slapd start</pre>
</li>
</ol>
<p><span id="more-403"></span></p>
<h3>Populating the Database</h3>
<li>We can use migration tools to export all of our users and groups into the LDAP db switch into the migrations tools directory
<pre class="brush: bash;">cd /usr/share/migrationtools/</pre>
</li>
<li>Edit the migrations tools config file
<pre class="brush: bash;">nano migrate_common.ph</pre>
<p>and replace the following
<pre class="brush: plain;">DEFAULT_MAIL_DOMAIN = &quot;home.local&quot;;
DEFAULT_BASE = &quot;dc=home,dc=local&quot;;</pre>
</li>
<li>Export the users and groups
<pre class="brush: bash;">./migrate_group.pl /etc/group /tmp/group.ldif
./migrate_passwd.pl /etc/passwd /tmp/passwd.ldif </pre>
</li>
<li>Migrate tools doesn't create the group and people nodes therefore we need to create them open /tmp/nodes.ldif
<pre class="brush: bash;">nano /tmp/nodes.ldif</pre>
<p>and paste in the following
<pre class="brush: plain;">dn: ou=People, dc=home, dc=local
ou: People
objectclass: organizationalUnit

dn: ou=Group, dc=home, dc=local
ou: Group
objectclass: organizationalUnit</pre>
</li>
<li>Finally we need to import the entries into our LDAP database
<pre class="brush: plain;">ldapadd -x -W -D &quot;cn=admin,dc=home,dc=local&quot; -f /tmp/nodes.ldif
ldapadd -x -W -D &quot;cn=admin,dc=home,dc=local&quot; -f /tmp/group.ldif
ldapadd -x -W -D &quot;cn=admin,dc=home,dc=local&quot; -f /tmp/passwd.ldif </pre>
</li>
<p>That is your LDAP server setup In <a href="http://tuts4tech.net/2009/07/02/configuring-ldap-clients/">this tutorial</a> it will show you how to configure your LDAP Clients</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/07/01/how-to-setup-a-ldap-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
