Ignore:
Timestamp:
Jun 24, 2009, 5:09:21 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.0 to 3.0.35

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/docs/htmldocs/Samba3-HOWTO/ProfileMgmt.html

    r158 r286  
    1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 27. Desktop Profile Management</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="PolicyMgmt.html" title="Chapter 26. System and Account Policies"><link rel="next" href="pam.html" title="Chapter 28. 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 27. 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 27. 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><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></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#id415979">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id416022">Roaming Profiles</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id416070">Samba Configuration for Profile Handling</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id416639">Windows Client Profile Configuration Information</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id417907">User Profile Hive Cleanup Service</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id417936">Sharing Profiles between Windows 9x/Me and NT4/200x/XP Workstations</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id418026">Profile Migration from Windows NT4/200x Server to Samba</a></span></dt></dl></dd><dt><span class="sect1"><a href="ProfileMgmt.html#id418358">Mandatory Profiles</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id418486">Creating and Managing Group Profiles</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id418552">Default Profile for Windows Users</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id418579">MS Windows 9x/Me</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id418714">MS Windows NT4 Workstation</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id419240">MS Windows 200x/XP</a></span></dt></dl></dd><dt><span class="sect1"><a href="ProfileMgmt.html#id419702">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id419711">Configuring Roaming Profiles for a Few Users or Groups</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id419765">Cannot Use Roaming Profiles</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id419914">Changing the Default Profile</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id420068">Debugging Roaming Profiles and NT4-style Domain Policies</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="id415979"></a>Features and Benefits</h2></div></div></div><p>
    2 <a class="indexterm" name="id415987"></a>
     1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 27. Desktop Profile Management</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.2.x HOWTO and Reference Guide"><link rel="up" href="optional.html" title="Part III. Advanced Configuration"><link rel="prev" href="PolicyMgmt.html" title="Chapter 26. System and Account Policies"><link rel="next" href="pam.html" title="Chapter 28. 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 27. 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 27. Desktop Profile Management</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></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#id2660567">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id2660616">Roaming Profiles</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id2660670">Samba Configuration for Profile Handling</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2661276">Windows Client Profile Configuration Information</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2662620">User Profile Hive Cleanup Service</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2662654">Sharing Profiles between Windows 9x/Me and NT4/200x/XP Workstations</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2662752">Profile Migration from Windows NT4/200x Server to Samba</a></span></dt></dl></dd><dt><span class="sect1"><a href="ProfileMgmt.html#id2663104">Mandatory Profiles</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id2663244">Creating and Managing Group Profiles</a></span></dt><dt><span class="sect1"><a href="ProfileMgmt.html#id2663323">Default Profile for Windows Users</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id2663353">MS Windows 9x/Me</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2663505">MS Windows NT4 Workstation</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2664067">MS Windows 200x/XP</a></span></dt></dl></dd><dt><span class="sect1"><a href="ProfileMgmt.html#id2664572">Common Errors</a></span></dt><dd><dl><dt><span class="sect2"><a href="ProfileMgmt.html#id2664583">Configuring Roaming Profiles for a Few Users or Groups</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2664644">Cannot Use Roaming Profiles</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2664815">Changing the Default Profile</a></span></dt><dt><span class="sect2"><a href="ProfileMgmt.html#id2664979">Debugging Roaming Profiles and NT4-style Domain Policies</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="id2660567"></a>Features and Benefits</h2></div></div></div><p>
     2<a class="indexterm" name="id2660575"></a>
    33Roaming profiles are feared by some, hated by a few, loved by many, and a godsend for
    44some administrators.
    55</p><p>
    6 <a class="indexterm" name="id415998"></a>
     6<a class="indexterm" name="id2660587"></a>
    77Roaming profiles allow an administrator to make available a consistent user desktop
    88as the user moves from one machine to another. This chapter provides much information
    99regarding how to configure and manage roaming profiles.
    1010</p><p>
    11 <a class="indexterm" name="id416010"></a>
     11<a class="indexterm" name="id2660601"></a>
    1212While roaming profiles might sound like nirvana to some, they are a real and tangible
    1313problem to others. In particular, users of mobile computing tools, where often there may not
     
    1515This chapter provides information to help the Samba administrator deal with those
    1616situations.
    17 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id416022"></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>
     17</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2660616"></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>
    1818Roaming profiles support is different for Windows 9x/Me and Windows NT4/200x.
    1919</p></div><p>
     
    2121Windows 9x/Me and Windows NT4/200x clients implement these features.
    2222</p><p>
    23 <a class="indexterm" name="id416041"></a>
     23<a class="indexterm" name="id2660638"></a>
    2424Windows 9x/Me clients send a NetUserGetInfo request to the server to get the user's
    2525profiles location. However, the response does not have room for a separate
     
    2727profiles are restricted to being stored in the user's home directory.
    2828</p><p>
    29 <a class="indexterm" name="id416054"></a>
    30 <a class="indexterm" name="id416061"></a>
     29<a class="indexterm" name="id2660653"></a>
     30<a class="indexterm" name="id2660660"></a>
    3131Windows NT4/200x  clients send a NetSAMLogon RPC request, which contains many fields
    3232including a separate field for the location of the user's profiles.
    33 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id416070"></a>Samba Configuration for Profile Handling</h3></div></div></div><p>
     33</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2660670"></a>Samba Configuration for Profile Handling</h3></div></div></div><p>
    3434This section documents how to configure Samba for MS Windows client profile support.
    35 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id416080"></a>NT4/200x User Profiles</h4></div></div></div><p>
     35</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2660681"></a>NT4/200x User Profiles</h4></div></div></div><p>
    3636For example, to support Windows NT4/200x clients, set the following in the [global] section of the <code class="filename">smb.conf</code> file:
    37 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id416101"></a><em class="parameter"><code>logon path =  \\profileserver\profileshare\profilepath\%U\moreprofilepath</code></em></td></tr></table><p>
     37</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2660703"></a><em class="parameter"><code>logon path =  \\profileserver\profileshare\profilepath\%U\moreprofilepath</code></em></td></tr></table><p>
    3838This is typically implemented like:
    39 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id416121"></a><em class="parameter"><code>logon path = \\%L\Profiles\%U</code></em></td></tr></table><p>
     39</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2660724"></a><em class="parameter"><code>logon path = \\%L\Profiles\%U</code></em></td></tr></table><p>
    4040where &#8220;<span class="quote">%L</span>&#8221; translates to the name of the Samba server and &#8220;<span class="quote">%U</span>&#8221; translates to the username.
    4141</p><p>
     
    4646semantics of &#8220;<span class="quote">%L</span>&#8221; and &#8220;<span class="quote">%N</span>&#8221;, as well as &#8220;<span class="quote">%U</span>&#8221; and &#8220;<span class="quote">%u</span>&#8221;.
    4747</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    48 <a class="indexterm" name="id416187"></a>
    49 <a class="indexterm" name="id416194"></a>
     48<a class="indexterm" name="id2660795"></a>
     49<a class="indexterm" name="id2660802"></a>
    5050MS Windows NT/200x clients at times do not disconnect a connection to a server between logons. It is recommended
    5151to not use the <em class="parameter"><code>homes</code></em> metaservice name as part of the profile share path.
    52 </p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id416211"></a>Windows 9x/Me User Profiles</h4></div></div></div><p>
    53 <a class="indexterm" name="id416218"></a>
    54 <a class="indexterm" name="id416225"></a>
    55 To support Windows 9x/Me clients, you must use the <a class="link" href="smb.conf.5.html#LOGONHOME">logon home</a>
     52</p></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2660820"></a>Windows 9x/Me User Profiles</h4></div></div></div><p>
     53<a class="indexterm" name="id2660828"></a>
     54<a class="indexterm" name="id2660835"></a>
     55To support Windows 9x/Me clients, you must use the <a class="link" href="smb.conf.5.html#LOGONHOME" target="_top">logon home</a>
    5656parameter. Samba has been fixed so <strong class="userinput"><code>net use /home</code></strong> now works as well and it, too, relies
    5757on the <em class="parameter"><code>logon home</code></em> parameter.
    5858</p><p>
    59 <a class="indexterm" name="id416259"></a>
    60 <a class="indexterm" name="id416266"></a>
    61 <a class="indexterm" name="id416272"></a>
     59<a class="indexterm" name="id2660871"></a>
     60<a class="indexterm" name="id2660878"></a>
     61<a class="indexterm" name="id2660884"></a>
    6262By using the <em class="parameter"><code>logon home</code></em> parameter, you are restricted to putting Windows 9x/Me profiles
    6363in the user's home directory.  But wait! There is a trick you can use. If you set the following in the
    6464<em class="parameter"><code>[global]</code></em> section of your <code class="filename">smb.conf</code> file:
    65 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id416304"></a><em class="parameter"><code>logon home = \\%L\%U\.profiles</code></em></td></tr></table><p>
     65</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2660918"></a><em class="parameter"><code>logon home = \\%L\%U\.profiles</code></em></td></tr></table><p>
    6666then your Windows 9x/Me clients will dutifully put their clients in a subdirectory
    6767of your home directory called <code class="filename">.profiles</code> (making them hidden).
    6868</p><p>
    69 <a class="indexterm" name="id416326"></a>
     69<a class="indexterm" name="id2660941"></a>
    7070Not only that, but <strong class="userinput"><code>net use /home</code></strong> will also work because of a feature in
    7171Windows 9x/Me. It removes any directory stuff off the end of the home directory area
    7272and only uses the server and share portion. That is, it looks like you
    73 specified <code class="filename">\\%L\%U</code> for <a class="link" href="smb.conf.5.html#LOGONHOME">logon home</a>.
    74 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id416359"></a>Mixed Windows Windows 9x/Me and NT4/200x User Profiles</h4></div></div></div><p>
     73specified <code class="filename">\\%L\%U</code> for <a class="link" href="smb.conf.5.html#LOGONHOME" target="_top">logon home</a>.
     74</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2660978"></a>Mixed Windows Windows 9x/Me and NT4/200x User Profiles</h4></div></div></div><p>
    7575You can support profiles for Windows 9x and Windows NT clients by setting both the
    76 <a class="link" href="smb.conf.5.html#LOGONHOME">logon home</a> and <a class="link" href="smb.conf.5.html#LOGONPATH">logon path</a> parameters. For example,
    77 </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id416397"></a><em class="parameter"><code>logon home = \\%L\%U\.profiles</code></em></td></tr><tr><td><a class="indexterm" name="id416408"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr></table><p>
    78 <a class="indexterm" name="id416422"></a>
     76<a class="link" href="smb.conf.5.html#LOGONHOME" target="_top">logon home</a> and <a class="link" href="smb.conf.5.html#LOGONPATH" target="_top">logon path</a> parameters. For example,
     77</p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2661018"></a><em class="parameter"><code>logon home = \\%L\%U\.profiles</code></em></td></tr><tr><td><a class="indexterm" name="id2661030"></a><em class="parameter"><code>logon path = \\%L\profiles\%U</code></em></td></tr></table><p>
     78<a class="indexterm" name="id2661044"></a>
    7979Windows 9x/Me and NT4 and later profiles should not be stored in the same location because
    8080Windows NT4 and later will experience problems with mixed profile environments.
    81 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id416433"></a>Disabling Roaming Profile Support</h4></div></div></div><p>
    82 <a class="indexterm" name="id416440"></a>
     81</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2661056"></a>Disabling Roaming Profile Support</h4></div></div></div><p>
     82<a class="indexterm" name="id2661064"></a>
    8383The question often asked is, &#8220;<span class="quote">How may I enforce use of local profiles?</span>&#8221; or
    8484&#8220;<span class="quote">How do I disable roaming profiles?</span>&#8221;
    8585</p><p>
    86 <a class="indexterm" name="id416459"></a>
     86<a class="indexterm" name="id2661082"></a>
    8787There are three ways of doing this:
    88 </p><a class="indexterm" name="id416467"></a><div class="variablelist"><dl><dt><span class="term">In <code class="filename">smb.conf</code></span></dt><dd><p>
     88</p><a class="indexterm" name="id2661091"></a><div class="variablelist"><dl><dt><span class="term">In <code class="filename">smb.conf</code></span></dt><dd><p>
    8989                Affect the following settings and ALL clients will be forced to use a local profile:
    90                 <a class="link" href="smb.conf.5.html#LOGONHOME">logon home =  </a> and <a class="link" href="smb.conf.5.html#LOGONPATH">logon path =  </a>
     90                <a class="link" href="smb.conf.5.html#LOGONHOME" target="_top">logon home =  </a> and <a class="link" href="smb.conf.5.html#LOGONPATH" target="_top">logon path =  </a>
    9191                </p><p>
    9292                The arguments to these parameters must be left blank. It is necessary to include the <code class="constant">=</code> sign
    9393                to specifically assign the empty value.
    9494                </p></dd><dt><span class="term">MS Windows Registry:</span></dt><dd><p>
    95 <a class="indexterm" name="id416532"></a>
    96 <a class="indexterm" name="id416539"></a>
     95<a class="indexterm" name="id2661161"></a>
     96<a class="indexterm" name="id2661167"></a>
    9797                Use the Microsoft Management Console (MMC) <code class="literal">gpedit.msc</code> to instruct your MS Windows XP
    9898                machine to use only a local profile. This, of course, modifies registry settings. The full
     
    117117about which registry keys to change to enforce use of only local user profiles.
    118118</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    119 <a class="indexterm" name="id416626"></a>
     119<a class="indexterm" name="id2661261"></a>
    120120The specifics of how to convert a local profile to a roaming profile, or a roaming profile
    121121to a local one, vary according to the version of MS Windows you are running. Consult the Microsoft MS
    122122Windows Resource Kit for your version of Windows for specific information.
    123 </p></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id416639"></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="id416645"></a>Windows 9x/Me Profile Setup</h4></div></div></div><p>
     123</p></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2661276"></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="id2661282"></a>Windows 9x/Me Profile Setup</h4></div></div></div><p>
    124124When a user first logs in on Windows 9x, the file user.DAT is created, as are folders <code class="filename">Start
    125125Menu</code>, <code class="filename">Desktop</code>, <code class="filename">Programs</code>, and
    126126<code class="filename">Nethood</code>. These directories and their contents will be merged with the local versions
    127127stored in <code class="filename">c:\windows\profiles\username</code> on subsequent logins, taking the most recent from
    128 each.   You will need to use the <em class="parameter"><code>[global]</code></em> options <a class="link" href="smb.conf.5.html#PRESERVECASE">preserve case = yes</a>, <a class="link" href="smb.conf.5.html#SHORTPRESERVECASE">short preserve case = yes</a>, and <a class="link" href="smb.conf.5.html#CASESENSITIVE">case sensitive = no</a> in order to maintain capital letters in shortcuts in any of the
     128each.   You will need to use the <em class="parameter"><code>[global]</code></em> options <a class="link" href="smb.conf.5.html#PRESERVECASE" target="_top">preserve case = yes</a>, <a class="link" href="smb.conf.5.html#SHORTPRESERVECASE" target="_top">short preserve case = yes</a>, and <a class="link" href="smb.conf.5.html#CASESENSITIVE" target="_top">case sensitive = no</a> in order to maintain capital letters in shortcuts in any of the
    129129profile folders.
    130130</p><p>
    131 <a class="indexterm" name="id416727"></a>
    132 <a class="indexterm" name="id416733"></a>
     131<a class="indexterm" name="id2661372"></a>
     132<a class="indexterm" name="id2661378"></a>
    133133The <code class="filename">user.DAT</code> file contains all the user's preferences. If you wish to enforce a set of preferences,
    134134rename their <code class="filename">user.DAT</code> file to <code class="filename">user.MAN</code>, and deny them write access to this file.
     
    145145        <span class="guibutton">OK</span>, and this time allow the computer to reboot.
    146146        </p></li></ol></div><p>
    147 <a class="indexterm" name="id416851"></a>
    148 <a class="indexterm" name="id416858"></a>
    149 <a class="indexterm" name="id416865"></a>
    150 <a class="indexterm" name="id416871"></a>
     147<a class="indexterm" name="id2661499"></a>
     148<a class="indexterm" name="id2661506"></a>
     149<a class="indexterm" name="id2661513"></a>
     150<a class="indexterm" name="id2661520"></a>
    151151Under Windows 9x/Me, profiles are downloaded from the Primary Logon. If you have the Primary Logon
    152152as &#8220;<span class="quote">Client for Novell Networks</span>&#8221;, then the profiles and logon script will be downloaded from
     
    154154be loaded from the local machine  a bit against the concept of roaming profiles, it would seem!
    155155</p><p>
    156 <a class="indexterm" name="id416894"></a>
     156<a class="indexterm" name="id2661547"></a>
    157157You will now find that the Microsoft Networks Login box contains <code class="constant">[user, password, domain]</code> instead
    158158of just <code class="constant">[user, password]</code>. Type in the Samba server's domain name (or any other domain known to exist,
     
    165165</p><p>
    166166Once the Windows 9x/Me client comes up with the desktop, you should be able to examine the
    167 contents of the directory specified in the <a class="link" href="smb.conf.5.html#LOGONPATH">logon path</a> on
     167contents of the directory specified in the <a class="link" href="smb.conf.5.html#LOGONPATH" target="_top">logon path</a> on
    168168the Samba server and verify that the <code class="filename">Desktop</code>, <code class="filename">Start Menu</code>,
    169169<code class="filename">Programs</code>, and <code class="filename">Nethood</code> folders have been created.
    170170</p><p>
    171 <a class="indexterm" name="id416975"></a>
    172 <a class="indexterm" name="id416982"></a>
    173 <a class="indexterm" name="id416989"></a>
     171<a class="indexterm" name="id2661634"></a>
     172<a class="indexterm" name="id2661641"></a>
     173<a class="indexterm" name="id2661647"></a>
    174174These folders will be cached locally on the client and updated when the user logs off (if
    175175you haven't made them read-only by then). You will find that if the user creates further folders or
     
    177177directory already on the local client, taking the newest folders and shortcut from each set.
    178178</p><p>
    179 <a class="indexterm" name="id417002"></a>
    180 <a class="indexterm" name="id417009"></a>
    181 <a class="indexterm" name="id417016"></a>
    182 <a class="indexterm" name="id417023"></a>
     179<a class="indexterm" name="id2661664"></a>
     180<a class="indexterm" name="id2661671"></a>
     181<a class="indexterm" name="id2661678"></a>
     182<a class="indexterm" name="id2661685"></a>
    183183If you have made the folders/files read-only on the Samba server, then you will get errors from
    184184the Windows 9x/Me machine on logon and logout as it attempts to merge the local and remote profile.
     
    186186and ownership rights on the profile directory contents, on the Samba server.
    187187</p><p>
    188 <a class="indexterm" name="id417036"></a>
    189 <a class="indexterm" name="id417043"></a>
    190 <a class="indexterm" name="id417050"></a>
    191 <a class="indexterm" name="id417056"></a>
    192 <a class="indexterm" name="id417063"></a>
     188<a class="indexterm" name="id2661701"></a>
     189<a class="indexterm" name="id2661708"></a>
     190<a class="indexterm" name="id2661715"></a>
     191<a class="indexterm" name="id2661722"></a>
     192<a class="indexterm" name="id2661729"></a>
    193193If you have problems creating user profiles, you can reset the user's local desktop cache, as shown below.
    194194When this user next logs in, the user will be told that he/she is logging in &#8220;<span class="quote">for the first
     
    211211        Log off the Windows 9x/Me client.
    212212        </p></li><li><p>
    213         Check the contents of the profile path (see <a class="link" href="smb.conf.5.html#LOGONPATH">logon path</a>
     213        Check the contents of the profile path (see <a class="link" href="smb.conf.5.html#LOGONPATH" target="_top">logon path</a>
    214214        described above) and delete the <code class="filename">user.DAT</code> or <code class="filename">user.MAN</code>
    215215        file for the user, making a backup if required.
    216216        </p></li></ol></div><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>
    217 <a class="indexterm" name="id417186"></a>
     217<a class="indexterm" name="id2661860"></a>
    218218Before deleting the contents of the directory listed in the <em class="parameter"><code>ProfilePath</code></em>
    219219(this is likely to be <code class="filename">c:\windows\profiles\username)</code>, ask whether the owner has
     
    225225&#8220;<span class="quote">start menu,</span>&#8221; and &#8220;<span class="quote">programs</span>&#8221; folders.
    226226</p></div><p>
    227 <a class="indexterm" name="id417241"></a>
    228 <a class="indexterm" name="id417248"></a>
    229 <a class="indexterm" name="id417254"></a>
    230 <a class="indexterm" name="id417261"></a>
     227<a class="indexterm" name="id2661919"></a>
     228<a class="indexterm" name="id2661926"></a>
     229<a class="indexterm" name="id2661932"></a>
     230<a class="indexterm" name="id2661939"></a>
    231231If all else fails, increase Samba's debug log levels to between 3 and 10, and/or run a packet
    232232sniffer program such as ethereal or <code class="literal">netmon.exe</code>, and look for error messages.
    233233</p><p>
    234 <a class="indexterm" name="id417279"></a>
    235 <a class="indexterm" name="id417285"></a>
     234<a class="indexterm" name="id2661958"></a>
     235<a class="indexterm" name="id2661965"></a>
    236236If you have access to an Windows NT4/200x server, then first set up roaming profiles and/or
    237237netlogons on the Windows NT4/200x server. Make a packet trace, or examine the example packet traces
    238238provided with Windows NT4/200x server, and see what the differences are with the equivalent Samba trace.
    239 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id417297"></a>Windows NT4 Workstation</h4></div></div></div><p>
     239</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2661979"></a>Windows NT4 Workstation</h4></div></div></div><p>
    240240When a user first logs in to a Windows NT workstation, the profile NTuser.DAT is created. The profile
    241 location can be now specified through the <a class="link" href="smb.conf.5.html#LOGONPATH">logon path</a> parameter.
    242 </p><p>
    243 There is a parameter that is now available for use with NT Profiles: <a class="link" href="smb.conf.5.html#LOGONDRIVE">logon drive</a>.
     241location can be now specified through the <a class="link" href="smb.conf.5.html#LOGONPATH" target="_top">logon path</a> parameter.
     242</p><p>
     243There is a parameter that is now available for use with NT Profiles: <a class="link" href="smb.conf.5.html#LOGONDRIVE" target="_top">logon drive</a>.
    244244This should be set to <code class="filename">H:</code> or any other drive, and should be used in conjunction with
    245 the new <a class="link" href="smb.conf.5.html#LOGONHOME">logon home</a> parameter.
    246 </p><p>
    247 <a class="indexterm" name="id417352"></a>
    248 <a class="indexterm" name="id417359"></a>
     245the new <a class="link" href="smb.conf.5.html#LOGONHOME" target="_top">logon home</a> parameter.
     246</p><p>
     247<a class="indexterm" name="id2662039"></a>
     248<a class="indexterm" name="id2662046"></a>
    249249The entry for the NT4 profile is a directory, not a file. The NT help on profiles mentions that a
    250250directory is also created with a .PDS extension. The user, while logging in, must have write permission
     
    252252might be created).
    253253</p><p>
    254 <a class="indexterm" name="id417372"></a>
     254<a class="indexterm" name="id2662062"></a>
    255255In the profile directory, Windows NT4 creates more folders than Windows 9x/Me. It creates
    256256<code class="filename">Application Data</code> and others, as well as <code class="filename">Desktop</code>,
     
    259259in the .PDS directory, and its purpose is currently unknown.
    260260</p><p>
    261 <a class="indexterm" name="id417419"></a>
    262 <a class="indexterm" name="id417426"></a>
     261<a class="indexterm" name="id2662110"></a>
     262<a class="indexterm" name="id2662117"></a>
    263263You can use the <span class="application">System Control Panel</span> to copy a local profile onto
    264264a Samba server (see NT help on profiles; it is also capable of firing up the correct location in the
     
    268268The case of the profile is significant. The file must be called <code class="filename">NTuser.DAT</code>
    269269or, for a mandatory profile, <code class="filename">NTuser.MAN</code>.
    270 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id417477"></a>Windows 2000/XP Professional</h4></div></div></div><p>
     270</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2662171"></a>Windows 2000/XP Professional</h4></div></div></div><p>
    271271You must first convert the profile from a local profile to a domain profile on the MS Windows
    272272workstation 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, and select
     
    281281Under Windows NT/200x, the use of mandatory profiles forces the use of MS Exchange storage of mail
    282282data and keeps it out of the desktop profile. That keeps desktop profiles from becoming unusable.
    283 </p></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id417650"></a>Windows XP Service Pack 1</h5></div></div></div><p>
     283</p></div><div class="sect4" lang="en"><div class="titlepage"><div><div><h5 class="title"><a name="id2662353"></a>Windows XP Service Pack 1</h5></div></div></div><p>
    284284        There is a security check new to Windows XP (or maybe only Windows XP service pack 1).
    285285        It can be disabled via a group policy in the Active Directory. The policy is called:
     
    297297                <span class="guiicon">Computer Configuration</span> -&gt; <span class="guiicon">Administrative Templates</span> -&gt;
    298298                <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
    299         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="id417907"></a>User Profile Hive Cleanup Service</h3></div></div></div><p>
     299        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="id2662620"></a>User Profile Hive Cleanup Service</h3></div></div></div><p>
    300300There are certain situations that cause a cached local copy of roaming profile not to be deleted on exit, even if
    301301the policy to force such deletion is set. To deal with that situation, a special service was created. The application
     
    304304</p><p>
    305305The UPHClean software package can be downloaded from the User Profile Hive Cleanup
    306 Service<sup>[<a name="id417928" href="#ftn.id417928" class="footnote">7</a>]</sup>
     306Service<sup>[<a name="id2662645" href="#ftn.id2662645" class="footnote">7</a>]</sup>
    307307web site.
    308 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id417936"></a>Sharing Profiles between Windows 9x/Me and NT4/200x/XP Workstations</h3></div></div></div><p>
    309 <a class="indexterm" name="id417944"></a>
    310 <a class="indexterm" name="id417951"></a>
     308</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2662654"></a>Sharing Profiles between Windows 9x/Me and NT4/200x/XP Workstations</h3></div></div></div><p>
     309<a class="indexterm" name="id2662663"></a>
     310<a class="indexterm" name="id2662670"></a>
    311311Sharing of desktop profiles between Windows versions is not recommended. Desktop profiles are an
    312312evolving phenomenon, and profiles for later versions of MS Windows clients add features that may interfere
     
    318318If you then want to share the same Start Menu and Desktop with Windows 9x/Me, you must specify a common
    319319location for the profiles. The <code class="filename">smb.conf</code> parameters that need to be common are
    320 <a class="link" href="smb.conf.5.html#LOGONPATH">logon path</a> and <a class="link" href="smb.conf.5.html#LOGONHOME">logon home</a>.
    321 </p><p>
    322 <a class="indexterm" name="id417997"></a>
    323 <a class="indexterm" name="id418004"></a>
     320<a class="link" href="smb.conf.5.html#LOGONPATH" target="_top">logon path</a> and <a class="link" href="smb.conf.5.html#LOGONHOME" target="_top">logon home</a>.
     321</p><p>
     322<a class="indexterm" name="id2662724"></a>
     323<a class="indexterm" name="id2662731"></a>
    324324If you have this set up correctly, you will find separate <code class="filename">user.DAT</code> and
    325325<code class="filename">NTuser.DAT</code> files in the same profile directory.
    326 </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id418026"></a>Profile Migration from Windows NT4/200x Server to Samba</h3></div></div></div><p>
    327 <a class="indexterm" name="id418034"></a>
     326</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2662752"></a>Profile Migration from Windows NT4/200x Server to Samba</h3></div></div></div><p>
     327<a class="indexterm" name="id2662761"></a>
    328328There is nothing to stop you from specifying any path that you like for the location of users' profiles.
    329329Therefore, you could specify that the profile be stored on a Samba server or any other SMB server,
    330330as long as that SMB server supports encrypted passwords.
    331331</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="profilemigrn"></a>Windows NT4 Profile Management Tools</h4></div></div></div><p>
    332 <a class="indexterm" name="id418055"></a>
     332<a class="indexterm" name="id2662786"></a>
    333333Unfortunately, the resource kit information is specific to the version of MS Windows NT4/200x. The
    334334correct resource kit is required for each platform.
    335 </p><p>Here is a quick guide:</p><div class="procedure"><a name="id418068"></a><p class="title"><b>Procedure 27.1. Profile Migration Procedure</b></p><ol type="1"><li><p> On your NT4 domain controller, right-click on <span class="guiicon">My Computer</span>, then select
     335</p><p>Here is a quick guide:</p><div class="procedure"><a name="id2662800"></a><p class="title"><b>Procedure 27.1. Profile Migration Procedure</b></p><ol type="1"><li><p> On your NT4 domain controller, right-click on <span class="guiicon">My Computer</span>, then select
    336336        <span class="guilabel">Properties</span>, then the 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">migrate</span>&#8221; loosely. You can copy a profile to create a group
    337337        profile. You can give the user <em class="parameter"><code>Everyone</code></em> rights to the profile you copy this to. That
     
    341341        closes the &#8220;<span class="quote">choose user</span>&#8221; box.</p></li><li><p>Now click on <span class="guibutton">OK</span>.</p></li></ol></div><p>
    342342Follow these steps for every profile you need to migrate.
    343 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id418209"></a>Side Bar Notes</h4></div></div></div><p>
    344 <a class="indexterm" name="id418217"></a>
    345 <a class="indexterm" name="id418223"></a>
     343</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2662947"></a>Side Bar Notes</h4></div></div></div><p>
     344<a class="indexterm" name="id2662954"></a>
     345<a class="indexterm" name="id2662961"></a>
    346346You should obtain the SID of your NT4 domain. You can use the <code class="literal">net rpc info</code> to do this.
    347347See <a class="link" href="NetCommand.html" title="Chapter 13. Remote and Local Management: The Net Command">The Net Command Chapter</a>, <a class="link" href="NetCommand.html#netmisc1" title="Other Miscellaneous Operations">Other Miscellaneous Operations</a> for more information.
    348 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id418258"></a>moveuser.exe</h4></div></div></div><p>
    349 <a class="indexterm" name="id418266"></a>
     348</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2662998"></a>moveuser.exe</h4></div></div></div><p>
     349<a class="indexterm" name="id2663005"></a>
    350350The Windows 200x professional resource kit has <code class="literal">moveuser.exe</code>.
    351351<code class="literal">moveuser.exe</code> changes the security of a profile from one user to another. This allows the
     
    353353</p><p>
    354354This command is like the Samba <code class="literal">profiles</code> tool.
    355 </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id418297"></a>Get SID</h4></div></div></div><p>
    356 <a class="indexterm" name="id418305"></a>
    357 <a class="indexterm" name="id418312"></a>
     355</p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2663039"></a>Get SID</h4></div></div></div><p>
     356<a class="indexterm" name="id2663047"></a>
     357<a class="indexterm" name="id2663053"></a>
    358358You can identify the SID by using <code class="literal">GetSID.exe</code> from the Windows NT Server 4.0 Resource Kit.
    359359</p><p>
     
    365365to move, find the SID for the user with the <code class="literal">GetSID.exe</code> utility.) Inside the appropriate user's subkey,
    366366you will see a string value named <em class="parameter"><code>ProfileImagePath</code></em>.
    367 </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id418358"></a>Mandatory Profiles</h2></div></div></div><p>
    368 <a class="indexterm" name="id418365"></a>
     367</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2663104"></a>Mandatory Profiles</h2></div></div></div><p>
     368<a class="indexterm" name="id2663112"></a>
    369369A mandatory profile is a profile that the user does not have the ability to overwrite. During the
    370370user's session, it may be possible to change the desktop environment; however, as the user logs out, all changes
     
    373373Policies</a>.
    374374</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
    375 <a class="indexterm" name="id418387"></a>
    376 <a class="indexterm" name="id418393"></a>
    377 <a class="indexterm" name="id418400"></a>
     375<a class="indexterm" name="id2663137"></a>
     376<a class="indexterm" name="id2663143"></a>
     377<a class="indexterm" name="id2663150"></a>
    378378Under NO circumstances should the profile directory (or its contents) be made read-only because this may
    379379render the profile unusable.  Where it is essential to make a profile read-only within the UNIX file system,
     
    381381instruct MS Windows NT/200x/XP clients that the Profile has write permission for the user.  See <a class="link" href="VFS.html#fakeperms" title="fake_perms">fake_perms VFS module</a>.
    382382</p></div><p>
    383 <a class="indexterm" name="id418426"></a>
    384 <a class="indexterm" name="id418433"></a>
     383<a class="indexterm" name="id2663181"></a>
     384<a class="indexterm" name="id2663188"></a>
    385385For MS Windows NT4/200x/XP, the procedure shown in <a class="link" href="ProfileMgmt.html#profilemigrn" title="Windows NT4 Profile Management Tools">Profile Migration from Windows
    386386NT4/200x Server to Samba</a> can also be used to create mandatory profiles. To convert a group profile into
     
    388388it to <code class="filename">NTUser.MAN</code>.
    389389</p><p>
    390 <a class="indexterm" name="id418464"></a>
     390<a class="indexterm" name="id2663222"></a>
    391391For MS Windows 9x/Me, it is the <code class="filename">User.DAT</code> file that must be renamed to
    392392<code class="filename">User.MAN</code> to effect a mandatory profile.
    393 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id418486"></a>Creating and Managing Group Profiles</h2></div></div></div><p>
    394 <a class="indexterm" name="id418494"></a>
    395 <a class="indexterm" name="id418500"></a>
    396 <a class="indexterm" name="id418507"></a>
    397 <a class="indexterm" name="id418514"></a>
     393</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2663244"></a>Creating and Managing Group Profiles</h2></div></div></div><p>
     394<a class="indexterm" name="id2663252"></a>
     395<a class="indexterm" name="id2663259"></a>
     396<a class="indexterm" name="id2663266"></a>
     397<a class="indexterm" name="id2663273"></a>
    398398Most organizations are arranged into departments. There is a nice benefit in this fact, since usually
    399399most users in a department require the same desktop applications and the same desktop layout. MS
     
    402402assigned access rights for the user group that needs to be given access to the group profile.
    403403</p><p>
    404 <a class="indexterm" name="id418533"></a>
     404<a class="indexterm" name="id2663300"></a>
    405405The next step is rather important. Instead of assigning a group profile to users (Using User Manager)
    406406on a &#8220;<span class="quote">per-user</span>&#8221; basis, the group itself is assigned the now modified profile.
     
    408408Be careful with group profiles. If the user who is a member of a group also has a personal
    409409profile, then the result will be a fusion (merge) of the two.
    410 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id418552"></a>Default Profile for Windows Users</h2></div></div></div><p>
    411 <a class="indexterm" name="id418560"></a>
    412 <a class="indexterm" name="id418567"></a>
     410</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2663323"></a>Default Profile for Windows Users</h2></div></div></div><p>
     411<a class="indexterm" name="id2663331"></a>
     412<a class="indexterm" name="id2663338"></a>
    413413MS Windows 9x/Me and NT4/200x/XP will use a default profile for any user for whom a profile
    414414does not already exist. Armed with a knowledge of where the default profile is located on the Windows
     
    416416it is possible to modify the default profile to one that has been optimized for the site. This has
    417417significant administrative advantages.
    418 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id418579"></a>MS Windows 9x/Me</h3></div></div></div><p>
    419 <a class="indexterm" name="id418586"></a>
    420 <a class="indexterm" name="id418593"></a>
     418</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2663353"></a>MS Windows 9x/Me</h3></div></div></div><p>
     419<a class="indexterm" name="id2663361"></a>
     420<a class="indexterm" name="id2663368"></a>
    421421To enable default per-use profiles in Windows 9x/Me, you can either use the <span class="application">Windows
    42242298 System Policy Editor</span> or change the registry directly.
     
    428428changes.
    429429</p><p>
    430 <a class="indexterm" name="id418651"></a>
     430<a class="indexterm" name="id2663429"></a>
    431431To modify the registry directly, launch the <span class="application">Registry Editor</span>
    432432(<code class="literal">regedit.exe</code>) and select the hive <code class="filename">HKEY_LOCAL_MACHINE\Network\Logon</code>.
    433433Now add a DWORD type key with the name &#8220;<span class="quote">User Profiles.</span>&#8221; To enable user profiles to set the value
    434434to 1; to disable user profiles set it to 0.
    435 </p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id418681"></a>User Profile Handling with Windows 9x/Me</h4></div></div></div><p>
     435</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2663462"></a>User Profile Handling with Windows 9x/Me</h4></div></div></div><p>
    436436When a user logs on to a Windows 9x/Me machine, the local profile path,
    437437<code class="filename">HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProfileList</code>, is checked
     
    449449changes that the user made are written to the user's local profile. If the user has a roaming profile,
    450450the changes are written to the user's profile on the server.
    451 </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id418714"></a>MS Windows NT4 Workstation</h3></div></div></div><p>
     451</p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2663505"></a>MS Windows NT4 Workstation</h3></div></div></div><p>
    452452On MS Windows NT4, the default user profile is obtained from the location
    453453<code class="filename">%SystemRoot%\Profiles</code>, which in a default installation will translate to
     
    463463When a new user first logs onto an MS Windows NT4 machine, a new profile is created from:
    464464</p><div class="itemizedlist"><ul type="disc"><li><p>All Users settings.</p></li><li><p>Default User settings (contains the default <code class="filename">NTUser.DAT</code> file).</p></li></ul></div><p>
    465 <a class="indexterm" name="id418796"></a>
     465<a class="indexterm" name="id2663592"></a>
    466466When a user logs on to an MS Windows NT4 machine that is a member of a Microsoft security domain,
    467467the following steps are followed for profile handling:
     
    475475        exist, then a new profile is created in the <code class="filename">%SystemRoot%\Profiles\%USERNAME%</code>
    476476        directory from reading the <code class="filename">Default User</code> profile. </p></li><li><p>
    477 <a class="indexterm" name="id418866"></a>
    478 <a class="indexterm" name="id418873"></a>
    479 <a class="indexterm" name="id418880"></a>
    480 <a class="indexterm" name="id418886"></a>
    481 <a class="indexterm" name="id418893"></a>
     477<a class="indexterm" name="id2663669"></a>
     478<a class="indexterm" name="id2663676"></a>
     479<a class="indexterm" name="id2663683"></a>
     480<a class="indexterm" name="id2663690"></a>
     481<a class="indexterm" name="id2663697"></a>
    482482        If the NETLOGON share on the authenticating server (logon server) contains
    483483        a policy file (<code class="filename">NTConfig.POL</code>), then its contents are applied to the
     
    501501on logout.
    502502</p><p>
    503 <a class="indexterm" name="id418992"></a>
     503<a class="indexterm" name="id2663804"></a>
    504504Under MS Windows NT4, default locations for common resources like <code class="filename">My Documents</code>
    505505may be redirected to a network share by modifying the following registry keys. These changes may be
     
    520520                                                \User Shell Folders
    521521</pre><p>
    522 <a class="indexterm" name="id419025"></a>
     522<a class="indexterm" name="id2663844"></a>
    523523</p><p>  The above hive key contains a list of automatically managed
    524524folders. The default entries are shown in <a class="link" href="ProfileMgmt.html#ProfileLocs" title="Table 27.1. User Shell Folder Registry Keys Default Values">the next table</a>.
     
    530530</p><p>
    531531The default entries are shown in <a class="link" href="ProfileMgmt.html#regkeys" title="Table 27.2. Defaults of Profile Settings Registry Keys">Defaults of Profile Settings Registry Keys</a>.
    532 </p><div class="table"><a name="regkeys"></a><p class="title"><b>Table 27.2. Defaults of Profile Settings Registry Keys</b></p><div class="table-contents"><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><br class="table-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id419240"></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>
    533 <a class="indexterm" name="id419249"></a>
    534 <a class="indexterm" name="id419255"></a>
    535 <a class="indexterm" name="id419262"></a>
    536 <a class="indexterm" name="id419269"></a>
     532</p><div class="table"><a name="regkeys"></a><p class="title"><b>Table 27.2. Defaults of Profile Settings Registry Keys</b></p><div class="table-contents"><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><br class="table-break"></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2664067"></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>
     533<a class="indexterm" name="id2664076"></a>
     534<a class="indexterm" name="id2664082"></a>
     535<a class="indexterm" name="id2664090"></a>
     536<a class="indexterm" name="id2664096"></a>
    537537MS Windows XP Home Edition does use default per-user profiles, but cannot participate
    538538in domain security, cannot log onto an NT/ADS-style domain, and thus can obtain the profile only
     
    541541profile and enforce it through the use of Group Policy Objects (GPOs).
    542542</p></div><p>
    543 <a class="indexterm" name="id419283"></a>
     543<a class="indexterm" name="id2664114"></a>
    544544When a new user first logs onto an MS Windows 200x/XP machine, the default profile is obtained from
    545545<code class="filename">C:\Documents and Settings\Default User</code>. The administrator can modify or change the
     
    547547since it will involve copying a new default profile to every MS Windows 200x/XP client workstation.
    548548</p><p>
    549 <a class="indexterm" name="id419302"></a>
     549<a class="indexterm" name="id2664137"></a>
    550550When MS Windows 200x/XP participates in a domain security context, and if the default user profile is not
    551551found, then the client will search for a default profile in the NETLOGON share of the authenticating server.
     
    569569This hive key contains a list of automatically managed folders. The default entries are shown
    570570in <a class="link" href="ProfileMgmt.html#defregpthkeys" title="Table 27.3. Defaults of Default User Profile Paths Registry Keys">the next table</a>
    571 <a class="indexterm" name="id419422"></a>
     571<a class="indexterm" name="id2664274"></a>
    572572</p><div class="table"><a name="defregpthkeys"></a><p class="title"><b>Table 27.3. Defaults of Default User Profile Paths Registry Keys</b></p><div class="table-contents"><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></div><br class="table-break"><p> There is also an entry called &#8220;<span class="quote">Default</span>&#8221; that has no value set. The default entry is
    573573of type <code class="constant">REG_SZ</code>; all the others are of type <code class="constant">REG_EXPAND_SZ</code>. </p><p> It makes a huge difference to the speed of handling roaming user profiles if all the folders are
     
    590590        A roaming profile is cached locally unless the following registry key is created:
    591591
    592 <a class="indexterm" name="id419679"></a>
     592<a class="indexterm" name="id2664548"></a>
    593593</p><p> </p><pre class="programlisting"> HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\
    594594        winlogon\"DeleteRoamingCache"=dword:00000001</pre><p>
    595595In this case, the local cache copy is deleted on logout.
    596 </p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id419702"></a>Common Errors</h2></div></div></div><p>
     596</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2664572"></a>Common Errors</h2></div></div></div><p>
    597597The following are some typical errors, problems, and questions that have been asked on the Samba mailing lists.
    598 </p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id419711"></a>Configuring Roaming Profiles for a Few Users or Groups</h3></div></div></div><p>
     598</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2664583"></a>Configuring Roaming Profiles for a Few Users or Groups</h3></div></div></div><p>
    599599With Samba-2.2.x, the choice you have is to enable or disable roaming profiles support. It is a
    600600global-only setting. The default is to have roaming profiles, and the default path will locate them in
     
    606606</p><p>
    607607With Samba-3, you can have a global profile setting in <code class="filename">smb.conf</code>, and you can override this by
    608 per-user settings using the Domain User Manager (as with MS Windows NT4/200x). </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="id419765"></a>Cannot Use Roaming Profiles</h3></div></div></div><p> A user requested the following: &#8220;<span class="quote"> I do not want roaming profiles to be implemented. I want
     608per-user settings using the Domain User Manager (as with MS Windows NT4/200x). </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="id2664644"></a>Cannot Use Roaming Profiles</h3></div></div></div><p> A user requested the following: &#8220;<span class="quote"> I do not want roaming profiles to be implemented. I want
    609609to give users a local profile alone. I am totally lost with this error. For the past
    610610two days I tried everything, I googled around but found no useful pointers. Please help me. </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
     
    626626removes 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
    627627        for local profiles.</p></li><li><p>Every workstation the user logs into has
    628         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="id419914"></a>Changing the Default Profile</h3></div></div></div><p>&#8220;<span class="quote">When the client logs onto the domain controller, it searches
     628        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="id2664815"></a>Changing the Default Profile</h3></div></div></div><p>&#8220;<span class="quote">When the client logs onto the domain controller, it searches
    629629for a profile to download. Where do I put this default profile?</span>&#8221;</p><p>
    630 <a class="indexterm" name="id419927"></a>
     630<a class="indexterm" name="id2664830"></a>
    631631First, the Samba server needs to be configured as a domain controller. This can be done by
    632 setting in <code class="filename">smb.conf</code>: </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id419947"></a><em class="parameter"><code>security = user</code></em></td></tr><tr><td><a class="indexterm" name="id419959"></a><em class="parameter"><code>os level = 32 (or more)</code></em></td></tr><tr><td><a class="indexterm" name="id419970"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr></table><p> There must be a <em class="parameter"><code>[netlogon]</code></em> share that is world readable. It is
     632setting in <code class="filename">smb.conf</code>: </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2664851"></a><em class="parameter"><code>security = user</code></em></td></tr><tr><td><a class="indexterm" name="id2664863"></a><em class="parameter"><code>os level = 32 (or more)</code></em></td></tr><tr><td><a class="indexterm" name="id2664874"></a><em class="parameter"><code>domain logons = Yes</code></em></td></tr></table><p> There must be a <em class="parameter"><code>[netlogon]</code></em> share that is world readable. It is
    633633a good idea to add a logon script to preset printer and drive connections. There is also a facility
    634634for automatically synchronizing the workstation time clock with that of the logon server (another good
     
    637637with the appropriate entries. This file needs to be located in the <em class="parameter"><code>netlogon</code></em>
    638638share root directory.</p></div><p> Windows clients need to be members of the domain. Workgroup machines do not use network logons,
    639 so they do not interoperate with domain profiles. </p><p> For roaming profiles, add to <code class="filename">smb.conf</code>: </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id420036"></a><em class="parameter"><code>logon path = \\%N\profiles\%U</code></em></td></tr><tr><td># Default logon drive is Z:</td></tr><tr><td><a class="indexterm" name="id420051"></a><em class="parameter"><code>logon drive = H:</code></em></td></tr><tr><td># This requires a PROFILES share that is world writable.</td></tr></table></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id420068"></a>Debugging Roaming Profiles and NT4-style Domain Policies</h3></div></div></div><p>
     639so they do not interoperate with domain profiles. </p><p> For roaming profiles, add to <code class="filename">smb.conf</code>: </p><table class="simplelist" border="0" summary="Simple list"><tr><td><a class="indexterm" name="id2664947"></a><em class="parameter"><code>logon path = \\%N\profiles\%U</code></em></td></tr><tr><td># Default logon drive is Z:</td></tr><tr><td><a class="indexterm" name="id2664962"></a><em class="parameter"><code>logon drive = H:</code></em></td></tr><tr><td># This requires a PROFILES share that is world writable.</td></tr></table></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2664979"></a>Debugging Roaming Profiles and NT4-style Domain Policies</h3></div></div></div><p>
    640640Roaming profiles and domain policies are implemented via <code class="literal">USERENV.DLL</code>.
    641641Microsoft Knowledge Base articles <a class="ulink" href="http://support.microsoft.com/default.aspx?scid=kb;en-us;221833" target="_top">221833</a> and
Note: See TracChangeset for help on using the changeset viewer.