Follow DTD more strictly
[Samba/gebeck_regimport.git] / docs / docbook / projdoc / ProfileMgmt.xml
blob7e70158c133626f0e8c046635696be5496030d13
1 <chapter id="ProfileMgmt">
2 <chapterinfo>
3         &author.jht;
4     <pubdate>April 3 2003</pubdate>
5 </chapterinfo>
7 <title>Desktop Profile Management</title>
9 <sect1>
10 <title>Features and Benefits</title>
12 <para>
13 Roaming profiles are feared by some, hated by a few, loved by many, and a Godsend for
14 some administrators.
15 </para>
17 <para>
18 Roaming profiles allow an administrator to make available a consistent user desktop
19 as the user moves from one machine to another. This chapter provides much information
20 regarding how to configure and manage roaming profiles.
21 </para>
23 <para>
24 While roaming profiles might sound like nirvana to some, they are a real and tangible
25 problem to others. In particular, users of mobile computing tools, where often there may not
26 be a sustained network connection, are often better served by purely local profiles.
27 This chapter provides information to help the Samba administrator deal with those
28 situations.
29 </para>
31 </sect1>
33 <sect1>
34 <title>Roaming Profiles</title>
36 <warning>
37 <para>
38 Roaming profiles support is different for Windows 9x/Me and Windows NT4/200x.
39 </para>
40 </warning>
42 <para>
43 Before discussing how to configure roaming profiles, it is useful to see how
44 Windows 9x/Me and Windows NT4/200x clients implement these features.
45 </para>
47 <para>
48 Windows 9x/Me clients send a NetUserGetInfo request to the server to get the user's
49 profiles location. However, the response does not have room for a separate
50 profiles location field, only the user's home share. This means that Windows 9x/Me
51 profiles are restricted to being stored in the user's home directory.
52 </para>
55 <para>
56 Windows NT4/200x  clients send a NetSAMLogon RPC request, which contains many fields
57 including a separate field for the location of the user's profiles.
58 </para>
60 <sect2>
61 <title>Samba Configuration for Profile Handling</title>
63 <para>
64 This section documents how to configure Samba for MS Windows client profile support.
65 </para>
67 <sect3>
68 <title>NT4/200x User Profiles</title>
70 <para>
71 For example, to support Windows NT4/200x clients, set the followoing in the [global] section of the &smb.conf; file:
72 </para>
74 <para>
75 <smbconfblock>
76 <smbconfoption><name>logon path</name><value>\\profileserver\profileshare\profilepath\%U\moreprofilepath</value></smbconfoption>
77 </smbconfblock>
79 This is typically implemented like:
81 <smbconfblock>
82 <smbconfoption><name>logon path</name><value>\\%L\Profiles\%u</value></smbconfoption>
83 </smbconfblock>
84 where <quote>%L</quote> translates to the name of the Samba server and <quote>%u</quote> translates to the user name.
85 </para>
87 <para>
88 The default for this option is <filename>\\%N\%U\profile</filename>, namely <filename>\\sambaserver\username\profile</filename>. 
89 The <filename>\\N%\%U</filename> service is created automatically by the [homes] service. If you are using
90 a Samba server for the profiles, you must make the share that is specified in the logon path
91 browseable. Please refer to the man page for &smb.conf; in respect of the different
92 semantics of <quote>%L</quote> and <quote>%N</quote>, as well as <quote>%U</quote> and <quote>%u</quote>.
93 </para>
95 <note>
96 <para>
97 MS Windows NT/200x clients at times do not disconnect a connection to a server between logons. It is recommended
98 to not use the <smbconfsection>homes</smbconfsection> meta-service name as part of the profile share path.
99 </para>
100 </note>
101 </sect3>
103 <sect3>
104 <title>Windows 9x/Me User Profiles</title>
106 <para>
107 To support Windows 9x/Me clients, you must use the <smbconfoption><name>logon home</name></smbconfoption>
108 parameter. Samba has been fixed so <userinput>net use /home</userinput> now works as well and it, too, relies
109 on the <command>logon home</command> parameter.
110 </para>
112 <para>
113 By using the logon home parameter, you are restricted to putting Windows 9x/Me profiles in the user's home
114 directory.  But wait! There is a trick you can use. If you set the following in the
115 <smbconfsection>[global]</smbconfsection> section of your &smb.conf; file:
116 </para>
117 <para><smbconfblock>
118 <smbconfoption><name>logon home</name><value>\\%L\%U\.profiles</value></smbconfoption>
119 </smbconfblock></para>
121 <para>
122 then your Windows 9x/Me clients will dutifully put their clients in a subdirectory
123 of your home directory called <filename>.profiles</filename> (making them hidden).
124 </para>
126 <para>
127 Not only that, but <userinput>net use /home</userinput> will also work because of a feature in
128 Windows 9x/Me. It removes any directory stuff off the end of the home directory area
129 and only uses the server and share portion. That is, it looks like you
130 specified <filename>\\%L\%U</filename> for <smbconfoption><name>logon home</name></smbconfoption>.
131 </para>
132 </sect3>
134 <sect3>
135 <title>Mixed Windows 9x/Me and Windows NT4/200x User Profiles</title>
137 <para>
138 You can support profiles for Windows 9x and Windows NT clients by setting both the
139 <smbconfoption><name>logon home</name></smbconfoption> and <smbconfoption><name>logon path</name></smbconfoption> parameters. For example:
140 </para>
142 <para><smbconfblock>
143 <smbconfoption><name>logon home</name><value>\\%L\%u\.profiles</value></smbconfoption>
144 <smbconfoption><name>logon path</name><value>\\%L\profiles\%u</value></smbconfoption>
145 </smbconfblock></para>
147 </sect3>
148 <sect3>
149 <title>Disabling Roaming Profile Support</title>
151 <para>
152 A question often asked is: <quote>How may I enforce use of local profiles?</quote> or
153 <quote>How do I disable roaming profiles?</quote>
154 </para>
156 <para>
157 <indexterm><primary>roaming profiles</primary></indexterm>
158 There are three ways of doing this:
159 <indexterm><primary>windows registry settings</primary><secondary>roaming profiles</secondary></indexterm>
160 </para>
163 <variablelist>
164         <varlistentry>
165                 <term>In &smb.conf;</term>
166                 <listitem><para>
167                 Affect the following settings and ALL clients will be forced to use a local profile:
168                 <smbconfoption><name>logon home</name></smbconfoption> and <smbconfoption><name>logon path</name></smbconfoption>
169                 </para></listitem>
170         </varlistentry>
172         <varlistentry>
173                 <term>MS Windows Registry</term>
174                 <listitem><para>
175                 By using the Microsoft Management Console gpedit.msc to instruct your MS Windows XP
176                 machine to use only a local profile. This, of course, modifies registry settings. The full
177                 path to the option is:
178 <screen>
179 Local Computer Policy\
180         Computer Configuration\
181                 Administrative Templates\
182                         System\
183                                 User Profiles\
185 Disable: Only Allow Local User Profiles 
186 Disable: Prevent Roaming Profile Change from Propagating to the Server
187 </screen>
188         </para> </listitem>
189         </varlistentry>
191         <varlistentry>
192                 <term>Change of Profile Type:</term>
193                 <listitem><para>From the start menu right-click on <guiicon>My Computer icon</guiicon>,
194                 select <guimenuitem>Properties</guimenuitem>, click on the <guilabel>User Profiles</guilabel>
195                 tab, select the profile you wish to change from
196                 <guimenu>Roaming</guimenu> type to <guimenu>Local</guimenu>, and click on
197                 <guibutton>Change Type</guibutton>.
198                 </para></listitem>
199         </varlistentry>
200 </variablelist>
202 <para>
203 Consult the MS Windows registry guide for your particular MS Windows version for more information
204 about which registry keys to change to enforce use of only local user profiles.
205 </para>
207 <note><para>
208 The specifics of how to convert a local profile to a roaming profile, or a roaming profile
209 to a local one vary according to the version of MS Windows you are running. Consult the Microsoft MS
210 Windows Resource Kit for your version of Windows for specific information.
211 </para></note>
213 </sect3> </sect2>
215 <sect2> <title>Windows Client Profile Configuration Information</title>
217 <sect3> <title>Windows 9x/Me Profile Setup</title>
219 <para>
220 When a user first logs in on Windows 9X, the file user.DAT is created, as are folders
221 <filename>Start Menu</filename>, <filename>Desktop</filename>, <filename>Programs</filename>, and
222 <filename>Nethood</filename>. These directories and their contents will be merged with the local
223 versions stored in <filename>c:\windows\profiles\username</filename> on subsequent logins, taking the
224 most recent from each.  You will need to use the <smbconfsection>[global]</smbconfsection> options
225 <smbconfoption><name>preserve case</name><value>yes</value></smbconfoption>,
226 <smbconfoption><name>short preserve case</name><value>yes</value></smbconfoption> and
227 <smbconfoption><name>case sensitive</name><value>no</value></smbconfoption>
228 in order to maintain capital letters in shortcuts in any of the profile folders.
229 </para>
231 <para>
232 The <filename>user.DAT</filename> file contains all the user's preferences. If you wish to enforce a set of preferences,
233 rename their <filename>user.DAT</filename> file to <filename>user.MAN</filename>, and deny them write access to this file.
234 </para>
236 <orderedlist>
237         <listitem> <para>
238         On the Windows 9x/Me machine, go to <guimenu>Control Panel</guimenu> ->
239         <guimenuitem>Passwords</guimenuitem> and select the <guilabel>User Profiles</guilabel> tab.
240         Select the required level of roaming preferences. Press <guibutton>OK</guibutton>, but do not
241         allow the computer to reboot.
242         </para> </listitem>
244         <listitem> <para>
245         On the Windows 9x/Me machine, go to <guimenu>Control Panel</guimenu> ->
246         <guimenuitem>Network</guimenuitem> -> <guimenuitem>Client for Microsoft Networks</guimenuitem>
247         -> <guilabel>Preferences</guilabel>. Select <guilabel>Log on to NT Domain</guilabel>.   Then,
248         ensure that the Primary Logon is <guilabel>Client for Microsoft Networks</guilabel>. Press
249         <guibutton>OK</guibutton>, and this time allow the computer to reboot.
250         </para> </listitem>
251 </orderedlist>
253 <para> Under Windows 9x/ME, profiles are downloaded from the Primary Logon. If you have the Primary Logon
254 as <quote>Client for Novell Networks</quote>, then the profiles and logon script will be downloaded from
255 your Novell Server. If you have the Primary Logon as <quote>Windows Logon</quote>, then the profiles will
256 be loaded from the local machine &smbmdash; a bit against the concept of roaming profiles, it would seem!  </para>
258 <para>
259 You will now find that the Microsoft Networks Login box contains <constant>[user, password, domain]</constant> instead
260 of just <constant>[user, password]</constant>. Type in the Samba server's domain name (or any other domain known to exist,
261 but bear in mind that the user will be authenticated against this domain and profiles downloaded from it,
262 if that domain logon server supports it), user name and user's password. 
263 </para>
265 <para> Once the user has been successfully validated, the Windows 9x/Me machine will inform you that
266 <computeroutput>The user has not logged on before</computeroutput> and asks you <computeroutput>Do you
267 wish to save the user's preferences?</computeroutput> Select <guibutton>Yes</guibutton>. </para>
269 <para> Once the Windows 9x/Me client comes up with the desktop, you should be able to examine the
270 contents of the directory specified in the <smbconfoption><name>logon path</name></smbconfoption> on
271 the Samba server and verify that the <filename>Desktop</filename>, <filename>Start Menu</filename>,
272 <filename>Programs</filename> and <filename>Nethood</filename> folders have been created. </para>
274 <para> These folders will be cached locally on the client, and updated when the user logs off (if
275 you haven't made them read-only by then). You will find that if the user creates further folders or
276 shortcut, that the client will merge the profile contents downloaded with the contents of the profile
277 directory already on the local client, taking the newest folders and shortcut from each set.    </para>
279 <para> If you have made the folders/files read-only on the Samba server, then you will get errors from
280 the Windows 9x/Me machine on logon and logout as it attempts to merge the local and remote profile.
281 Basically, if you have any errors reported by the Windows 9x/Me machine, check the UNIX file permissions
282 and ownership rights on the profile directory contents, on the Samba server. </para>
284 <para> If you have problems creating user profiles, you can reset the user's local desktop cache, as
285 shown below. When this user next logs in, the user will be told that he/she is logging in <quote>for
286         the first time</quote>.
287         
288 <indexterm><primary>windows registry settings</primary><secondary>profile path</secondary></indexterm>
289         </para>
292 <orderedlist>
293         <listitem><para>
294         Instead of logging in under the [user, password, domain] dialog, press <guibutton>escape</guibutton>.
295         </para> </listitem>
297         <listitem><para>
298         Run the <command>regedit.exe</command> program, and look in:
299         </para>
301         <para>
302         <filename>HKEY_LOCAL_MACHINE\Windows\CurrentVersion\ProfileList</filename>
303         </para>
305         <para>
306         You will find an entry for each user of ProfilePath.    Note the contents of this key
307         (likely to be <filename>c:\windows\profiles\username</filename>), then delete the key
308         <parameter>ProfilePath</parameter> for the required user.
309         </para></listitem>
311         <listitem><para>
312         Exit the registry editor.
313         </para></listitem>
315         <listitem><para>
316         Search for the user's .PWL password-caching file in the <filename>c:\windows</filename> directory, and delete it.
317         </para></listitem>
319         <listitem><para>
320         Log off the Windows 9x/Me client.
321         </para></listitem>
323         <listitem><para>
324         Check the contents of the profile path (see <smbconfoption><name>logon path</name></smbconfoption>
325         described above) and delete the <filename>user.DAT</filename> or <filename>user.MAN</filename>
326         file for the user, making a backup if required. 
327         </para></listitem>
328 </orderedlist>
330 <warning><para>
331 Before deleting the contents of the directory listed in the <parameter>ProfilePath</parameter>
332 (this is likely to be <filename>c:\windows\profiles\username)</filename>, ask the owner if they have
333 any important files stored on their desktop or in their start menu. Delete the contents of the
334 directory <parameter>ProfilePath</parameter> (making a backup if any of the files are needed).
335 </para>
337 <para>
338 This will have the effect of removing the local (read-only hidden system file) <filename>user.DAT</filename>
339 in their profile directory, as well as the local <quote>desktop,</quote> <quote>nethood,</quote>
340 <quote>start menu,</quote> and <quote>programs</quote> folders.
341 </para></warning>
343 <para>
344 If all else fails, increase Samba's debug log levels to between 3 and 10, and/or run a packet
345 sniffer program such as ethereal or <command>netmon.exe</command>, and look for error messages.
346 </para>
348 <para> If you have access to an Windows NT4/200x server, then first set up roaming profiles and/or
349 netlogons on the Windows NT4/200x server. Make a packet trace, or examine the example packet traces
350 provided with Windows NT4/200x server, and see what the differences are with the equivalent Samba trace.
351 </para>
353 </sect3>
355 <sect3>
356 <title>Windows NT4 Workstation</title>
358 <para> When a user first logs in to a Windows NT Workstation, the profile NTuser.DAT is created. The profile
359 location can be now specified through the <smbconfoption><name>logon path</name></smbconfoption> parameter.
360 </para>
362 <para> There is a parameter that is now available for use with NT Profiles: <smbconfoption><name>logon drive</name></smbconfoption>. 
363 This should be set to <filename>H:</filename> or any other drive, and should be used in conjunction with
364 the new <smbconfoption><name>logon home</name></smbconfoption> parameter. </para>
366 <para> The entry for the NT4 profile is a directory not a file. The NT help on Profiles mentions that a
367 directory is also created with a .PDS extension. The user, while logging in, must have write permission
368 to create the full profile path (and the folder with the .PDS extension for those situations where it
369 might be created.)  </para>
371 <para> In the profile directory, Windows NT4 creates more folders than Windows 9x/Me. It creates
372 <filename>Application Data</filename> and others, as well as <filename>Desktop</filename>,
373 <filename>Nethood</filename>, <filename>Start Menu,</filename> and <filename>Programs</filename>.
374 The profile itself is stored in a file <filename>NTuser.DAT</filename>. Nothing appears to be stored
375 in the .PDS directory, and its purpose is currently unknown. </para>
377 <para> You can use the <application>System Control Panel</application> to copy a local profile onto
378 a Samba server (see NT Help on Profiles; it is also capable of firing up the correct location in the
379 <application>System Control Panel</application> for you). The NT Help file also mentions that renaming
380 <filename>NTuser.DAT</filename> to <filename>NTuser.MAN</filename> turns a profile into a mandatory one.
381 </para>
383 <para> The case of the profile is significant.  The file must be called <filename>NTuser.DAT</filename>
384 or, for a mandatory profile, <filename>NTuser.MAN</filename>. </para> </sect3>
386 <sect3> <title>Windows 2000/XP Professional</title>
388 <para> You must first convert the profile from a local profile to a domain profile on the MS Windows
389 workstation as follows: </para>
391 <procedure>
392         <step><para> Log on as the <emphasis>local</emphasis> workstation administrator. </para></step>
394         <step><para> Right-click on the <guiicon>My Computer</guiicon> Icon, select
395         <guimenuitem>Properties</guimenuitem>.</para></step>
397         <step><para> Click on the <guilabel>User Profiles</guilabel> tab.</para></step>
399         <step><para> Select the profile you wish to convert (click it once).</para></step>
401         <step><para> Click on the <guibutton>Copy To</guibutton> button.</para></step>
403         <step><para> In the <guilabel>Permitted to use</guilabel> box, click on the
404         <guibutton>Change</guibutton> button. </para></step>
406         <step><para> Click on the <guilabel>Look in</guilabel> area that lists the machine name. When you click here, it will
407         open up a selection box. Click on the domain to which the profile must be accessible. </para>
409         <note><para>You will need to log on if a logon box opens up. 
410         For example, connect as <replaceable>DOMAIN</replaceable>\root, password:
411         <replaceable>mypassword</replaceable>.</para></note></step>
413         <step><para> To make the profile capable of being used by anyone, select <quote>Everyone</quote>. </para></step>
415         <step><para> Click on <guibutton>OK</guibutton> and the Selection box will close. </para></step>
417         <step><para> Now click on <guibutton>OK</guibutton> to create the profile in the path
418         you nominated.  </para></step>
419 </procedure>
421 <para> Done. You now have a profile that can be edited using the Samba <command>profiles</command> tool.
422 </para>
424 <note><para>
425 Under Windows NT/200x, the use of mandatory profiles forces the use of MS Exchange storage of mail
426 data and keeps it out of the desktop profile. That keeps desktop profiles from becoming unusable.
427 </para></note>
429 <sect4>
430 <title>Windows XP Service Pack 1</title>
431         <para>
432         There is a security check new to Windows XP (or maybe only Windows XP service pack 1).
433         It can be disabled via a group policy in the Active Directory. The policy is called:
434         </para>
436         <para>
437                 <filename>Computer Configuration\Administrative Templates\System\User Profiles\<?latex \linebreak ?>Do not check for
438         user ownership of Roaming Profile Folders</filename>i
439         </para>
441         <para>
442         This should be set to <constant>Enabled</constant>.
443         </para>
445         <para>
446         Does the new version of Samba have an Active Directory analogue?  If so, then you may be able to set the policy through this.
447         </para>
449         <para>If you cannot set group policies in Samba, then you may be able to set the policy locally on
450         each machine. If you want to try this, then do the following (N.B. I do not know for sure that this
451         will work in the same way as a domain group policy):
452         </para>
455 <procedure>
456         <step><para>On the XP workstation, log in with an Administrative account.</para></step>
458         <step><para>Click on <guimenu>Start</guimenu> -> <guimenuitem>Run</guimenuitem>.</para></step>
459         <step><para>Type <command>mmc</command>.</para></step>
460         <step><para>Click on <guibutton>OK</guibutton>.</para></step>
461         <step><para>A Microsoft Management Console should appear.</para></step>
462         <step><para>Click on <guimenu>File</guimenu> -> <guimenuitem>Add/Remove Snap-in</guimenuitem> -> <guimenuitem>Add</guimenuitem>.</para></step> 
463         <step><para>Double-click on <guiicon>Group Policy</guiicon>.</para></step> 
464         <step><para>Click on <guibutton>Finish</guibutton> -> <guibutton>Close</guibutton>.</para></step> 
465         <step><para>Click on <guibutton>OK</guibutton>.</para></step>
466         <step><para>In the <quote>Console Root</quote> window expand <guiicon>Local Computer Policy</guiicon> ->
467                 <guiicon>Computer Configuration</guiicon> -> <guiicon>Administrative Templates</guiicon> -> <guiicon>System</guiicon> -> <guiicon>User Profiles</guiicon>.</para></step>
468         <step><para>Double-click on <guilabel>Do not check for user ownership of Roaming Profile Folders</guilabel>.</para></step>
469         <step><para>Select <guilabel>Enabled</guilabel>.</para></step>
470         <step><para>Click on <guibutton>OK</guibutton>.</para></step>
471         <step><para>Close the whole console. You do not need to save the settings (this refers to the
472         console settings rather than the policies you have changed).</para></step>
473         <step><para>Reboot.</para></step>
474 </procedure>
475 </sect4>
476 </sect3>
477 </sect2>
479 <sect2>
480         <title>Sharing Profiles between W9x/Me and NT4/200x/XP <?latex \linebreak ?>Workstations</title>
482 <para> Sharing of desktop profiles between Windows versions is not recommended. Desktop profiles are an
483 evolving phenomenon and profiles for later versions of MS Windows clients add features that may interfere
484 with earlier versions of MS Windows clients. Probably the more salient reason to not mix profiles is
485 that when logging off an earlier version of MS Windows, the older format of profile contents may overwrite
486 information that belongs to the newer version resulting in loss of profile information content when that
487 user logs on again with the newer version of MS Windows. </para>
489 <para> If you then want to share the same Start Menu/Desktop with W9x/Me, you will need to specify a common
490 location for the profiles. The &smb.conf; parameters that need to be common are <smbconfoption><name>logon path</name></smbconfoption> and <smbconfoption><name>logon home</name></smbconfoption>. </para>
492 <para> If you have this set up correctly, you will find separate <filename>user.DAT</filename> and
493 <filename>NTuser.DAT</filename> files in the same profile directory. </para>
495 </sect2>
497 <sect2>
498 <title>Profile Migration from Windows NT4/200x Server to Samba</title>
500 <para> There is nothing to stop you from specifying any path that you like for the location of users' profiles.
501 Therefore, you could specify that the profile be stored on a Samba server, or any other SMB server,
502 as long as that SMB server supports encrypted passwords. </para>
504 <sect3>
505 <title>Windows NT4 Profile Management Tools</title>
507 <para> Unfortunately, the Resource Kit information is specific to the version of MS Windows NT4/200x. The
508 correct resource kit is required for each platform. </para>
510 <para>Here is a quick guide:</para>
512 <procedure>
513         <step><para> On your NT4 Domain Controller, right click on <guiicon>My Computer</guiicon>, then select the
514         tab labeled <guilabel>User Profiles</guilabel>. </para></step>
516         <step><para> Select a user profile you want to migrate and click on it. </para>
518         <note><para>I am using the term <quote>migrate</quote> loosely. You can copy a profile to create a group
519         profile. You can give the user <parameter>Everyone</parameter> rights to the profile you copy this to. That
520         is what you need to do, since your Samba domain is not a member of a trust relationship with your NT4
521         PDC.</para></note></step>
523         <step><para>Click on the <guibutton>Copy To</guibutton> button.</para></step>
525         <step><para>In the box labeled <guilabel>Copy Profile to</guilabel> add your new path, e.g.,
526         <filename>c:\temp\foobar</filename></para></step>
528         <step><para>Click on <guibutton>Change</guibutton> in the <guilabel>Permitted to use</guilabel> box.</para></step>
530         <step><para>Click on the group <quote>Everyone</quote>, click on <guibutton>OK</guibutton>. This
531         closes the <quote>choose user</quote> box.</para></step>
533         <step><para>Now click on <guibutton>OK</guibutton>.</para></step>
534 </procedure>
536 <para> Follow the above for every profile you need to migrate.  </para>
538 </sect3>
540 <sect3>
541 <title>Side Bar Notes</title>
544 <para>
545 <indexterm><primary>SID</primary></indexterm>
546 You should obtain the SID of your NT4 domain. You can use smbpasswd to do this. Read the man
547 page.</para>
549 </sect3>
551 <sect3> <title>moveuser.exe</title>
553 <para> The Windows 200x professional resource kit has <command>moveuser.exe</command>. <command>moveuser.exe</command> changes the security of a profile
554 from one user to another. This allows the account domain to change, and/or the user name to change.</para>
556 <para>
557 This command is like the Samba <command>profiles</command> tool.
558 </para>
560 </sect3>
562 <sect3>
563 <title>Get SID</title>
565 <para>
566 <indexterm><primary>SID</primary></indexterm>
567 You can identify the SID by using <command>GetSID.exe</command> from the Windows NT Server 4.0 Resource Kit. </para>
569 <para> Windows NT 4.0 stores the local profile information in the registry under the following key:
570 <filename>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList</filename> </para>
572 <para> Under the ProfileList key, there will be subkeys named with the SIDs of the users who have logged
573 on to this computer. (To find the profile information for the user whose locally cached profile you want
574 to move, find the SID for the user with the <command>GetSID.exe</command> utility.) Inside the appropriate user's subkey,
575 you will see a string value named <parameter>ProfileImagePath</parameter>. </para>
577 </sect3> </sect2> </sect1>
579 <sect1> <title>Mandatory Profiles</title>
581 <para>
582 <indexterm><primary>mandatory profiles</primary></indexterm>
583 A Mandatory Profile is a profile that the user does not have the ability to overwrite. During the
584 user's session, it may be possible to change the desktop environment, however, as the user logs out all changes
585 made will be lost. If it is desired to not allow the user any ability to change the desktop environment,
586 then this must be done through policy settings. See the previous chapter. </para>
588 <note><para>
589 Under NO circumstances should the profile directory (or its contents) be made read-only
590 as this may render the profile un-usable. Where it is essential to make a profile read-only
591 within the UNIX file system, this can be done but then you absolutely must use the <command>fake-permissions</command>
592 VFS module to instruct MS Windows NT/200x/XP clients that the Profile has write permission for the user. See <link linkend="fakeperms"/>.
593 </para></note>
595 <para> For MS Windows NT4/200x/XP, the above method can also be used to create mandatory profiles. To
596 convert a group profile into a mandatory profile, simply locate the <filename>NTUser.DAT</filename> file in the copied profile
597 and rename it to <filename>NTUser.MAN</filename>. </para>
599 <para> For MS Windows 9x/ME, it is the <filename>User.DAT</filename> file that must be renamed to
600 <filename>User.MAN</filename> to effect a mandatory profile. </para>
602 </sect1>
604 <sect1>
605 <title>Creating and Managing Group Profiles</title>
607 <para>
608 <indexterm><primary>group profiles</primary></indexterm>
609 Most organizations are arranged into departments. There is a nice benefit in this fact since usually
610 most users in a department require the same desktop applications and the same desktop layout. MS
611 Windows NT4/200x/XP will allow the use of Group Profiles. A Group Profile is a profile that is created
612 first using a template (example) user. Then using the profile migration tool (see above), the profile is
613 assigned access rights for the user group that needs to be given access to the group profile. </para>
615 <para> The next step is rather important. Instead of assigning a group profile to users (Using User Manager)
616 on a <quote>per user</quote> basis, the group itself is assigned the now modified profile. </para>
618 <note>
619 <para> Be careful with Group Profiles. If the user who is a member of a group also has a personal
620 profile, then the result will be a fusion (merge) of the two. </para>
621 </note>
623 </sect1>
625 <sect1>
626 <title>Default Profile for Windows Users</title>
628 <para>
629 <indexterm><primary>default profile</primary></indexterm>
630 MS Windows 9x/Me and NT4/200x/XP will use a default profile for any user for whom a profile
631 does not already exist. Armed with a knowledge of where the default profile is located on the Windows
632 workstation, and knowing which registry keys effect the path from which the default profile is created,
633 it is possible to modify the default profile to one that has been optimized for the site. This has
634 significant administrative advantages.  </para>
636 <sect2>
637 <title>MS Windows 9x/Me</title>
639 <para> To enable default per use profiles in Windows 9x/ME, you can either use the <application>Windows
640 98 System Policy Editor</application> or change the registry directly.  </para>
642 <para> To enable default per user profiles in Windows 9x/ME, launch the <application>System Policy
643 Editor</application>, then select <guimenu>File</guimenu> -> <guimenuitem>Open Registry</guimenuitem>,
644 next click on the <guiicon>Local Computer</guiicon> icon, click on <guilabel>Windows 98 System</guilabel>,
645 select <guilabel>User Profiles</guilabel>, and click on the enable box. Remember to save the registry
646 changes. </para>
648 <para> To modify the registry directly, launch the <application>Registry Editor</application>
649 (<command>regedit.exe</command>) and select the hive <filename>HKEY_LOCAL_MACHINE\Network\Logon</filename>. Now
650 add a DWORD type key with the name <quote>User Profiles,</quote> to
651 enable user profiles to set the value
652 to 1; to disable user profiles set it to 0. </para>
654 <sect3>
655 <title>User Profile Handling with Windows 9x/Me</title>
657 <para> When a user logs on to a Windows 9x/Me machine, the local profile path,
658 <filename>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProfileList</filename>, is checked
659 for an existing entry for that user. </para>
661 <para> If the user has an entry in this registry location, Windows 9x/Me checks for a locally cached
662 version of the user profile. Windows 9x/Me also checks the user's home directory (or other specified
663 directory if the location has been modified) on the server for the User Profile. If a profile exists
664 in both locations, the newer of the two is used. If the User Profile exists on the server, but does not
665 exist on the local machine, the profile on the server is downloaded and used. If the User Profile only
666 exists on the local machine, that copy is used. </para>
668 <para> If a User Profile is not found in either location, the Default User Profile from the Windows
669 9x/Me machine is used and copied to a newly created folder for the logged on user. At log off, any
670 changes that the user made are written to the user's local profile. If the user has a roaming profile,
671 the changes are written to the user's profile on the server. </para>
673 </sect3> </sect2>
675 <sect2>
676 <title>MS Windows NT4 Workstation</title>
678 <para> On MS Windows NT4, the default user profile is obtained from the location
679 <filename>%SystemRoot%\Profiles</filename> which in a default installation will translate to
680 <filename>C:\Windows NT\Profiles</filename>. Under this directory on a clean install there will be three
681 (3) directories: <filename>Administrator</filename>, <filename>All
682 Users,</filename> and <filename>Default
683 User</filename>. </para>
685 <para> The <filename>All Users</filename> directory contains menu settings that are common across all
686 system users. The <filename>Default User</filename> directory contains menu entries that are customizable
687 per user depending on the profile settings chosen/created. </para>
689 <para> When a new user first logs onto an MS Windows NT4 machine, a new profile is created from: </para>
691 <itemizedlist>
692         <listitem><para>All Users settings.</para></listitem>
693         <listitem><para>Default User settings (contains the default <filename>NTUser.DAT</filename> file).</para></listitem>
694 </itemizedlist>
696 <para> When a user logs onto an MS Windows NT4 machine that is a member of a Microsoft security domain,
697         the following steps are followed in respect of profile handling: 
699 <indexterm><primary>NTConfig.POL</primary></indexterm>
700 </para>
703 <procedure>
704         <step> <para> The users' account information that is obtained during the logon process
705         contains the location of the users' desktop profile. The profile path may be local to
706         the machine or it may be located on a network share. If there exists a profile at the
707         location of the path from the user account, then this profile is copied to the location
708         <filename>%SystemRoot%\Profiles\%USERNAME%</filename>. This profile then inherits the settings
709         in the <filename>All Users</filename> profile in the <filename>%SystemRoot%\Profiles</filename>
710         location. </para> </step>
712         <step> <para> If the user account has a profile path, but at its location a profile does not
713         exist, then a new profile is created in the <filename>%SystemRoot%\Profiles\%USERNAME%</filename>
714         directory from reading the <filename>Default User</filename> profile. </para> </step>
716         <step> <para> If the NETLOGON share on the authenticating server (logon server) contains
717         a policy file (<filename>NTConfig.POL</filename>), then its contents are applied to the
718         <filename>NTUser.DAT</filename> which is applied to the <filename>HKEY_CURRENT_USER</filename>
719         part of the registry. 
720         </para> </step>
722         <step> <para> When the user logs out, if the profile is set to be a roaming profile it will be
723         written out to the location of the profile. The <filename>NTuser.DAT</filename> file is then
724         recreated from the contents of the <filename>HKEY_CURRENT_USER</filename> contents. Thus,
725         should there not exist in the NETLOGON share an <filename>NTConfig.POL</filename> at the next
726         logon, the effect of the previous <filename>NTConfig.POL</filename> will still be held in the
727         profile. The effect of this is known as tattooing.
728         </para> </step>
729 </procedure>
731 <para> MS Windows NT4 profiles may be <emphasis>local</emphasis> or <emphasis>roaming</emphasis>. A local
732 profile will stored in the <filename>%SystemRoot%\Profiles\%USERNAME%</filename> location. A roaming
733 profile will also remain stored in the same way, unless the following registry key is created as shown: </para>
735 <para><screen> HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\
736 winlogon\"DeleteRoamingCache"=dword:0000000
737  </screen>
738 In this case, the local copy (in <filename>%SystemRoot%\Profiles\%USERNAME%</filename>) will be deleted
739 on logout.</para>
741 <para> Under MS Windows NT4, default locations for common resources like <filename>My Documents</filename>
742 may be redirected to a network share by modifying the following registry keys. These changes may be
743 affected via use of the System Policy Editor. To do so may require that you create your own template
744 extension for the policy editor to allow this to be done through the GUI. Another way to do this is by
745 way of first creating a default user profile, then while logged in as that user, run <command>regedt32</command> to edit
746 the key settings. </para>
748 <para>
749 The Registry Hive key that affects the behavior of folders that are part of the default user
750 profile are controlled by entries on Windows NT4 is:
751 <screen>
752 HKEY_CURRENT_USER
753         \Software
754                 \Microsoft
755                         \Windows
756                                 \CurrentVersion
757                                         \Explorer
758                                                 \User Shell Folders
759 </screen>
760 <indexterm><primary>windows registry settings</primary><secondary>default profile locations</secondary></indexterm>
761 </para>
763 <para> The above hive key contains a list of automatically managed folders. The default entries are shown in <link linkend="ProfileLocs"/>. </para>
765 <table frame="all" id="ProfileLocs">
766         <title>User Shell Folder Registry Keys Default Values</title>
767         <tgroup cols="2">
768                 <colspec align="left"/>
769                 <colspec align="left"/>
770         <thead>
771                 <row><entry>Name</entry><entry>Default Value</entry></row>
772         </thead>
773         <tbody>
774                 <row><entry>AppData</entry><entry>%USERPROFILE%\Application Data</entry></row>
775                 <row><entry>Desktop</entry><entry>%USERPROFILE%\Desktop</entry></row>
776                 <row><entry>Favorites</entry><entry>%USERPROFILE%\Favorites</entry></row>
777                 <row><entry>NetHood</entry><entry>%USERPROFILE%\NetHood</entry></row>
778                 <row><entry>PrintHood</entry><entry>%USERPROFILE%\PrintHood</entry></row>
779                 <row><entry>Programs</entry><entry>%USERPROFILE%\Start Menu\Programs</entry></row>
780                 <row><entry>Recent</entry><entry>%USERPROFILE%\Recent</entry></row>
781                 <row><entry>SendTo</entry><entry>%USERPROFILE%\SendTo</entry></row>
782                 <row><entry>Start Menu </entry><entry>%USERPROFILE%\Start Menu</entry></row>
783                 <row><entry>Startup</entry><entry>%USERPROFILE%\Start Menu\Programs\Startup</entry></row>
784         </tbody>
785         </tgroup>
786 </table>
788 <para> The registry key that contains the location of the default profile settings is: </para>
790 <para> <filename>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\<?latex \linebreak ?>
791 User Shell Folders</filename> </para>
793 <para> The default entries are shown in <link linkend="regkeys"/>.</para>
795 <table frame="all" id="regkeys">
796         <title>Defaults of Profile Settings Registry Keys</title>
797         <tgroup cols="2">
798                 <colspec align="left"/>
799                 <colspec align="left"/>
800         <tbody>
801                 <row><entry>Common Desktop</entry><entry>%SystemRoot%\Profiles\All Users\Desktop</entry></row>
802                 <row><entry>Common Programs</entry><entry>%SystemRoot%\Profiles\All Users\Programs</entry></row>
803                 <row><entry>Common Start Menu</entry><entry>%SystemRoot%\Profiles\All Users\Start Menu</entry></row>
804                 <row><entry>Common Startup</entry><entry>%SystemRoot%\Profiles\All Users\Start Menu\Programs\Startup</entry></row>
805         </tbody>
806         </tgroup>
807 </table>
809 </sect2>
811 <sect2> <title>MS Windows 200x/XP</title>
813 <note><para>
814 <indexterm><primary>GPOs</primary></indexterm>
815 MS Windows XP Home Edition does use default per user profiles, but cannot participate
816 in domain security, cannot log onto an NT/ADS-style domain, and thus can obtain the profile only
817 from itself. While there are benefits in doing this, the beauty of those MS Windows clients that
818 can participate in domain logon processes allows the administrator to create a global default
819 profile and enforce it through the use of Group Policy Objects (GPOs).
820 </para></note>
822 <para> When a new user first logs onto an MS Windows 200x/XP machine, the default profile is obtained from
823 <filename>C:\Documents and Settings\Default User</filename>. The administrator can modify or change the
824 contents of this location and MS Windows 200x/XP will gladly use it. This is far from the optimum arrangement
825 since it will involve copying a new default profile to every MS Windows 200x/XP client workstation. </para>
827 <para> When MS Windows 200x/XP participates in a domain security context, and if the default user profile is
828         not found, then the client will search for a default profile in the NETLOGON share of the authenticating
829         server. In MS Windows parlance,<?latex \linebreak ?><filename>%LOGONSERVER%\NETLOGON\Default User,</filename> and if one
830 exists there it will copy this to the workstation to the <filename>C:\Documents and Settings\</filename>
831 under the Windows login name of the user. </para>
833 <note><para> This path translates, in Samba parlance, to the &smb.conf;
834 <smbconfsection>[NETLOGON]</smbconfsection> share. The directory should be created at the root
835 of this share and must be called <filename>Default Profile</filename>.  </para> </note>
837 <para> If a default profile does not exist in this location, then MS Windows 200x/XP will use the local
838 default profile. </para>
840 <para> On logging out, the users' desktop profile will be stored to the location specified in the registry
841 settings that pertain to the user. If no specific policies have been created or passed to the client
842 during the login process (as Samba does automatically), then the user's profile will be written to the
843 local machine only under the path <filename>C:\Documents and Settings\%USERNAME%</filename>. </para>
845 <para> Those wishing to modify the default behavior can do so through these three methods: </para>
847 <itemizedlist>
848         <listitem> <para> Modify the registry keys on the local machine manually and place the new
849         default profile in the NETLOGON share root. This is not recommended as it is maintenance intensive.
850         </para> </listitem>
852         <listitem> <para> Create an NT4-style NTConfig.POL file that specified this behavior and locate
853         this file in the root of the NETLOGON share along with the new default profile. </para> </listitem>
855         <listitem> <para> Create a GPO that enforces this through Active Directory, and place the new
856         default profile in the NETLOGON share.  </para> </listitem>
857 </itemizedlist>
859 <para>The registry hive key that effects the behavior of folders that are part of the default user
860 profile are controlled by entries on Windows 200x/XP is: </para>
862 <para> <filename>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
863 Folders\</filename> </para>
865 <para>
866 The above hive key contains a list of automatically managed folders. The default entries are shown
867 in <link linkend="defregpthkeys"/>
868 <indexterm><primary>windows registry settings</primary><secondary>default profile locations</secondary></indexterm>
869 </para>
872 <table frame="all" id="defregpthkeys">
873         <title>Defaults of Default User Profile Paths Registry Keys</title>
874         <tgroup cols="2">
875                 <colspec align="left"/>
876                 <colspec align="left"/>
877         <thead>
878                 <row><entry>Name</entry><entry>Default Value</entry></row>
879         </thead>
880         <tbody>
881                 <row><entry>AppData</entry><entry>%USERPROFILE%\Application Data</entry></row>
882                 <row><entry>Cache</entry><entry>%USERPROFILE%\Local Settings\Temporary Internet Files</entry></row>
883                 <row><entry>Cookies</entry><entry>%USERPROFILE%\Cookies</entry></row>
884                 <row><entry>Desktop</entry><entry>%USERPROFILE%\Desktop</entry></row>
885                 <row><entry>Favorites</entry><entry>%USERPROFILE%\Favorites</entry></row>
886                 <row><entry>History</entry><entry>%USERPROFILE%\Local Settings\History</entry></row>
887                 <row><entry>Local AppData</entry><entry>%USERPROFILE%\Local Settings\Application Data</entry></row>
888                 <row><entry>Local Settings</entry><entry>%USERPROFILE%\Local Settings</entry></row>
889                 <row><entry>My Pictures</entry><entry>%USERPROFILE%\My Documents\My Pictures</entry></row>
890                 <row><entry>NetHood</entry><entry>%USERPROFILE%\NetHood</entry></row>
891                 <row><entry>Personal</entry><entry>%USERPROFILE%\My Documents</entry></row>
892                 <row><entry>PrintHood</entry><entry>%USERPROFILE%\PrintHood</entry></row>
893                 <row><entry>Programs</entry><entry>%USERPROFILE%\Start Menu\Programs</entry></row>
894                 <row><entry>Recent</entry><entry>%USERPROFILE%\Recent</entry></row>
895                 <row><entry>SendTo</entry><entry>%USERPROFILE%\SendTo</entry></row>
896                 <row><entry>Start Menu</entry><entry>%USERPROFILE%\Start Menu</entry></row>
897                 <row><entry>Startup</entry><entry>%USERPROFILE%\Start Menu\Programs\Startup</entry></row>
898                 <row><entry>Templates</entry><entry>%USERPROFILE%\Templates</entry></row>
899         </tbody>
900         </tgroup>
901 </table>
903 <para> There is also an entry called <quote>Default</quote> that has no value set. The default entry is
904 of type <constant>REG_SZ</constant>, all the others are of type <constant>REG_EXPAND_SZ</constant>. </para>
906 <para> It makes a huge difference to the speed of handling roaming user profiles if all the folders are
907 stored on a dedicated location on a network server. This means that it will not be necessary to write
908 the Outlook PST file over the network for every login and logout. </para>
910 <para> To set this to a network location, you could use the following examples: </para>
912 <para><filename>%LOGONSERVER%\%USERNAME%\Default Folders</filename></para>
914 <para> This would store the folders in the user's home directory under a directory called <filename>Default
915 Folders</filename>. You could also use: </para>
917 <para><filename>\\<replaceable>SambaServer</replaceable>\<replaceable>FolderShare</replaceable>\%USERNAME%</filename></para>
919 <para>
920 in which case the default folders will be stored in the server named <replaceable>SambaServer</replaceable>
921 in the share called <replaceable>FolderShare</replaceable> under a directory that has the name of the
922 MS Windows user as seen by the Linux/UNIX file system.  </para>
924 <para> Please note that once you have created a default profile share, you MUST migrate a user's profile
925 (default or custom) to it. </para>
927 <para> MS Windows 200x/XP profiles may be <emphasis>Local</emphasis> or <emphasis>Roaming</emphasis>.
928         A roaming profile will be cached locally unless the following registry key is created: 
930 <indexterm><primary>delete roaming profiles</primary></indexterm>
931 </para>
934 <para> <programlisting> HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\
935         winlogon\"DeleteRoamingCache"=dword:00000001</programlisting></para>
937 <para>
938 In this case, the local cache copy will be deleted on logout.
939 </para> 
940 </sect2> 
941 </sect1>
943 <sect1> <title>Common Errors</title>
945 <para>
946 The following are some typical errors, problems and questions that have been asked on the Samba mailing lists.
947 </para>
949 <sect2>
950 <title>Configuring Roaming Profiles for a Few Users or Groups</title>
952 <para>
953 With Samba-2.2.x, the choice you have is to enable or disable roaming profiles support. It is a
954 global only setting. The default is to have roaming profiles and the default path will locate them in
955 the user's home directory.
956 </para>
958 <para>
959 If disabled globally, then no one will have roaming profile ability. If enabled and you want it
960 to apply only to certain machines, then on those machines on which roaming profile support is not wanted
961 it is then necessary to disable roaming profile handling in the registry of each such machine.
962 </para>
964 <para>
965 With Samba-3, you can have a global profile setting in &smb.conf; and you can override this by
966 per-user settings using the Domain User Manager (as with MS Windows NT4/ Win 200xx). </para>
968 <para> In any case, you can configure only one profile per user. That profile can be either: </para>
970 <itemizedlist>
971         <listitem><para>A profile unique to that user.</para></listitem>
972         <listitem><para>A mandatory profile (one the user cannot change).</para></listitem>
973         <listitem><para>A group profile (really should be mandatory, that is unchangable).</para></listitem>
974 </itemizedlist>
976 </sect2>
978 <sect2> <title>Cannot Use Roaming Profiles</title>
980 <para> A user requested the following: <quote> I do not want Roaming profiles to be implemented. I want
981 to give users a local profile alone. Please help me, I am totally lost with this error. For the past
982 two days I tried everything, I googled around but found no useful pointers. Please help me. </quote></para>
984 <para> The choices are: </para>
986 <variablelist>
987         <varlistentry>
988                 <term>Local profiles</term> <listitem><para> I know of no registry keys that will allow
989                 auto-deletion of LOCAL profiles on log out.</para></listitem>
990         </varlistentry>
992         <varlistentry>
993                 <term>Roaming profiles</term> <listitem><para> As a user logs onto the network, a centrally
994                 stored profile is copied to the workstation to form a local profile. This local profile
995                 will persist (remain on the workstation disk) unless a registry key is changed that will
996                 cause this profile to be automatically deleted on logout. </para></listitem>
997         </varlistentry>
998 </variablelist>
1000 <para>The roaming profile choices are: </para>
1002 <variablelist>
1003         <varlistentry>
1004                 <term>Personal roaming profiles</term> <listitem><para> These are typically stored in
1005                 a profile share on a central (or conveniently located local) server. </para>
1007                 <para> Workstations cache (store) a local copy of the profile. This cached
1008                 copy is used when the profile cannot be downloaded at next logon. </para></listitem>
1009         </varlistentry>
1011         <varlistentry>
1012                 <term>Group profiles</term> <listitem><para>These are loaded from a central profile
1013                 server.</para></listitem>
1014         </varlistentry>
1016         <varlistentry>
1017                 <term>Mandatory profiles</term> <listitem><para> Mandatory profiles can be created for
1018                 a user as well as for any group that a user is a member of. Mandatory profiles cannot be
1019                 changed by ordinary users. Only the administrator can change or reconfigure a mandatory
1020                 profile. </para></listitem>
1021         </varlistentry>
1022 </variablelist>
1024 <para> A Windows NT4/200x/XP profile can vary in size from 130KB to very large. Outlook PST files are
1025 most often part of the profile and can be many GB in size. On average (in a well controlled environment),
1026 roaming profile size of 2MB is a good rule of thumb to use for planning purposes. In an undisciplined
1027 environment, I have seen up to 2GB profiles. Users tend to complain when it takes an hour to log onto a
1028 workstation but they harvest the fruits of folly (and ignorance). </para>
1030 <para> The point of all the above is to show that roaming profiles and good controls of how they can be
1031 changed as well as good discipline make up for a problem-free site. </para>
1033 <para> Microsoft's answer to the PST problem is to store all email in an MS Exchange Server backend. This
1034 removes the need for a PST file. </para>
1036 <para>Local profiles mean: </para>
1038 <itemizedlist>
1039         <listitem><para>If each machine is used by many users, then much local disk storage is needed
1040         for local profiles.</para></listitem> <listitem><para>Every workstation the user logs into has
1041         its own profile; these can be very different from machine to machine.</para></listitem>
1042 </itemizedlist>
1044 <para> On the other hand, use of roaming profiles means: </para>
1046 <itemizedlist>
1047         <listitem><para>The network administrator can control the desktop environment of all users.</para></listitem>
1048         <listitem><para>Use of mandatory profiles drastically reduces network management overheads.</para></listitem>
1049         <listitem><para>In the long run, users will experience fewer problems.</para></listitem>
1050 </itemizedlist>
1052 </sect2>
1054 <sect2>
1055 <title>Changing the Default Profile</title>
1057 <para><quote>When the client logs onto the Domain Controller, it searches
1058 for a profile to download. Where do I put this default profile?</quote></para>
1060 <para>
1061 <indexterm><primary>default profile</primary></indexterm>
1062 First, the Samba server needs to be configured as a Domain Controller. This can be done by
1063 setting in &smb.conf;: </para>
1065 <smbconfblock>
1066 <smbconfoption><name>security</name><value>user</value></smbconfoption>
1067 <smbconfoption><name>os level</name><value>32 (or more)</value></smbconfoption>
1068 <smbconfoption><name>domain logons</name><value>Yes</value></smbconfoption>
1069 </smbconfblock>
1071 <para> There must be a <smbconfsection>[netlogon]</smbconfsection> share that is world readable. It is
1072 a good idea to add a logon script to pre-set printer and drive connections. There is also a facility
1073 for automatically synchronizing the workstation time clock with that of the logon server (another good
1074 thing to do). </para>
1076 <note><para> To invoke auto-deletion of roaming profile from the local workstation cache (disk storage), use
1077 the <application>Group Policy Editor</application> to create a file called <filename>NTConfig.POL</filename>
1078 with the appropriate entries. This file needs to be located in the <smbconfsection>netlogon</smbconfsection>
1079 share root directory.</para></note>
1081 <para> Windows clients need to be members of the domain. Workgroup machines do not use network logons
1082 so they do not interoperate with domain profiles. </para>
1084 <para> For roaming profiles, add to &smb.conf;: </para>
1086 <smbconfblock>
1087 <smbconfoption><name>logon path</name><value>\\%N\profiles\%U</value></smbconfoption>
1088 <smbconfcomment>Default logon drive is Z:</smbconfcomment>
1089 <smbconfoption><name>logon drive</name><value>H:</value></smbconfoption>
1090 <smbconfcomment>This requires a PROFILES share that is world writable.</smbconfcomment>
1091 </smbconfblock>
1093 </sect2>
1094 </sect1>
1095 </chapter>