• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/docs/htmldocs/Samba-HOWTO-Collection/
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter�25.�Desktop Profile Management</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="The Official Samba-3 HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part�III.�Advanced Configuration"><link rel="prev" href="PolicyMgmt.html" title="Chapter�24.�System and Account Policies"><link rel="next" href="pam.html" title="Chapter�26.�PAM-Based Distributed Authentication"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter�25.�Desktop Profile Management</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="PolicyMgmt.html">Prev</a>�</td><th width="60%" align="center">Part�III.�Advanced Configuration</th><td width="20%" align="right">�<a accesskey="n" href="pam.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="ProfileMgmt"></a>Chapter�25.�Desktop Profile Management</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><tt class="email">&lt;<a href="mailto:jht@samba.org">jht@samba.org</a>&gt;</tt></p></div></div></div></div><div><p class="pubdate">April 3 2003</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="ProfileMgmt.html#id2600179">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id2600208">Roaming Profiles</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id2600241">Samba Configuration for Profile Handling</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2600744">Windows Client Profile Configuration Information</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2601867">User Profile Hive Cleanup Service</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2601902">Sharing Profiles between W9x/Me and NT4/200x/XP Workstations</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2601965">Profile Migration from Windows NT4/200x Server to Samba</a></span></dt></dl></dd><dt><span class="sect1"><a href="ProfileMgmt.html#id2602246">Mandatory Profiles</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id2602330">Creating and Managing Group Profiles</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id2602384">Default Profile for Windows Users</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id2602407">MS Windows 9x/Me</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2602539">MS Windows NT4 Workstation</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2603068">MS Windows 200x/XP</a></span></dt></dl></dd><dt><span class="sect1"><a href="ProfileMgmt.html#id2603543">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id2603554">Configuring Roaming Profiles for a Few Users or Groups</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2603612">Cannot Use Roaming Profiles</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2603785">Changing the Default Profile</a></span></dt></dl></dd></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2600179"></a>Features and Benefits</h2></div></div></div><p>
2Roaming profiles are feared by some, hated by a few, loved by many, and a Godsend for
3some administrators.
4</p><p>
5Roaming profiles allow an administrator to make available a consistent user desktop
6as the user moves from one machine to another. This chapter provides much information
7regarding how to configure and manage roaming profiles.
8</p><p>
9While roaming profiles might sound like nirvana to some, they are a real and tangible
10problem to others. In particular, users of mobile computing tools, where often there may not
11be a sustained network connection, are often better served by purely local profiles.
12This chapter provides information to help the Samba administrator deal with those
13situations.
14</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2600208"></a>Roaming Profiles</h2></div></div></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
15Roaming profiles support is different for Windows 9x/Me and Windows NT4/200x.
16</p></div><p>
17Before discussing how to configure roaming profiles, it is useful to see how
18Windows 9x/Me and Windows NT4/200x clients implement these features.
19</p><p>
20Windows 9x/Me clients send a NetUserGetInfo request to the server to get the user's
21profiles location. However, the response does not have room for a separate
22profiles location field, only the user's home share. This means that Windows 9x/Me
23profiles are restricted to being stored in the user's home directory.
24</p><p>
25Windows NT4/200x  clients send a NetSAMLogon RPC request, which contains many fields
26including a separate field for the location of the user's profiles.
27</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2600241"></a>Samba Configuration for Profile Handling</h3></div></div></div><p>
28This section documents how to configure Samba for MS Windows client profile support.
29</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600252"></a>NT4/200x User Profiles</h4></div></div></div><p>
30For example, to support Windows NT4/200x clients, set the following in the [global] section of the <tt class="filename">smb.conf</tt> file:
31</p><p>
32</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2600277"></a><i class="parameter"><tt>
33					
34				logon path =  \\profileserver\profileshare\profilepath\%U\moreprofilepath</tt></i></td></tr></table><p>
35
36This is typically implemented like:
37
38</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2600300"></a><i class="parameter"><tt>
39					
40				logon path = \\%L\Profiles\%u</tt></i></td></tr></table><p>
41where &#8220;<span class="quote"><span class="emphasis"><em>%L</em></span></span>&#8221; translates to the name of the Samba server and &#8220;<span class="quote"><span class="emphasis"><em>%u</em></span></span>&#8221; translates to the user name.
42</p><p>
43The default for this option is <tt class="filename">\\%N\%U\profile</tt>, namely <tt class="filename">\\sambaserver\username\profile</tt>. 
44The <tt class="filename">\\%N\%U</tt> service is created automatically by the [homes] service. If you are using
45a Samba server for the profiles, you must make the share that is specified in the logon path
46browseable. Please refer to the man page for <tt class="filename">smb.conf</tt> in respect of the different
47semantics of &#8220;<span class="quote"><span class="emphasis"><em>%L</em></span></span>&#8221; and &#8220;<span class="quote"><span class="emphasis"><em>%N</em></span></span>&#8221;, as well as &#8220;<span class="quote"><span class="emphasis"><em>%U</em></span></span>&#8221; and &#8220;<span class="quote"><span class="emphasis"><em>%u</em></span></span>&#8221;.
48</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
49MS Windows NT/200x clients at times do not disconnect a connection to a server between logons. It is recommended
50to not use the <i class="parameter"><tt>homes</tt></i> meta-service name as part of the profile share path.
51</p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600393"></a>Windows 9x/Me User Profiles</h4></div></div></div><p>
52To support Windows 9x/Me clients, you must use the <a class="indexterm" name="id2600402"></a>logon home
53parameter. Samba has been fixed so <b class="userinput"><tt>net use /home</tt></b> now works as well and it, too, relies
54on the <span><b class="command">logon home</b></span> parameter.
55</p><p>
56By using the logon home parameter, you are restricted to putting Windows 9x/Me profiles in the user's home
57directory.  But wait! There is a trick you can use. If you set the following in the
58<i class="parameter"><tt>[global]</tt></i> section of your <tt class="filename">smb.conf</tt> file:
59</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2600449"></a><i class="parameter"><tt>
60					
61				logon home = \\%L\%U\.profiles</tt></i></td></tr></table><p>
62then your Windows 9x/Me clients will dutifully put their clients in a subdirectory
63of your home directory called <tt class="filename">.profiles</tt> (making them hidden).
64</p><p>
65Not only that, but <b class="userinput"><tt>net use /home</tt></b> will also work because of a feature in
66Windows 9x/Me. It removes any directory stuff off the end of the home directory area
67and only uses the server and share portion. That is, it looks like you
68specified <tt class="filename">\\%L\%U</tt> for <a class="indexterm" name="id2600494"></a>logon home.
69</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600504"></a>Mixed Windows 9x/Me and Windows NT4/200x User Profiles</h4></div></div></div><p>
70You can support profiles for Windows 9x and Windows NT clients by setting both the
71<a class="indexterm" name="id2600514"></a>logon home and <a class="indexterm" name="id2600521"></a>logon path parameters. For example:
72</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2600536"></a><i class="parameter"><tt>
73					
74				logon home = \\%L\%u\.profiles</tt></i></td></tr><tr><td><a class="indexterm" name="id2600552"></a><i class="parameter"><tt>
75					
76				logon path = \\%L\profiles\%u</tt></i></td></tr></table></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600568"></a>Disabling Roaming Profile Support</h4></div></div></div><p>
77A question often asked is: &#8220;<span class="quote"><span class="emphasis"><em>How may I enforce use of local profiles?</em></span></span>&#8221; or
78&#8220;<span class="quote"><span class="emphasis"><em>How do I disable roaming profiles?</em></span></span>&#8221;
79</p><p>
80<a class="indexterm" name="id2600590"></a>
81There are three ways of doing this:
82<a class="indexterm" name="id2600598"></a>
83</p><div class="variablelist"><dl><dt><span class="term">In <tt class="filename">smb.conf</tt></span></dt><dd><p>
84		Affect the following settings and ALL clients will be forced to use a local profile:
85		<a class="indexterm" name="id2600626"></a>logon home =   and <a class="indexterm" name="id2600633"></a>logon path =  
86		</p><p>
87		The arguments to these parameters must be left blank. It is necessary to include the <tt class="constant">=</tt> sign
88		to specifically assign the empty value.
89		</p></dd><dt><span class="term">MS Windows Registry</span></dt><dd><p>
90		By using the Microsoft Management Console gpedit.msc to instruct your MS Windows XP
91		machine to use only a local profile. This, of course, modifies registry settings. The full
92		path to the option is:
93</p><pre class="screen">
94Local Computer Policy\
95	Computer Configuration\
96		Administrative Templates\
97			System\
98				User Profiles\
99
100Disable: Only Allow Local User Profiles 
101Disable: Prevent Roaming Profile Change from Propagating to the Server
102</pre><p>
103	</p></dd><dt><span class="term">Change of Profile Type:</span></dt><dd><p>From the start menu right-click on <span class="guiicon">My Computer icon</span>,
104		select <span class="guimenuitem">Properties</span>, click on the <span class="guilabel">User Profiles</span>
105		tab, select the profile you wish to change from
106		<span class="guimenu">Roaming</span> type to <span class="guimenu">Local</span>, and click on
107		<span class="guibutton">Change Type</span>.
108		</p></dd></dl></div><p>
109Consult the MS Windows registry guide for your particular MS Windows version for more information
110about which registry keys to change to enforce use of only local user profiles.
111</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
112The specifics of how to convert a local profile to a roaming profile, or a roaming profile
113to a local one vary according to the version of MS Windows you are running. Consult the Microsoft MS
114Windows Resource Kit for your version of Windows for specific information.
115</p></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2600744"></a>Windows Client Profile Configuration Information</h3></div></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2600750"></a>Windows 9x/Me Profile Setup</h4></div></div></div><p>
116When a user first logs in on Windows 9X, the file user.DAT is created, as are folders
117<tt class="filename">Start Menu</tt>, <tt class="filename">Desktop</tt>, <tt class="filename">Programs</tt>, and
118<tt class="filename">Nethood</tt>. These directories and their contents will be merged with the local
119versions stored in <tt class="filename">c:\windows\profiles\username</tt> on subsequent logins, taking the
120most recent from each.	You will need to use the <i class="parameter"><tt>[global]</tt></i> options
121<a class="indexterm" name="id2600798"></a>preserve case = yes,
122<a class="indexterm" name="id2600806"></a>short preserve case = yes and
123<a class="indexterm" name="id2600813"></a>case sensitive = no
124in order to maintain capital letters in shortcuts in any of the profile folders.
125</p><p>
126The <tt class="filename">user.DAT</tt> file contains all the user's preferences. If you wish to enforce a set of preferences,
127rename their <tt class="filename">user.DAT</tt> file to <tt class="filename">user.MAN</tt>, and deny them write access to this file.
128</p><div class="orderedlist"><ol type="1"><li><p>
129	On the Windows 9x/Me machine, go to <span class="guimenu">Control Panel</span> -&gt;
130	<span class="guimenuitem">Passwords</span> and select the <span class="guilabel">User Profiles</span> tab.
131	Select the required level of roaming preferences. Press <span class="guibutton">OK</span>, but do not
132	allow the computer to reboot.
133	</p></li><li><p>
134	On the Windows 9x/Me machine, go to <span class="guimenu">Control Panel</span> -&gt;
135	<span class="guimenuitem">Network</span> -&gt; <span class="guimenuitem">Client for Microsoft Networks</span>
136	-&gt; <span class="guilabel">Preferences</span>. Select <span class="guilabel">Log on to NT Domain</span>.	Then,
137	ensure that the Primary Logon is <span class="guilabel">Client for Microsoft Networks</span>. Press
138	<span class="guibutton">OK</span>, and this time allow the computer to reboot.
139	</p></li></ol></div><p> Under Windows 9x/ME, profiles are downloaded from the Primary Logon. If you have the Primary Logon
140as &#8220;<span class="quote"><span class="emphasis"><em>Client for Novell Networks</em></span></span>&#8221;, then the profiles and logon script will be downloaded from
141your Novell Server. If you have the Primary Logon as &#8220;<span class="quote"><span class="emphasis"><em>Windows Logon</em></span></span>&#8221;, then the profiles will
142be loaded from the local machine  a bit against the concept of roaming profiles, it would seem!  </p><p>
143You will now find that the Microsoft Networks Login box contains <tt class="constant">[user, password, domain]</tt> instead
144of just <tt class="constant">[user, password]</tt>. Type in the Samba server's domain name (or any other domain known to exist,
145but bear in mind that the user will be authenticated against this domain and profiles downloaded from it,
146if that domain logon server supports it), user name and user's password. 
147</p><p> Once the user has been successfully validated, the Windows 9x/Me machine will inform you that
148<tt class="computeroutput">The user has not logged on before</tt> and asks you <tt class="computeroutput">Do you
149wish to save the user's preferences?</tt> Select <span class="guibutton">Yes</span>. </p><p> Once the Windows 9x/Me client comes up with the desktop, you should be able to examine the
150contents of the directory specified in the <a class="indexterm" name="id2601005"></a>logon path on
151the Samba server and verify that the <tt class="filename">Desktop</tt>, <tt class="filename">Start Menu</tt>,
152<tt class="filename">Programs</tt> and <tt class="filename">Nethood</tt> folders have been created. </p><p> These folders will be cached locally on the client, and updated when the user logs off (if
153you haven't made them read-only by then). You will find that if the user creates further folders or
154shortcut, that the client will merge the profile contents downloaded with the contents of the profile
155directory already on the local client, taking the newest folders and shortcut from each set.	</p><p> If you have made the folders/files read-only on the Samba server, then you will get errors from
156the Windows 9x/Me machine on logon and logout as it attempts to merge the local and remote profile.
157Basically, if you have any errors reported by the Windows 9x/Me machine, check the UNIX file permissions
158and ownership rights on the profile directory contents, on the Samba server. </p><p> If you have problems creating user profiles, you can reset the user's local desktop cache, as
159shown below. When this user next logs in, the user will be told that he/she is logging in &#8220;<span class="quote"><span class="emphasis"><em>for
160	the first time</em></span></span>&#8221;.
161	
162<a class="indexterm" name="id2601067"></a>
163	</p><div class="orderedlist"><ol type="1"><li><p>
164	Instead of logging in under the [user, password, domain] dialog, press <span class="guibutton">escape</span>.
165	</p></li><li><p>
166	Run the <span><b class="command">regedit.exe</b></span> program, and look in:
167	</p><p>
168	<tt class="filename">HKEY_LOCAL_MACHINE\Windows\CurrentVersion\ProfileList</tt>
169	</p><p>
170	You will find an entry for each user of ProfilePath.	Note the contents of this key
171	(likely to be <tt class="filename">c:\windows\profiles\username</tt>), then delete the key
172	<i class="parameter"><tt>ProfilePath</tt></i> for the required user.
173	</p></li><li><p>
174	Exit the registry editor.
175	</p></li><li><p>
176	Search for the user's .PWL password-caching file in the <tt class="filename">c:\windows</tt> directory, and delete it.
177	</p></li><li><p>
178	Log off the Windows 9x/Me client.
179	</p></li><li><p>
180	Check the contents of the profile path (see <a class="indexterm" name="id2601161"></a>logon path
181	described above) and delete the <tt class="filename">user.DAT</tt> or <tt class="filename">user.MAN</tt>
182	file for the user, making a backup if required. 
183	</p></li></ol></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
184Before deleting the contents of the directory listed in the <i class="parameter"><tt>ProfilePath</tt></i>
185(this is likely to be <tt class="filename">c:\windows\profiles\username)</tt>, ask the owner if they have
186any important files stored on their desktop or in their start menu. Delete the contents of the
187directory <i class="parameter"><tt>ProfilePath</tt></i> (making a backup if any of the files are needed).
188</p><p>
189This will have the effect of removing the local (read-only hidden system file) <tt class="filename">user.DAT</tt>
190in their profile directory, as well as the local &#8220;<span class="quote"><span class="emphasis"><em>desktop,</em></span></span>&#8221; &#8220;<span class="quote"><span class="emphasis"><em>nethood,</em></span></span>&#8221;
191&#8220;<span class="quote"><span class="emphasis"><em>start menu,</em></span></span>&#8221; and &#8220;<span class="quote"><span class="emphasis"><em>programs</em></span></span>&#8221; folders.
192</p></div><p>
193If all else fails, increase Samba's debug log levels to between 3 and 10, and/or run a packet
194sniffer program such as ethereal or <span><b class="command">netmon.exe</b></span>, and look for error messages.
195</p><p> If you have access to an Windows NT4/200x server, then first set up roaming profiles and/or
196netlogons on the Windows NT4/200x server. Make a packet trace, or examine the example packet traces
197provided with Windows NT4/200x server, and see what the differences are with the equivalent Samba trace.
198</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2601262"></a>Windows NT4 Workstation</h4></div></div></div><p> When a user first logs in to a Windows NT Workstation, the profile NTuser.DAT is created. The profile
199location can be now specified through the <a class="indexterm" name="id2601272"></a>logon path parameter.
200</p><p> There is a parameter that is now available for use with NT Profiles: <a class="indexterm" name="id2601284"></a>logon drive. 
201This should be set to <tt class="filename">H:</tt> or any other drive, and should be used in conjunction with
202the new <a class="indexterm" name="id2601299"></a>logon home parameter. </p><p> The entry for the NT4 profile is a directory not a file. The NT help on Profiles mentions that a
203directory is also created with a .PDS extension. The user, while logging in, must have write permission
204to create the full profile path (and the folder with the .PDS extension for those situations where it
205might be created.)  </p><p> In the profile directory, Windows NT4 creates more folders than Windows 9x/Me. It creates
206<tt class="filename">Application Data</tt> and others, as well as <tt class="filename">Desktop</tt>,
207<tt class="filename">Nethood</tt>, <tt class="filename">Start Menu,</tt> and <tt class="filename">Programs</tt>.
208The profile itself is stored in a file <tt class="filename">NTuser.DAT</tt>. Nothing appears to be stored
209in the .PDS directory, and its purpose is currently unknown. </p><p> You can use the <span class="application">System Control Panel</span> to copy a local profile onto
210a Samba server (see NT Help on Profiles; it is also capable of firing up the correct location in the
211<span class="application">System Control Panel</span> for you). The NT Help file also mentions that renaming
212<tt class="filename">NTuser.DAT</tt> to <tt class="filename">NTuser.MAN</tt> turns a profile into a mandatory one.
213</p><p> The case of the profile is significant.	The file must be called <tt class="filename">NTuser.DAT</tt>
214or, for a mandatory profile, <tt class="filename">NTuser.MAN</tt>. </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2601408"></a>Windows 2000/XP Professional</h4></div></div></div><p> You must first convert the profile from a local profile to a domain profile on the MS Windows
215workstation as follows: </p><div class="procedure"><ol type="1"><li><p> Log on as the <span class="emphasis"><em>local</em></span> workstation administrator. </p></li><li><p> Right-click on the <span class="guiicon">My Computer</span> Icon, select
216	<span class="guimenuitem">Properties</span>.</p></li><li><p> Click on the <span class="guilabel">User Profiles</span> tab.</p></li><li><p> Select the profile you wish to convert (click it once).</p></li><li><p> Click on the <span class="guibutton">Copy To</span> button.</p></li><li><p> In the <span class="guilabel">Permitted to use</span> box, click on the
217	<span class="guibutton">Change</span> button. </p></li><li><p> Click on the <span class="guilabel">Look in</span> area that lists the machine name. When you click here, it will
218	open up a selection box. Click on the domain to which the profile must be accessible. </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You will need to log on if a logon box opens up. 
219	For example, connect as <i class="replaceable"><tt>DOMAIN</tt></i>\root, password:
220	<i class="replaceable"><tt>mypassword</tt></i>.</p></div></li><li><p> To make the profile capable of being used by anyone, select &#8220;<span class="quote"><span class="emphasis"><em>Everyone</em></span></span>&#8221;. </p></li><li><p> Click on <span class="guibutton">OK</span> and the Selection box will close. </p></li><li><p> Now click on <span class="guibutton">OK</span> to create the profile in the path
221	you nominated.	</p></li></ol></div><p> Done. You now have a profile that can be edited using the Samba <span><b class="command">profiles</b></span> tool.
222</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
223Under Windows NT/200x, the use of mandatory profiles forces the use of MS Exchange storage of mail
224data and keeps it out of the desktop profile. That keeps desktop profiles from becoming unusable.
225</p></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2601592"></a>Windows XP Service Pack 1</h5></div></div></div><p>
226	There is a security check new to Windows XP (or maybe only Windows XP service pack 1).
227	It can be disabled via a group policy in the Active Directory. The policy is called:
228	</p><p>
229		<tt class="filename">Computer Configuration\Administrative Templates\System\User Profiles\Do not check for
230	user ownership of Roaming Profile Folders</tt>i
231	</p><p>
232	This should be set to <tt class="constant">Enabled</tt>.
233	</p><p>
234	Does the new version of Samba have an Active Directory analogue?  If so, then you may be able to set the policy through this.
235	</p><p>If you cannot set group policies in Samba, then you may be able to set the policy locally on
236	each machine. If you want to try this, then do the following (N.B. I do not know for sure that this
237	will work in the same way as a domain group policy):
238	</p><div class="procedure"><ol type="1"><li><p>On the XP workstation, log in with an Administrative account.</p></li><li><p>Click on <span class="guimenu">Start</span> -&gt; <span class="guimenuitem">Run</span>.</p></li><li><p>Type <span><b class="command">mmc</b></span>.</p></li><li><p>Click on <span class="guibutton">OK</span>.</p></li><li><p>A Microsoft Management Console should appear.</p></li><li><p>Click on <span class="guimenu">File</span> -&gt; <span class="guimenuitem">Add/Remove Snap-in</span> -&gt; <span class="guimenuitem">Add</span>.</p></li><li><p>Double-click on <span class="guiicon">Group Policy</span>.</p></li><li><p>Click on <span class="guibutton">Finish</span> -&gt; <span class="guibutton">Close</span>.</p></li><li><p>Click on <span class="guibutton">OK</span>.</p></li><li><p>In the &#8220;<span class="quote"><span class="emphasis"><em>Console Root</em></span></span>&#8221; window expand <span class="guiicon">Local Computer Policy</span> -&gt;
239		<span class="guiicon">Computer Configuration</span> -&gt; <span class="guiicon">Administrative Templates</span> -&gt; 
240		<span class="guiicon">System</span> -&gt; <span class="guiicon">User Profiles</span>.</p></li><li><p>Double-click on <span class="guilabel">Do not check for user ownership of Roaming Profile Folders</span>.</p></li><li><p>Select <span class="guilabel">Enabled</span>.</p></li><li><p>Click on <span class="guibutton">OK</span>.</p></li><li><p>Close the whole console. You do not need to save the settings (this refers to the
241	console settings rather than the policies you have changed).</p></li><li><p>Reboot.</p></li></ol></div></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2601867"></a>User Profile Hive Cleanup Service</h3></div></div></div><p>
242There certain situations that cause a cached local copy of roaming profile not to be deleted on exit, even if
243the policy to force such deletion is set. To deal with that situation special service was created. The application 
244<span><b class="command">UPHClean</b></span> (User Profile Hive Cleanup) can be installed as service on Windows NT4/2000/XP Professional,
245and Windows 2003.
246</p><p>
247The UPHClean software package can be downloaded from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1B286E6D-8912-4E18-B570-42470E2F3582&displaylang=en" target="_top">User Profile Hive Cleanup Service.</a>
248</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2601902"></a>Sharing Profiles between W9x/Me and NT4/200x/XP Workstations</h3></div></div></div><p> Sharing of desktop profiles between Windows versions is not recommended. Desktop profiles are an
249evolving phenomenon and profiles for later versions of MS Windows clients add features that may interfere
250with earlier versions of MS Windows clients. Probably the more salient reason to not mix profiles is
251that when logging off an earlier version of MS Windows, the older format of profile contents may overwrite
252information that belongs to the newer version resulting in loss of profile information content when that
253user logs on again with the newer version of MS Windows. </p><p> If you then want to share the same Start Menu/Desktop with W9x/Me, you will need to specify a common
254location for the profiles. The <tt class="filename">smb.conf</tt> parameters that need to be common are 
255<a class="indexterm" name="id2601932"></a>logon path and 
256<a class="indexterm" name="id2601939"></a>logon home. </p><p> If you have this set up correctly, you will find separate <tt class="filename">user.DAT</tt> and
257<tt class="filename">NTuser.DAT</tt> files in the same profile directory. </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2601965"></a>Profile Migration from Windows NT4/200x Server to Samba</h3></div></div></div><p> There is nothing to stop you from specifying any path that you like for the location of users' profiles.
258Therefore, you could specify that the profile be stored on a Samba server, or any other SMB server,
259as long as that SMB server supports encrypted passwords. </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2601979"></a>Windows NT4 Profile Management Tools</h4></div></div></div><p> Unfortunately, the Resource Kit information is specific to the version of MS Windows NT4/200x. The
260correct resource kit is required for each platform. </p><p>Here is a quick guide:</p><div class="procedure"><ol type="1"><li><p> On your NT4 Domain Controller, right click on <span class="guiicon">My Computer</span>, then select the
261	tab labeled <span class="guilabel">User Profiles</span>. </p></li><li><p> Select a user profile you want to migrate and click on it. </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>I am using the term &#8220;<span class="quote"><span class="emphasis"><em>migrate</em></span></span>&#8221; loosely. You can copy a profile to create a group
262	profile. You can give the user <i class="parameter"><tt>Everyone</tt></i> rights to the profile you copy this to. That
263	is what you need to do, since your Samba domain is not a member of a trust relationship with your NT4
264	PDC.</p></div></li><li><p>Click on the <span class="guibutton">Copy To</span> button.</p></li><li><p>In the box labeled <span class="guilabel">Copy Profile to</span> add your new path, e.g.,
265	<tt class="filename">c:\temp\foobar</tt></p></li><li><p>Click on <span class="guibutton">Change</span> in the <span class="guilabel">Permitted to use</span> box.</p></li><li><p>Click on the group &#8220;<span class="quote"><span class="emphasis"><em>Everyone</em></span></span>&#8221;, click on <span class="guibutton">OK</span>. This
266	closes the &#8220;<span class="quote"><span class="emphasis"><em>choose user</em></span></span>&#8221; box.</p></li><li><p>Now click on <span class="guibutton">OK</span>.</p></li></ol></div><p> Follow the above for every profile you need to migrate.	</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2602135"></a>Side Bar Notes</h4></div></div></div><p>
267<a class="indexterm" name="id2602143"></a>
268You should obtain the SID of your NT4 domain. You can use smbpasswd to do this. Read the man
269page.</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2602153"></a>moveuser.exe</h4></div></div></div><p> The Windows 200x professional resource kit has <span><b class="command">moveuser.exe</b></span>. <span><b class="command">moveuser.exe</b></span> changes the security of a profile
270from one user to another. This allows the account domain to change, and/or the user name to change.</p><p>
271This command is like the Samba <span><b class="command">profiles</b></span> tool.
272</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2602188"></a>Get SID</h4></div></div></div><p>
273<a class="indexterm" name="id2602196"></a>
274You can identify the SID by using <span><b class="command">GetSID.exe</b></span> from the Windows NT Server 4.0 Resource Kit. </p><p> Windows NT 4.0 stores the local profile information in the registry under the following key:
275<tt class="filename">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList</tt> </p><p> Under the ProfileList key, there will be subkeys named with the SIDs of the users who have logged
276on to this computer. (To find the profile information for the user whose locally cached profile you want
277to move, find the SID for the user with the <span><b class="command">GetSID.exe</b></span> utility.) Inside the appropriate user's subkey,
278you will see a string value named <i class="parameter"><tt>ProfileImagePath</tt></i>. </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2602246"></a>Mandatory Profiles</h2></div></div></div><p>
279<a class="indexterm" name="id2602254"></a>
280A Mandatory Profile is a profile that the user does not have the ability to overwrite. During the
281user's session, it may be possible to change the desktop environment, however, as the user logs out all changes
282made will be lost. If it is desired to not allow the user any ability to change the desktop environment,
283then this must be done through policy settings. See the previous chapter. </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> Under NO circumstances should the profile directory (or its
284contents) be made read-only as this may render the profile un-usable.
285Where it is essential to make a profile read-only within the UNIX file
286system, this can be done but then you absolutely must use the
287<span><b class="command">fake-permissions</b></span> VFS module to instruct MS Windows
288NT/200x/XP clients that the Profile has write permission for the user.
289See <a href="VFS.html#fakeperms" title="fake_perms">fake_perms VFS module</a>. </p></div><p> For MS Windows NT4/200x/XP, the above method can also be used to create mandatory profiles. To
290convert a group profile into a mandatory profile, simply locate the <tt class="filename">NTUser.DAT</tt> file in the copied profile
291and rename it to <tt class="filename">NTUser.MAN</tt>. </p><p> For MS Windows 9x/ME, it is the <tt class="filename">User.DAT</tt> file that must be renamed to
292<tt class="filename">User.MAN</tt> to effect a mandatory profile. </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2602330"></a>Creating and Managing Group Profiles</h2></div></div></div><p>
293<a class="indexterm" name="id2602338"></a>
294Most organizations are arranged into departments. There is a nice benefit in this fact since usually
295most users in a department require the same desktop applications and the same desktop layout. MS
296Windows NT4/200x/XP will allow the use of Group Profiles. A Group Profile is a profile that is created
297first using a template (example) user. Then using the profile migration tool (see above), the profile is
298assigned access rights for the user group that needs to be given access to the group profile. </p><p> The next step is rather important. Instead of assigning a group profile to users (Using User Manager)
299on a &#8220;<span class="quote"><span class="emphasis"><em>per user</em></span></span>&#8221; basis, the group itself is assigned the now modified profile. </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> Be careful with Group Profiles. If the user who is a member of a group also has a personal
300profile, then the result will be a fusion (merge) of the two. </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2602384"></a>Default Profile for Windows Users</h2></div></div></div><p>
301<a class="indexterm" name="id2602392"></a>
302MS Windows 9x/Me and NT4/200x/XP will use a default profile for any user for whom a profile
303does not already exist. Armed with a knowledge of where the default profile is located on the Windows
304workstation, and knowing which registry keys effect the path from which the default profile is created,
305it is possible to modify the default profile to one that has been optimized for the site. This has
306significant administrative advantages.	</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2602407"></a>MS Windows 9x/Me</h3></div></div></div><p> To enable default per use profiles in Windows 9x/ME, you can either use the <span class="application">Windows
30798 System Policy Editor</span> or change the registry directly.	</p><p> To enable default per user profiles in Windows 9x/ME, launch the <span class="application">System Policy
308Editor</span>, then select <span class="guimenu">File</span> -&gt; <span class="guimenuitem">Open Registry</span>,
309next click on the <span class="guiicon">Local Computer</span> icon, click on <span class="guilabel">Windows 98 System</span>,
310select <span class="guilabel">User Profiles</span>, and click on the enable box. Remember to save the registry
311changes. </p><p> To modify the registry directly, launch the <span class="application">Registry Editor</span>
312(<span><b class="command">regedit.exe</b></span>) and select the hive <tt class="filename">HKEY_LOCAL_MACHINE\Network\Logon</tt>. Now
313add a DWORD type key with the name &#8220;<span class="quote"><span class="emphasis"><em>User Profiles,</em></span></span>&#8221; to
314enable user profiles to set the value
315to 1; to disable user profiles set it to 0. </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2602497"></a>User Profile Handling with Windows 9x/Me</h4></div></div></div><p> When a user logs on to a Windows 9x/Me machine, the local profile path,
316<tt class="filename">HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProfileList</tt>, is checked
317for an existing entry for that user. </p><p> If the user has an entry in this registry location, Windows 9x/Me checks for a locally cached
318version of the user profile. Windows 9x/Me also checks the user's home directory (or other specified
319directory if the location has been modified) on the server for the User Profile. If a profile exists
320in both locations, the newer of the two is used. If the User Profile exists on the server, but does not
321exist on the local machine, the profile on the server is downloaded and used. If the User Profile only
322exists on the local machine, that copy is used. </p><p> If a User Profile is not found in either location, the Default User Profile from the Windows
3239x/Me machine is used and copied to a newly created folder for the logged on user. At log off, any
324changes that the user made are written to the user's local profile. If the user has a roaming profile,
325the changes are written to the user's profile on the server. </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2602539"></a>MS Windows NT4 Workstation</h3></div></div></div><p> On MS Windows NT4, the default user profile is obtained from the location
326<tt class="filename">%SystemRoot%\Profiles</tt> which in a default installation will translate to
327<tt class="filename">C:\Windows NT\Profiles</tt>. Under this directory on a clean install there will be three
328(3) directories: <tt class="filename">Administrator</tt>, <tt class="filename">All
329Users,</tt> and <tt class="filename">Default
330User</tt>. </p><p> The <tt class="filename">All Users</tt> directory contains menu settings that are common across all
331system users. The <tt class="filename">Default User</tt> directory contains menu entries that are customizable
332per user depending on the profile settings chosen/created. </p><p> When a new user first logs onto an MS Windows NT4 machine, a new profile is created from: </p><div class="itemizedlist"><ul type="disc"><li><p>All Users settings.</p></li><li><p>Default User settings (contains the default <tt class="filename">NTUser.DAT</tt> file).</p></li></ul></div><p> When a user logs onto an MS Windows NT4 machine that is a member of a Microsoft security domain,
333	the following steps are followed in respect of profile handling: 
334
335<a class="indexterm" name="id2602629"></a>
336</p><div class="procedure"><ol type="1"><li><p> The users' account information that is obtained during the logon process
337	contains the location of the users' desktop profile. The profile path may be local to
338	the machine or it may be located on a network share. If there exists a profile at the
339	location of the path from the user account, then this profile is copied to the location
340	<tt class="filename">%SystemRoot%\Profiles\%USERNAME%</tt>. This profile then inherits the settings
341	in the <tt class="filename">All Users</tt> profile in the <tt class="filename">%SystemRoot%\Profiles</tt>
342	location. </p></li><li><p> If the user account has a profile path, but at its location a profile does not
343	exist, then a new profile is created in the <tt class="filename">%SystemRoot%\Profiles\%USERNAME%</tt>
344	directory from reading the <tt class="filename">Default User</tt> profile. </p></li><li><p> If the NETLOGON share on the authenticating server (logon server) contains
345	a policy file (<tt class="filename">NTConfig.POL</tt>), then its contents are applied to the
346	<tt class="filename">NTUser.DAT</tt> which is applied to the <tt class="filename">HKEY_CURRENT_USER</tt>
347	part of the registry. 
348	</p></li><li><p> When the user logs out, if the profile is set to be a roaming profile it will be
349	written out to the location of the profile. The <tt class="filename">NTuser.DAT</tt> file is then
350	recreated from the contents of the <tt class="filename">HKEY_CURRENT_USER</tt> contents. Thus,
351	should there not exist in the NETLOGON share an <tt class="filename">NTConfig.POL</tt> at the next
352	logon, the effect of the previous <tt class="filename">NTConfig.POL</tt> will still be held in the
353	profile. The effect of this is known as tattooing.
354	</p></li></ol></div><p> MS Windows NT4 profiles may be <span class="emphasis"><em>local</em></span> or <span class="emphasis"><em>roaming</em></span>. A local
355profile will stored in the <tt class="filename">%SystemRoot%\Profiles\%USERNAME%</tt> location. A roaming
356profile will also remain stored in the same way, unless the following registry key is created as shown: </p><pre class="screen"> HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\
357winlogon\"DeleteRoamingCache"=dword:0000000
358 </pre><p>
359In this case, the local copy (in <tt class="filename">%SystemRoot%\Profiles\%USERNAME%</tt>) will be deleted
360on logout.</p><p> Under MS Windows NT4, default locations for common resources like <tt class="filename">My Documents</tt>
361may be redirected to a network share by modifying the following registry keys. These changes may be
362affected via use of the System Policy Editor. To do so may require that you create your own template
363extension for the policy editor to allow this to be done through the GUI. Another way to do this is by
364way of first creating a default user profile, then while logged in as that user, run <span><b class="command">regedt32</b></span> to edit
365the key settings. </p><p>
366The Registry Hive key that affects the behavior of folders that are part of the default user
367profile are controlled by entries on Windows NT4 is:
368</p><pre class="screen">
369HKEY_CURRENT_USER
370	\Software
371		\Microsoft
372			\Windows
373				\CurrentVersion
374					\Explorer
375						\User Shell Folders
376</pre><p>
377<a class="indexterm" name="id2602840"></a>
378</p><p>  The above hive key contains a list of automatically managed
379folders. The default entries are shown in <a href="ProfileMgmt.html#ProfileLocs" title="Table�25.1.�User Shell Folder Registry Keys Default Values">the next table</a>.
380</p><div class="table"><a name="ProfileLocs"></a><p class="title"><b>Table�25.1.�User Shell Folder Registry Keys Default Values</b></p><table summary="User Shell Folder Registry Keys Default Values" border="1"><colgroup><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Name</th><th align="left">Default Value</th></tr></thead><tbody><tr><td align="left">AppData</td><td align="left">%USERPROFILE%\Application Data</td></tr><tr><td align="left">Desktop</td><td align="left">%USERPROFILE%\Desktop</td></tr><tr><td align="left">Favorites</td><td align="left">%USERPROFILE%\Favorites</td></tr><tr><td align="left">NetHood</td><td align="left">%USERPROFILE%\NetHood</td></tr><tr><td align="left">PrintHood</td><td align="left">%USERPROFILE%\PrintHood</td></tr><tr><td align="left">Programs</td><td align="left">%USERPROFILE%\Start Menu\Programs</td></tr><tr><td align="left">Recent</td><td align="left">%USERPROFILE%\Recent</td></tr><tr><td align="left">SendTo</td><td align="left">%USERPROFILE%\SendTo</td></tr><tr><td align="left">Start Menu </td><td align="left">%USERPROFILE%\Start Menu</td></tr><tr><td align="left">Startup</td><td align="left">%USERPROFILE%\Start Menu\Programs\Startup</td></tr></tbody></table></div><p> The registry key that contains the location of the default profile settings is: </p><p> <tt class="filename">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
381User Shell Folders</tt> </p><p> The default entries are shown in <a href="ProfileMgmt.html#regkeys" title="Table�25.2.�Defaults of Profile Settings Registry Keys">the next table</a>.</p><div class="table"><a name="regkeys"></a><p class="title"><b>Table�25.2.�Defaults of Profile Settings Registry Keys</b></p><table summary="Defaults of Profile Settings Registry Keys" border="1"><colgroup><col align="left"><col align="left"></colgroup><tbody><tr><td align="left">Common Desktop</td><td align="left">%SystemRoot%\Profiles\All Users\Desktop</td></tr><tr><td align="left">Common Programs</td><td align="left">%SystemRoot%\Profiles\All Users\Programs</td></tr><tr><td align="left">Common Start Menu</td><td align="left">%SystemRoot%\Profiles\All Users\Start Menu</td></tr><tr><td align="left">Common Startup</td><td align="left">%SystemRoot%\Profiles\All Users\Start Menu\Programs\Startup</td></tr></tbody></table></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2603068"></a>MS Windows 200x/XP</h3></div></div></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
382<a class="indexterm" name="id2603077"></a>
383MS Windows XP Home Edition does use default per user profiles, but cannot participate
384in domain security, cannot log onto an NT/ADS-style domain, and thus can obtain the profile only
385from itself. While there are benefits in doing this, the beauty of those MS Windows clients that
386can participate in domain logon processes allows the administrator to create a global default
387profile and enforce it through the use of Group Policy Objects (GPOs).
388</p></div><p> When a new user first logs onto an MS Windows 200x/XP machine, the default profile is obtained from
389<tt class="filename">C:\Documents and Settings\Default User</tt>. The administrator can modify or change the
390contents of this location and MS Windows 200x/XP will gladly use it. This is far from the optimum arrangement
391since it will involve copying a new default profile to every MS Windows 200x/XP client workstation. </p><p> When MS Windows 200x/XP participates in a domain security context, and if the default user profile is
392	not found, then the client will search for a default profile in the NETLOGON share of the authenticating
393	server. In MS Windows parlance,<tt class="filename">%LOGONSERVER%\NETLOGON\Default User,</tt> and if one
394exists there it will copy this to the workstation to the <tt class="filename">C:\Documents and Settings\</tt>
395under the Windows login name of the user. </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> This path translates, in Samba parlance, to the <tt class="filename">smb.conf</tt>
396<i class="parameter"><tt>[NETLOGON]</tt></i> share. The directory should be created at the root
397of this share and must be called <tt class="filename">Default User</tt>.
398</p></div><p> If a default profile does not exist in this location, then MS Windows 200x/XP will use the local
399default profile. </p><p> On logging out, the users' desktop profile will be stored to the location specified in the registry
400settings that pertain to the user. If no specific policies have been created or passed to the client
401during the login process (as Samba does automatically), then the user's profile will be written to the
402local machine only under the path <tt class="filename">C:\Documents and Settings\%USERNAME%</tt>. </p><p> Those wishing to modify the default behavior can do so through these three methods: </p><div class="itemizedlist"><ul type="disc"><li><p> Modify the registry keys on the local machine manually and place the new
403	default profile in the NETLOGON share root. This is not recommended as it is maintenance intensive.
404	</p></li><li><p> Create an NT4-style NTConfig.POL file that specified this behavior and locate
405	this file in the root of the NETLOGON share along with the new default profile. </p></li><li><p> Create a GPO that enforces this through Active Directory, and place the new
406	default profile in the NETLOGON share.	</p></li></ul></div><p>The registry hive key that effects the behavior of folders that are part of the default user
407profile are controlled by entries on Windows 200x/XP is: </p><p> <tt class="filename">HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
408Folders\</tt> </p><p>
409The above hive key contains a list of automatically managed folders. The default entries are shown
410in <a href="ProfileMgmt.html#defregpthkeys" title="Table�25.3.�Defaults of Default User Profile Paths Registry Keys">the next table</a>
411<a class="indexterm" name="id2603242"></a>
412</p><div class="table"><a name="defregpthkeys"></a><p class="title"><b>Table�25.3.�Defaults of Default User Profile Paths Registry Keys</b></p><table summary="Defaults of Default User Profile Paths Registry Keys" border="1"><colgroup><col align="left"><col align="left"></colgroup><thead><tr><th align="left">Name</th><th align="left">Default Value</th></tr></thead><tbody><tr><td align="left">AppData</td><td align="left">%USERPROFILE%\Application Data</td></tr><tr><td align="left">Cache</td><td align="left">%USERPROFILE%\Local Settings\Temporary Internet Files</td></tr><tr><td align="left">Cookies</td><td align="left">%USERPROFILE%\Cookies</td></tr><tr><td align="left">Desktop</td><td align="left">%USERPROFILE%\Desktop</td></tr><tr><td align="left">Favorites</td><td align="left">%USERPROFILE%\Favorites</td></tr><tr><td align="left">History</td><td align="left">%USERPROFILE%\Local Settings\History</td></tr><tr><td align="left">Local AppData</td><td align="left">%USERPROFILE%\Local Settings\Application Data</td></tr><tr><td align="left">Local Settings</td><td align="left">%USERPROFILE%\Local Settings</td></tr><tr><td align="left">My Pictures</td><td align="left">%USERPROFILE%\My Documents\My Pictures</td></tr><tr><td align="left">NetHood</td><td align="left">%USERPROFILE%\NetHood</td></tr><tr><td align="left">Personal</td><td align="left">%USERPROFILE%\My Documents</td></tr><tr><td align="left">PrintHood</td><td align="left">%USERPROFILE%\PrintHood</td></tr><tr><td align="left">Programs</td><td align="left">%USERPROFILE%\Start Menu\Programs</td></tr><tr><td align="left">Recent</td><td align="left">%USERPROFILE%\Recent</td></tr><tr><td align="left">SendTo</td><td align="left">%USERPROFILE%\SendTo</td></tr><tr><td align="left">Start Menu</td><td align="left">%USERPROFILE%\Start Menu</td></tr><tr><td align="left">Startup</td><td align="left">%USERPROFILE%\Start Menu\Programs\Startup</td></tr><tr><td align="left">Templates</td><td align="left">%USERPROFILE%\Templates</td></tr></tbody></table></div><p> There is also an entry called &#8220;<span class="quote"><span class="emphasis"><em>Default</em></span></span>&#8221; that has no value set. The default entry is
413of type <tt class="constant">REG_SZ</tt>, all the others are of type <tt class="constant">REG_EXPAND_SZ</tt>. </p><p> It makes a huge difference to the speed of handling roaming user profiles if all the folders are
414stored on a dedicated location on a network server. This means that it will not be necessary to write
415the Outlook PST file over the network for every login and logout. </p><p> To set this to a network location, you could use the following examples: </p><p><tt class="filename">%LOGONSERVER%\%USERNAME%\Default Folders</tt></p><p> This would store the folders in the user's home directory under a directory called <tt class="filename">Default
416Folders</tt>. You could also use: </p><p><tt class="filename">\\<i class="replaceable"><tt>SambaServer</tt></i>\<i class="replaceable"><tt>FolderShare</tt></i>\%USERNAME%</tt></p><p>
417in which case the default folders will be stored in the server named <i class="replaceable"><tt>SambaServer</tt></i>
418in the share called <i class="replaceable"><tt>FolderShare</tt></i> under a directory that has the name of the
419MS Windows user as seen by the Linux/UNIX file system.	</p><p> Please note that once you have created a default profile share, you MUST migrate a user's profile
420(default or custom) to it. </p><p> MS Windows 200x/XP profiles may be <span class="emphasis"><em>Local</em></span> or <span class="emphasis"><em>Roaming</em></span>.
421	A roaming profile will be cached locally unless the following registry key is created: 
422
423<a class="indexterm" name="id2603518"></a>
424</p><p> </p><pre class="programlisting"> HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\
425	winlogon\"DeleteRoamingCache"=dword:00000001</pre><p>
426In this case, the local cache copy will be deleted on logout.
427</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2603543"></a>Common Errors</h2></div></div></div><p>
428The following are some typical errors, problems and questions that have been asked on the Samba mailing lists.
429</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2603554"></a>Configuring Roaming Profiles for a Few Users or Groups</h3></div></div></div><p>
430With Samba-2.2.x, the choice you have is to enable or disable roaming profiles support. It is a
431global only setting. The default is to have roaming profiles and the default path will locate them in
432the user's home directory.
433</p><p>
434If disabled globally, then no one will have roaming profile ability. If enabled and you want it
435to apply only to certain machines, then on those machines on which roaming profile support is not wanted
436it is then necessary to disable roaming profile handling in the registry of each such machine.
437</p><p>
438With Samba-3, you can have a global profile setting in <tt class="filename">smb.conf</tt> and you can override this by
439per-user settings using the Domain User Manager (as with MS Windows NT4/ Win 200xx). </p><p> In any case, you can configure only one profile per user. That profile can be either: </p><div class="itemizedlist"><ul type="disc"><li><p>A profile unique to that user.</p></li><li><p>A mandatory profile (one the user cannot change).</p></li><li><p>A group profile (really should be mandatory, that is unchangable).</p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2603612"></a>Cannot Use Roaming Profiles</h3></div></div></div><p> A user requested the following: &#8220;<span class="quote"><span class="emphasis"><em> I do not want Roaming profiles to be implemented. I want
440to give users a local profile alone. Please help me, I am totally lost with this error. For the past
441two days I tried everything, I googled around but found no useful pointers. Please help me. </em></span></span>&#8221;</p><p> The choices are: </p><div class="variablelist"><dl><dt><span class="term">Local profiles</span></dt><dd><p> I know of no registry keys that will allow
442		auto-deletion of LOCAL profiles on log out.</p></dd><dt><span class="term">Roaming profiles</span></dt><dd><p> As a user logs onto the network, a centrally
443		stored profile is copied to the workstation to form a local profile. This local profile
444		will persist (remain on the workstation disk) unless a registry key is changed that will
445		cause this profile to be automatically deleted on logout. </p></dd></dl></div><p>The roaming profile choices are: </p><div class="variablelist"><dl><dt><span class="term">Personal roaming profiles</span></dt><dd><p> These are typically stored in
446		a profile share on a central (or conveniently located local) server. </p><p> Workstations cache (store) a local copy of the profile. This cached
447		copy is used when the profile cannot be downloaded at next logon. </p></dd><dt><span class="term">Group profiles</span></dt><dd><p>These are loaded from a central profile
448		server.</p></dd><dt><span class="term">Mandatory profiles</span></dt><dd><p> Mandatory profiles can be created for
449		a user as well as for any group that a user is a member of. Mandatory profiles cannot be
450		changed by ordinary users. Only the administrator can change or reconfigure a mandatory
451		profile. </p></dd></dl></div><p> A Windows NT4/200x/XP profile can vary in size from 130KB to very large. Outlook PST files are
452most often part of the profile and can be many GB in size. On average (in a well controlled environment),
453roaming profile size of 2MB is a good rule of thumb to use for planning purposes. In an undisciplined
454environment, I have seen up to 2GB profiles. Users tend to complain when it takes an hour to log onto a
455workstation but they harvest the fruits of folly (and ignorance). </p><p> The point of all the above is to show that roaming profiles and good controls of how they can be
456changed as well as good discipline make up for a problem-free site. </p><p> Microsoft's answer to the PST problem is to store all email in an MS Exchange Server backend. This
457removes the need for a PST file. </p><p>Local profiles mean: </p><div class="itemizedlist"><ul type="disc"><li><p>If each machine is used by many users, then much local disk storage is needed
458	for local profiles.</p></li><li><p>Every workstation the user logs into has
459	its own profile; these can be very different from machine to machine.</p></li></ul></div><p> On the other hand, use of roaming profiles means: </p><div class="itemizedlist"><ul type="disc"><li><p>The network administrator can control the desktop environment of all users.</p></li><li><p>Use of mandatory profiles drastically reduces network management overheads.</p></li><li><p>In the long run, users will experience fewer problems.</p></li></ul></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2603785"></a>Changing the Default Profile</h3></div></div></div><p>&#8220;<span class="quote"><span class="emphasis"><em>When the client logs onto the Domain Controller, it searches
460for a profile to download. Where do I put this default profile?</em></span></span>&#8221;</p><p>
461<a class="indexterm" name="id2603800"></a>
462First, the Samba server needs to be configured as a Domain Controller. This can be done by
463setting in <tt class="filename">smb.conf</tt>: </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2603822"></a><i class="parameter"><tt>
464					
465				security = user</tt></i></td></tr><tr><td><a class="indexterm" name="id2603837"></a><i class="parameter"><tt>
466					
467				os level = 32 (or more)</tt></i></td></tr><tr><td><a class="indexterm" name="id2603852"></a><i class="parameter"><tt>
468					
469				domain logons = Yes</tt></i></td></tr></table><p> There must be a <i class="parameter"><tt>[netlogon]</tt></i> share that is world readable. It is
470a good idea to add a logon script to pre-set printer and drive connections. There is also a facility
471for automatically synchronizing the workstation time clock with that of the logon server (another good
472thing to do). </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p> To invoke auto-deletion of roaming profile from the local workstation cache (disk storage), use
473the <span class="application">Group Policy Editor</span> to create a file called <tt class="filename">NTConfig.POL</tt>
474with the appropriate entries. This file needs to be located in the <i class="parameter"><tt>netlogon</tt></i>
475share root directory.</p></div><p> Windows clients need to be members of the domain. Workgroup machines do not use network logons
476so they do not interoperate with domain profiles. </p><p> For roaming profiles, add to <tt class="filename">smb.conf</tt>: </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2603929"></a><i class="parameter"><tt>
477					
478				logon path = \\%N\profiles\%U</tt></i></td></tr><tr><td># Default logon drive is Z:</td></tr><tr><td><a class="indexterm" name="id2603950"></a><i class="parameter"><tt>
479					
480				logon drive = H:</tt></i></td></tr><tr><td># This requires a PROFILES share that is world writable.</td></tr></table></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="PolicyMgmt.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="optional.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="pam.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter�24.�System and Account Policies�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�26.�PAM-Based Distributed Authentication</td></tr></table></div></body></html>
481