1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
5 >Desktop Profile Management
</TITLE
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 TITLE=
"SAMBA Project Documentation"
11 HREF=
"samba-howto-collection.html"><LINK
13 TITLE=
"Advanced Configuration"
14 HREF=
"optional.html"><LINK
16 TITLE=
"System and Account Policies"
17 HREF=
"policymgmt.html"><LINK
19 TITLE=
"Interdomain Trust Relationships"
20 HREF=
"interdomaintrusts.html"></HEAD
31 SUMMARY=
"Header navigation table"
40 >SAMBA Project Documentation
</TH
48 HREF=
"policymgmt.html"
62 HREF=
"interdomaintrusts.html"
77 >Chapter
18. Desktop Profile Management
</H1
87 HREF=
"profilemgmt.html#AEN3095"
94 HREF=
"profilemgmt.html#AEN3102"
95 >Samba Configuration for Profile Handling
</A
101 HREF=
"profilemgmt.html#AEN3105"
102 >NT4/
200x User Profiles
</A
106 HREF=
"profilemgmt.html#AEN3115"
107 >Windows
9x / Me User Profiles
</A
111 HREF=
"profilemgmt.html#AEN3130"
112 >Mixed Windows
9x / Me and Windows NT4/
200x User Profiles
</A
118 HREF=
"profilemgmt.html#AEN3137"
119 >Windows Client Profile Configuration Information
</A
125 HREF=
"profilemgmt.html#AEN3139"
126 >Windows
9x / Me Profile Setup
</A
130 HREF=
"profilemgmt.html#AEN3175"
131 >Windows NT4 Workstation
</A
135 HREF=
"profilemgmt.html#AEN3184"
136 >Windows
2000/XP Professional
</A
142 HREF=
"profilemgmt.html#AEN3257"
143 >Sharing Profiles between W9x/Me and NT4/
200x/XP workstations
</A
147 HREF=
"profilemgmt.html#AEN3264"
148 >Profile Migration from Windows NT4/
200x Server to Samba
</A
154 HREF=
"profilemgmt.html#AEN3267"
155 >Windows NT4 Profile Management Tools
</A
159 HREF=
"profilemgmt.html#AEN3290"
164 HREF=
"profilemgmt.html#AEN3294"
169 HREF=
"profilemgmt.html#AEN3297"
178 HREF=
"profilemgmt.html#AEN3302"
179 >Mandatory profiles
</A
183 HREF=
"profilemgmt.html#AEN3309"
184 >Creating/Managing Group Profiles
</A
188 HREF=
"profilemgmt.html#AEN3315"
189 >Default Profile for Windows Users
</A
195 HREF=
"profilemgmt.html#AEN3318"
200 HREF=
"profilemgmt.html#AEN3330"
201 >MS Windows NT4 Workstation
</A
205 HREF=
"profilemgmt.html#AEN3384"
206 >MS Windows
200x/XP
</A
218 >18.1. Roaming Profiles
</A
234 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/warning.gif"
241 >Roaming profiles support is different for Win9x / Me and Windows NT4/
200x.
</P
247 >Before discussing how to configure roaming profiles, it is useful to see how
248 Windows
9x / Me and Windows NT4/
200x clients implement these features.
</P
250 >Windows
9x / Me clients send a NetUserGetInfo request to the server to get the user's
251 profiles location. However, the response does not have room for a separate
252 profiles location field, only the user's home share. This means that Win9X/Me
253 profiles are restricted to being stored in the user's home directory.
</P
255 >Windows NT4/
200x clients send a NetSAMLogon RPC request, which contains many fields,
256 including a separate field for the location of the user's profiles.
</P
263 >18.1.1. Samba Configuration for Profile Handling
</A
266 >This section documents how to configure Samba for MS Windows client profile support.
</P
273 >18.1.1.1. NT4/
200x User Profiles
</A
276 >To support Windowns NT4/
200x clients, in the [global] section of smb.conf set the
277 following (for example):
</P
280 CLASS=
"PROGRAMLISTING"
281 > logon path = \\profileserver\profileshare\profilepath\%U\moreprofilepath
</PRE
284 This is typically implemented like:
287 CLASS=
"PROGRAMLISTING"
288 > logon path = \\%L\Profiles\%u
</PRE
290 where %L translates to the name of the Samba server and %u translates to the user name
</P
292 >The default for this option is \\%N\%U\profile, namely \\sambaserver\username\profile.
293 The \\N%\%U service is created automatically by the [homes] service. If you are using
294 a samba server for the profiles, you _must_ make the share specified in the logon path
295 browseable. Please refer to the man page for smb.conf in respect of the different
296 symantics of %L and %N, as well as %U and %u.
</P
311 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
318 >MS Windows NT/
2K clients at times do not disconnect a connection to a server
319 between logons. It is recommended to NOT use the
<B
323 meta-service name as part of the profile share path.
</P
335 >18.1.1.2. Windows
9x / Me User Profiles
</A
338 >To support Windows
9x / Me clients, you must use the
"logon home" parameter. Samba has
339 now been fixed so that
<KBD
342 > now works as well, and it, too, relies
348 >By using the logon home parameter, you are restricted to putting Win9x / Me
349 profiles in the user's home directory. But wait! There is a trick you
350 can use. If you set the following in the
<B
353 > section of your
<TT
359 CLASS=
"PROGRAMLISTING"
360 > logon home = \\%L\%U\.profiles
</PRE
363 >then your Windows
9x / Me clients will dutifully put their clients in a subdirectory
364 of your home directory called
<TT
367 > (thus making them hidden).
</P
369 >Not only that, but
<KBD
372 > will also work, because of a feature in
373 Windows
9x / Me. It removes any directory stuff off the end of the home directory area
374 and only uses the server and share portion. That is, it looks like you
375 specified \\%L\%U for
<B
386 >18.1.1.3. Mixed Windows
9x / Me and Windows NT4/
200x User Profiles
</A
389 >You can support profiles for both Win9X and WinNT clients by setting both the
396 > parameters. For example:
</P
399 CLASS=
"PROGRAMLISTING"
400 > logon home = \\%L\%u\.profiles
401 logon path = \\%L\profiles\%u
</PRE
411 >18.1.2. Windows Client Profile Configuration Information
</A
419 >18.1.2.1. Windows
9x / Me Profile Setup
</A
422 >When a user first logs in on Windows
9X, the file user.DAT is created,
423 as are folders
"Start Menu",
"Desktop",
"Programs" and
"Nethood".
424 These directories and their contents will be merged with the local
425 versions stored in c:\windows\profiles\username on subsequent logins,
426 taking the most recent from each. You will need to use the [global]
427 options
"preserve case = yes",
"short preserve case = yes" and
428 "case sensitive = no" in order to maintain capital letters in shortcuts
429 in any of the profile folders.
</P
431 >The user.DAT file contains all the user's preferences. If you wish to
432 enforce a set of preferences, rename their user.DAT file to user.MAN,
433 and deny them write access to this file.
</P
440 > On the Windows
9x / Me machine, go to Control Panel -
> Passwords and
441 select the User Profiles tab. Select the required level of
442 roaming preferences. Press OK, but do _not_ allow the computer
448 > On the Windows
9x / Me machine, go to Control Panel -
> Network -
>
449 Client for Microsoft Networks -
> Preferences. Select 'Log on to
450 NT Domain'. Then, ensure that the Primary Logon is 'Client for
451 Microsoft Networks'. Press OK, and this time allow the computer
457 >Under Windows
9x / Me Profiles are downloaded from the Primary Logon.
458 If you have the Primary Logon as 'Client for Novell Networks', then
459 the profiles and logon script will be downloaded from your Novell
460 Server. If you have the Primary Logon as 'Windows Logon', then the
461 profiles will be loaded from the local machine - a bit against the
462 concept of roaming profiles, it would seem!
</P
464 >You will now find that the Microsoft Networks Login box contains
465 [user, password, domain] instead of just [user, password]. Type in
466 the samba server's domain name (or any other domain known to exist,
467 but bear in mind that the user will be authenticated against this
468 domain and profiles downloaded from it, if that domain logon server
469 supports it), user name and user's password.
</P
471 >Once the user has been successfully validated, the Windows
9x / Me machine
472 will inform you that 'The user has not logged on before' and asks you
473 if you wish to save the user's preferences? Select 'yes'.
</P
475 >Once the Windows
9x / Me client comes up with the desktop, you should be able
476 to examine the contents of the directory specified in the
"logon path"
477 on the samba server and verify that the
"Desktop",
"Start Menu",
478 "Programs" and
"Nethood" folders have been created.
</P
480 >These folders will be cached locally on the client, and updated when
481 the user logs off (if you haven't made them read-only by then).
482 You will find that if the user creates further folders or short-cuts,
483 that the client will merge the profile contents downloaded with the
484 contents of the profile directory already on the local client, taking
485 the newest folders and short-cuts from each set.
</P
487 >If you have made the folders / files read-only on the samba server,
488 then you will get errors from the Windows
9x / Me machine on logon and logout, as
489 it attempts to merge the local and the remote profile. Basically, if
490 you have any errors reported by the Windows
9x / Me machine, check the Unix file
491 permissions and ownership rights on the profile directory contents,
492 on the samba server.
</P
494 >If you have problems creating user profiles, you can reset the user's
495 local desktop cache, as shown below. When this user then next logs in,
496 they will be told that they are logging in
"for the first time".
</P
503 > instead of logging in under the [user, password, domain] dialog,
509 > run the regedit.exe program, and look in:
512 > HKEY_LOCAL_MACHINE\Windows\CurrentVersion\ProfileList
515 > you will find an entry, for each user, of ProfilePath. Note the
516 contents of this key (likely to be c:\windows\profiles\username),
517 then delete the key ProfilePath for the required user.
519 [Exit the registry editor].
531 > - before deleting the contents of the
532 directory listed in the ProfilePath (this is likely to be
535 >c:\windows\profiles\username)
</TT
537 have any important files stored on their desktop or in their start menu.
538 Delete the contents of the directory ProfilePath (making a backup if any
539 of the files are needed).
542 > This will have the effect of removing the local (read-only hidden
543 system file) user.DAT in their profile directory, as well as the
544 local
"desktop",
"nethood",
"start menu" and
"programs" folders.
549 > search for the user's .PWL password-caching file in the c:\windows
550 directory, and delete it.
555 > log off the windows
9x / Me client.
560 > check the contents of the profile path (see
"logon path" described
561 above), and delete the user.DAT or user.MAN file for the user,
562 making a backup if required.
567 >If all else fails, increase samba's debug log levels to between
3 and
10,
568 and / or run a packet trace program such as ethereal or netmon.exe, and
569 look for error messages.
</P
571 >If you have access to an Windows NT4/
200x server, then first set up roaming profiles
572 and / or netlogons on the Windows NT4/
200x server. Make a packet trace, or examine
573 the example packet traces provided with Windows NT4/
200x server, and see what the
574 differences are with the equivalent samba trace.
</P
582 >18.1.2.2. Windows NT4 Workstation
</A
585 >When a user first logs in to a Windows NT Workstation, the profile
586 NTuser.DAT is created. The profile location can be now specified
587 through the
"logon path" parameter.
</P
589 >There is a parameter that is now available for use with NT Profiles:
590 "logon drive". This should be set to
<TT
593 > or any other drive, and
594 should be used in conjunction with the new
"logon home" parameter.
</P
596 >The entry for the NT4 profile is a _directory_ not a file. The NT
597 help on profiles mentions that a directory is also created with a .PDS
598 extension. The user, while logging in, must have write permission to
599 create the full profile path (and the folder with the .PDS extension
600 for those situations where it might be created.)
</P
602 >In the profile directory, Windows NT4 creates more folders than Windows
9x / Me.
603 It creates
"Application Data" and others, as well as
"Desktop",
"Nethood",
604 "Start Menu" and
"Programs". The profile itself is stored in a file
605 NTuser.DAT. Nothing appears to be stored in the .PDS directory, and
606 its purpose is currently unknown.
</P
608 >You can use the System Control Panel to copy a local profile onto
609 a samba server (see NT Help on profiles: it is also capable of firing
610 up the correct location in the System Control Panel for you). The
611 NT Help file also mentions that renaming NTuser.DAT to NTuser.MAN
612 turns a profile into a mandatory one.
</P
614 >The case of the profile is significant. The file must be called
615 NTuser.DAT or, for a mandatory profile, NTuser.MAN.
</P
623 >18.1.2.3. Windows
2000/XP Professional
</A
626 >You must first convert the profile from a local profile to a domain
627 profile on the MS Windows workstation as follows:
</P
633 > Log on as the LOCAL workstation administrator.
638 > Right click on the 'My Computer' Icon, select 'Properties'
643 > Click on the 'User Profiles' tab
648 > Select the profile you wish to convert (click on it once)
653 > Click on the button 'Copy To'
658 > In the
"Permitted to use" box, click on the 'Change' button.
663 > Click on the 'Look in
" area that lists the machine name, when you click
664 here it will open up a selection box. Click on the domain to which the
665 profile must be accessible.
681 SRC="/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif
"
688 >You will need to log on if a logon box opens up. Eg: In the connect
689 as: MIDEARTH\root, password: mypassword.</P
697 > To make the profile capable of being used by anyone select 'Everyone'
702 > Click OK. The Selection box will close.
707 > Now click on the 'Ok' button to create the profile in the path you
713 >Done. You now have a profile that can be editted using the samba-3.0.0
732 SRC="/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif
"
739 >Under NT/2K the use of mandotory profiles forces the use of MS Exchange
740 storage of mail data. That keeps desktop profiles usable.</P
759 SRC="/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif
"
770 >This is a security check new to Windows XP (or maybe only
771 Windows XP service pack 1). It can be disabled via a group policy in
772 Active Directory. The policy is:</P
774 >"Computer Configuration\Administrative Templates\System\User
775 Profiles\Do not check for user ownership of Roaming Profile Folders
"</P
777 >...and it should be set to "Enabled
".
778 Does the new version of samba have an Active Directory analogue? If so,
779 then you may be able to set the policy through this.</P
781 >If you cannot set group policies in samba, then you may be able to set
782 the policy locally on each machine. If you want to try this, then do
783 the following (N.B. I don't know for sure that this will work in the
784 same way as a domain group policy):</P
788 >On the XP workstation log in with an Administrator account.</P
792 >Click: "Start
", "Run
"</P
804 >A Microsoft Management Console should appear.</P
808 >Click: File, "Add/Remove Snap-in...
", "Add
"</P
812 >Double-Click: "Group Policy
"</P
816 >Click: "Finish
", "Close
"</P
824 >In the "Console Root
" window:</P
828 >Expand: "Local Computer Policy
", "Computer Configuration
",</P
832 >"Administrative Templates
", "System
", "User Profiles
"</P
836 >Double-Click: "Do not check for user ownership of Roaming Profile
</P
844 >Select: "Enabled
"</P
852 >Close the whole console. You do not need to save the settings (this
853 refers to the console settings rather than the policies you have
873 >18.1.3. Sharing Profiles between W9x/Me and NT4/
200x/XP workstations
</A
876 >Sharing of desktop profiles between Windows versions is NOT recommended.
877 Desktop profiles are an evolving phenomenon and profiles for later versions
878 of MS Windows clients add features that may interfere with earlier versions
879 of MS Windows clients. Probably the more salient reason to NOT mix profiles
880 is that when logging off an earlier version of MS Windows the older format
881 of profile contents may overwrite information that belongs to the newer
882 version resulting in loss of profile information content when that user logs
883 on again with the newer version of MS Windows.
</P
885 >If you then want to share the same Start Menu / Desktop with W9x/Me, you will
886 need to specify a common location for the profiles. The smb.conf parameters
887 that need to be common are
<SPAN
902 >If you have this set up correctly, you will find separate user.DAT and
903 NTuser.DAT files in the same profile directory.
</P
911 >18.1.4. Profile Migration from Windows NT4/
200x Server to Samba
</A
914 >There is nothing to stop you specifying any path that you like for the
915 location of users' profiles. Therefore, you could specify that the
916 profile be stored on a samba server, or any other SMB server, as long as
917 that SMB server supports encrypted passwords.
</P
924 >18.1.4.1. Windows NT4 Profile Management Tools
</A
927 >Unfortunately, the Resource Kit information is specific to the version of MS Windows
928 NT4/
200x. The correct resource kit is required for each platform.
</P
930 >Here is a quick guide:
</P
936 >On your NT4 Domain Controller, right click on 'My Computer', then
937 select the tab labelled 'User Profiles'.
</P
941 >Select a user profile you want to migrate and click on it.
</P
956 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
963 >I am using the term
"migrate" lossely. You can copy a profile to
964 create a group profile. You can give the user 'Everyone' rights to the
965 profile you copy this to. That is what you need to do, since your samba
966 domain is not a member of a trust relationship with your NT4 PDC.
</P
974 >Click the 'Copy To' button.
</P
978 >In the box labelled 'Copy Profile to' add your new path, eg:
986 >Click on the button labelled 'Change' in the
"Permitted to use" box.
</P
990 >Click on the group 'Everyone' and then click OK. This closes the
999 >Follow the above for every profile you need to migrate.
</P
1007 >18.1.4.2. Side bar Notes
</A
1010 >You should obtain the SID of your NT4 domain. You can use smbpasswd to do
1011 this. Read the man page.
</P
1013 >With Samba-
3.0.0 alpha code you can import all you NT4 domain accounts
1014 using the net samsync method. This way you can retain your profile
1015 settings as well as all your users.
</P
1023 >18.1.4.3. moveuser.exe
</A
1026 >The W2K professional resource kit has moveuser.exe. moveuser.exe changes
1027 the security of a profile from one user to another. This allows the account
1028 domain to change, and/or the user name to change.
</P
1036 >18.1.4.4. Get SID
</A
1039 >You can identify the SID by using GetSID.exe from the Windows NT Server
4.0
1042 >Windows NT
4.0 stores the local profile information in the registry under
1044 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
</P
1046 >Under the ProfileList key, there will be subkeys named with the SIDs of the
1047 users who have logged on to this computer. (To find the profile information
1048 for the user whose locally cached profile you want to move, find the SID for
1049 the user with the GetSID.exe utility.) Inside of the appropriate user's
1050 subkey, you will see a string value named ProfileImagePath.
</P
1060 >18.2. Mandatory profiles
</A
1063 >A Mandatory Profile is a profile that the user does NOT have the ability to overwrite.
1064 During the user's session it may be possible to change the desktop environment, but
1065 as the user logs out all changes made will be lost. If it is desired to NOT allow the
1066 user any ability to change the desktop environment then this must be done through
1067 policy settings. See previous chapter.
</P
1082 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
1089 >Under NO circumstances should the profile directory (or it's contents) be made read-only
1090 as this may render the profile un-usable.
</P
1096 >For MS Windows NT4/
200x/XP the above method can be used to create mandatory profiles
1097 also. To convert a group profile into a mandatory profile simply locate the NTUser.DAT
1098 file in the copied profile and rename it to NTUser.MAN.
</P
1100 >For MS Windows
9x / Me it is the User.DAT file that must be renamed to User.MAN to
1101 affect a mandatory profile.
</P
1109 >18.3. Creating/Managing Group Profiles
</A
1112 >Most organisations are arranged into departments. There is a nice benenfit in
1113 this fact since usually most users in a department will require the same desktop
1114 applications and the same desktop layout. MS Windows NT4/
200x/XP will allow the
1115 use of Group Profiles. A Group Profile is a profile that is created firstly using
1116 a template (example) user. Then using the profile migration tool (see above) the
1117 profile is assigned access rights for the user group that needs to be given access
1118 to the group profile.
</P
1120 >The next step is rather important. PLEASE NOTE: Instead of assigning a group profile
1121 to users (ie: Using User Manager) on a
"per user" basis, the group itself is assigned
1122 the now modified profile.
</P
1137 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
1144 > Be careful with group profiles, if the user who is a member of a group also
1145 has a personal profile, then the result will be a fusion (merge) of the two.
1158 >18.4. Default Profile for Windows Users
</A
1161 >MS Windows
9x / Me and NT4/
200x/XP will use a default profile for any user for whom
1162 a profile does not already exist. Armed with a knowledge of where the default profile
1163 is located on the Windows workstation, and knowing which registry keys affect the path
1164 from which the default profile is created, it is possible to modify the default profile
1165 to one that has been optimised for the site. This has significant administrative
1173 >18.4.1. MS Windows
9x/Me
</A
1176 >To enable default per use profiles in Windows
9x / Me you can either use the Windows
98 System
1177 Policy Editor or change the registry directly.
</P
1179 >To enable default per user profiles in Windows
9x / Me, launch the System Policy Editor, then
1180 select File -
> Open Registry, then click on the Local Computer icon, click on Windows
98 System,
1181 select User Profiles, click on the enable box. Do not forget to save the registry changes.
</P
1183 >To modify the registry directly, launch the Registry Editor (regedit.exe), select the hive
1186 >HKEY_LOCAL_MACHINE\Network\Logon
</TT
1187 >. Now add a DWORD type key with the name
1188 "User Profiles", to enable user profiles set the value to
1, to disable user profiles set it to
0.
</P
1195 >18.4.1.1. How User Profiles Are Handled in Windows
9x / Me?
</A
1198 >When a user logs on to a Windows
9x / Me machine, the local profile path,
1201 >HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProfileList
</TT
1203 for an existing entry for that user:
</P
1205 >If the user has an entry in this registry location, Windows
9x / Me checks for a locally cached
1206 version of the user profile. Windows
9x / Me also checks the user's home directory (or other
1207 specified directory if the location has been modified) on the server for the User Profile.
1208 If a profile exists in both locations, the newer of the two is used. If the User Profile exists
1209 on the server, but does not exist on the local machine, the profile on the server is downloaded
1210 and used. If the User Profile only exists on the local machine, that copy is used.
</P
1212 >If a User Profile is not found in either location, the Default User Profile from the Windows
9x / Me
1213 machine is used and is copied to a newly created folder for the logged on user. At log off, any
1214 changes that the user made are written to the user's local profile. If the user has a roaming
1215 profile, the changes are written to the user's profile on the server.
</P
1224 >18.4.2. MS Windows NT4 Workstation
</A
1227 >On MS Windows NT4 the default user profile is obtained from the location
1230 >%SystemRoot%\Profiles
</TT
1231 > which in a default installation will translate to
1234 >C:\WinNT\Profiles
</TT
1235 >. Under this directory on a clean install there will be
1236 three (
3) directories:
<TT
1238 >Administrator, All Users, Default User
</TT
1244 > directory contains menu settings that are common across all
1245 system users. The
<TT
1248 > directory contains menu entries that are
1249 customisable per user depending on the profile settings chosen/created.
</P
1251 >When a new user first logs onto an MS Windows NT4 machine a new profile is created from:
</P
1259 >All Users settings
</TD
1263 >Default User settings (contains the default NTUser.DAT file)
</TD
1270 >When a user logs onto an MS Windows NT4 machine that is a member of a Microsoft security domain
1271 the following steps are followed in respect of profile handling:
</P
1278 > The users' account information which is obtained during the logon process contains
1279 the location of the users' desktop profile. The profile path may be local to the
1280 machine or it may be located on a network share. If there exists a profile at the location
1281 of the path from the user account, then this profile is copied to the location
1284 >%SystemRoot%\Profiles\%USERNAME%
</TT
1285 >. This profile then inherits the
1289 > profile in the
<TT
1291 >%SystemRoot%\Profiles
</TT
1298 > If the user account has a profile path, but at it's location a profile does not exist,
1299 then a new profile is created in the
<TT
1301 >%SystemRoot%\Profiles\%USERNAME%
</TT
1303 directory from reading the
<TT
1311 > If the NETLOGON share on the authenticating server (logon server) contains a policy file
1315 >) then it's contents are applied to the
<TT
1319 which is applied to the
<TT
1321 >HKEY_CURRENT_USER
</TT
1322 > part of the registry.
1327 > When the user logs out, if the profile is set to be a roaming profile it will be written
1328 out to the location of the profile. The
<TT
1332 re-created from the contents of the
<TT
1334 >HKEY_CURRENT_USER
</TT
1336 Thus, should there not exist in the NETLOGON share an
<TT
1340 next logon, the effect of the provious
<TT
1343 > will still be held
1344 in the profile. The effect of this is known as
<SPAN
1355 >MS Windows NT4 profiles may be
<SPAN
1368 will stored in the
<TT
1370 >%SystemRoot%\Profiles\%USERNAME%
</TT
1371 > location. A roaming profile will
1372 also remain stored in the same way, unless the following registry key is created:
</P
1375 CLASS=
"PROGRAMLISTING"
1376 > HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\winlogon\
1377 "DeleteRoamingCache"=dword:
00000001</PRE
1380 In which case, the local copy (in
<TT
1382 >%SystemRoot%\Profiles\%USERNAME%
</TT
1384 deleted on logout.
</P
1386 >Under MS Windows NT4 default locations for common resources (like
<TT
1390 may be redirected to a network share by modifying the following registry keys. These changes may be affected
1391 via use of the System Policy Editor (to do so may require that you create your owns template extension
1392 for the policy editor to allow this to be done through the GUI. Another way to do this is by way of first
1393 creating a default user profile, then while logged in as that user, run regedt32 to edit the key settings.
</P
1395 >The Registry Hive key that affects the behaviour of folders that are part of the default user profile
1396 are controlled by entries on Windows NT4 is:
</P
1399 CLASS=
"PROGRAMLISTING"
1406 \User Shell Folders\
</PRE
1409 >The above hive key contains a list of automatically managed folders. The default entries are:
</P
1412 CLASS=
"PROGRAMLISTING"
1413 > Name Default Value
1414 -------------- -----------------------------------------
1415 AppData %USERPROFILE%\Application Data
1416 Desktop %USERPROFILE%\Desktop
1417 Favorites %USERPROFILE%\Favorites
1418 NetHood %USERPROFILE%\NetHood
1419 PrintHood %USERPROFILE%\PrintHood
1420 Programs %USERPROFILE%\Start Menu\Programs
1421 Recent %USERPROFILE%\Recent
1422 SendTo %USERPROFILE%\SendTo
1423 Start Menu %USERPROFILE%\Start Menu
1424 Startup %USERPROFILE%\Start Menu\Programs\Startup
1429 >The registry key that contains the location of the default profile settings is:
1432 CLASS=
"PROGRAMLISTING"
1433 > HKEY_LOCAL_MACHINE
1439 \User Shell Folders
</PRE
1442 The default entries are:
1445 CLASS=
"PROGRAMLISTING"
1446 > Common Desktop %SystemRoot%\Profiles\All Users\Desktop
1447 Common Programs %SystemRoot%\Profiles\All Users\Programs
1448 Common Start Menu %SystemRoot%\Profiles\All Users\Start Menu
1449 Common Startu p %SystemRoot%\Profiles\All Users\Start Menu\Progams\Startup
</PRE
1458 >18.4.3. MS Windows
200x/XP
</A
1474 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
1481 > MS Windows XP Home Edition does use default per user profiles, but can not participate
1482 in domain security, can not log onto an NT/ADS style domain, and thus can obtain the profile
1483 only from itself. While there are benefits in doing this the beauty of those MS Windows
1484 clients that CAN participate in domain logon processes allows the administrator to create
1485 a global default profile and to enforce it through the use of Group Policy Objects (GPOs).
1492 >When a new user first logs onto MS Windows
200x/XP machine the default profile is obtained from
1495 >C:\Documents and Settings\Default User
</TT
1496 >. The administrator can modify (or change
1497 the contents of this location and MS Windows
200x/XP will gladly user it. This is far from the optimum
1498 arrangement since it will involve copying a new default profile to every MS Windows
200x/XP client
1501 >When MS Windows
200x/XP participate in a domain security context, and if the default user
1502 profile is not found, then the client will search for a default profile in the NETLOGON share
1503 of the authenticating server. ie: In MS Windows parlance:
1506 >%LOGONSERVER%\NETLOGON\Default User
</TT
1507 > and if one exits there it will copy this
1508 to the workstation to the
<TT
1510 >C:\Documents and Settings\
</TT
1512 login name of the user.
</P
1527 SRC=
"/usr/share/sgml/docbook/stylesheet/dsssl/modular/images/note.gif"
1534 > This path translates, in Samba parlance, to the smb.conf [NETLOGON] share. The directory
1535 should be created at the root of this share and msut be called
<TT
1537 >Default Profile
</TT
1545 >If a default profile does not exist in this location then MS Windows
200x/XP will use the local
1548 >On loging out, the users' desktop profile will be stored to the location specified in the registry
1549 settings that pertain to the user. If no specific policies have been created, or passed to the client
1550 during the login process (as Samba does automatically), then the user's profile will be written to
1551 the local machine only under the path
<TT
1553 >C:\Documents and Settings\%USERNAME%
</TT
1556 >Those wishing to modify the default behaviour can do so through up to three methods:
</P
1562 > Modify the registry keys on the local machine manually and place the new default profile in the
1563 NETLOGON share root - NOT recommended as it is maintenance intensive.
1568 > Create an NT4 style NTConfig.POL file that specified this behaviour and locate this file
1569 in the root of the NETLOGON share along with the new default profile.
1574 > Create a GPO that enforces this through Active Directory, and place the new default profile
1575 in the NETLOGON share.
1580 >The Registry Hive key that affects the behaviour of folders that are part of the default user profile
1581 are controlled by entries on Windows
200x/XP is:
</P
1584 CLASS=
"PROGRAMLISTING"
1591 \User Shell Folders\
</PRE
1594 >The above hive key contains a list of automatically managed folders. The default entries are:
</P
1597 CLASS=
"PROGRAMLISTING"
1598 > Name Default Value
1599 -------------- -----------------------------------------
1600 AppData %USERPROFILE%\Application Data
1601 Cache %USERPROFILE%\Local Settings\Temporary Internet Files
1602 Cookies %USERPROFILE%\Cookies
1603 Desktop %USERPROFILE%\Desktop
1604 Favorites %USERPROFILE%\Favorites
1605 History %USERPROFILE%\Local Settings\History
1606 Local AppData %USERPROFILE%\Local Settings\Application Data
1607 Local Settings %USERPROFILE%\Local Settings
1608 My Pictures %USERPROFILE%\My Documents\My Pictures
1609 NetHood %USERPROFILE%\NetHood
1610 Personal %USERPROFILE%\My Documents
1611 PrintHood %USERPROFILE%\PrintHood
1612 Programs %USERPROFILE%\Start Menu\Programs
1613 Recent %USERPROFILE%\Recent
1614 SendTo %USERPROFILE%\SendTo
1615 Start Menu %USERPROFILE%\Start Menu
1616 Startup %USERPROFILE%\Start Menu\Programs\Startup
1617 Templates %USERPROFILE%\Templates
1622 >There is also an entry called
"Default" that has no value set. The default entry is of type REG_SZ, all
1623 the others are of type REG_EXPAND_SZ.
</P
1625 >It makes a huge difference to the speed of handling roaming user profiles if all the folders are
1626 stored on a dedicated location on a network server. This means that it will NOT be necessary to
1627 write Outlook PST file over the network for every login and logout.
</P
1629 >To set this to a network location you could use the following examples:
1632 CLASS=
"PROGRAMLISTING"
1633 > %LOGONSERVER%\%USERNAME%\Default Folders
</PRE
1636 This would store the folders in the user's home directory under a directory called
"Default Folders"
1641 CLASS=
"PROGRAMLISTING"
1642 > \\SambaServer\FolderShare\%USERNAME%
</PRE
1645 in which case the default folders will be stored in the server named
<SPAN
1652 in the share called
<SPAN
1658 > under a directory that has the name of the MS Windows
1659 user as seen by the Linux/Unix file system.
</P
1661 >Please note that once you have created a default profile share, you MUST migrate a user's profile
1662 (default or custom) to it.
</P
1664 >MS Windows
200x/XP profiles may be
<SPAN
1677 A roaming profile will be cached locally unless the following registry key is created:
</P
1680 CLASS=
"PROGRAMLISTING"
1681 > HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\winlogon\
1682 "DeleteRoamingCache"=dword:
00000001</PRE
1685 In which case, the local cache copy will be deleted on logout.
</P
1694 SUMMARY=
"Footer navigation table"
1705 HREF=
"policymgmt.html"
1714 HREF=
"samba-howto-collection.html"
1723 HREF=
"interdomaintrusts.html"
1733 >System and Account Policies
</TD
1739 HREF=
"optional.html"
1747 >Interdomain Trust Relationships
</TD