Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/bin/X11/./../../share/doc/MySQL-python-1.2.0/../samba-3.0.23a/htmldocs/Samba3-HOWTO/ drwxr-xr-x |
Viewing file: Select action/file-type: Table of Contents Roaming profiles are feared by some, hated by a few, loved by many, and a godsend for some administrators. Roaming profiles allow an administrator to make available a consistent user desktop as the user moves from one machine to another. This chapter provides much information regarding how to configure and manage roaming profiles. While roaming profiles might sound like nirvana to some, they are a real and tangible problem to others. In particular, users of mobile computing tools, where often there may not be a sustained network connection, are often better served by purely local profiles. This chapter provides information to help the Samba administrator deal with those situations. WarningRoaming profiles support is different for Windows 9x/Me and Windows NT4/200x. Before discussing how to configure roaming profiles, it is useful to see how Windows 9x/Me and Windows NT4/200x clients implement these features. Windows 9x/Me clients send a NetUserGetInfo request to the server to get the user's profiles location. However, the response does not have room for a separate profiles location field, only the user's home share. This means that Windows 9x/Me profiles are restricted to being stored in the user's home directory. Windows NT4/200x clients send a NetSAMLogon RPC request, which contains many fields including a separate field for the location of the user's profiles. This section documents how to configure Samba for MS Windows client profile support.
For example, to support Windows NT4/200x clients, set the following in the [global] section of the
This is typically implemented like:
where “%L” translates to the name of the Samba server and “%U” translates to the username.
The default for this option is
To support Windows 9x/Me clients, you must use the logon home
parameter. Samba has been fixed so
By using the
then your Windows 9x/Me clients will dutifully put their clients in a subdirectory
of your home directory called
Not only that, but You can support profiles for Windows 9x and Windows NT clients by setting both the logon home and logon path parameters. For example,
Windows 9x/Me and NT4 and later profiles should not be stored in the same location because Windows NT4 and later will experience problems with mixed profile environments. The question often asked is, “How may I enforce use of local profiles?” or “How do I disable roaming profiles?” There are three ways of doing this:
Consult the MS Windows registry guide for your particular MS Windows version for more information about which registry keys to change to enforce use of only local user profiles.
When a user first logs in on Windows 9x, the file user.DAT is created, as are folders
The
Under Windows 9x/Me, profiles are downloaded from the Primary Logon. If you have the Primary Logon as “Client for Novell Networks”, then the profiles and logon script will be downloaded from your Novell server. If you have the Primary Logon as “Windows Logon”, then the profiles will be loaded from the local machine a bit against the concept of roaming profiles, it would seem!
You will now find that the Microsoft Networks Login box contains
Once the user has been successfully validated, the Windows 9x/Me machine informs you that
Once the Windows 9x/Me client comes up with the desktop, you should be able to examine the
contents of the directory specified in the logon path on
the Samba server and verify that the These folders will be cached locally on the client and updated when the user logs off (if you haven't made them read-only by then). You will find that if the user creates further folders or shortcuts, the client will merge the profile contents downloaded with the contents of the profile directory already on the local client, taking the newest folders and shortcut from each set. If you have made the folders/files read-only on the Samba server, then you will get errors from the Windows 9x/Me machine on logon and logout as it attempts to merge the local and remote profile. Basically, if you have any errors reported by the Windows 9x/Me machine, check the UNIX file permissions and ownership rights on the profile directory contents, on the Samba server. If you have problems creating user profiles, you can reset the user's local desktop cache, as shown below. When this user next logs in, the user will be told that he/she is logging in “for the first time”.
Warning
Before deleting the contents of the directory listed in the
This will have the effect of removing the local (read-only hidden system file) If all else fails, increase Samba's debug log levels to between 3 and 10, and/or run a packet sniffer program such as ethereal or netmon.exe, and look for error messages. If you have access to an Windows NT4/200x server, then first set up roaming profiles and/or netlogons on the Windows NT4/200x server. Make a packet trace, or examine the example packet traces provided with Windows NT4/200x server, and see what the differences are with the equivalent Samba trace. When a user first logs in to a Windows NT workstation, the profile NTuser.DAT is created. The profile location can be now specified through the logon path parameter.
There is a parameter that is now available for use with NT Profiles: logon drive.
This should be set to The entry for the NT4 profile is a directory, not a file. The NT help on profiles mentions that a directory is also created with a .PDS extension. The user, while logging in, must have write permission to create the full profile path (and the folder with the .PDS extension for those situations where it might be created).
In the profile directory, Windows NT4 creates more folders than Windows 9x/Me. It creates
You can use the System Control Panel to copy a local profile onto
a Samba server (see NT help on profiles; it is also capable of firing up the correct location in the
System Control Panel for you). The NT help file also mentions that renaming
The case of the profile is significant. The file must be called You must first convert the profile from a local profile to a domain profile on the MS Windows workstation as follows:
Done. You now have a profile that can be edited using the Samba profiles tool. NoteUnder Windows NT/200x, the use of mandatory profiles forces the use of MS Exchange storage of mail data and keeps it out of the desktop profile. That keeps desktop profiles from becoming unusable. There is a security check new to Windows XP (or maybe only Windows XP service pack 1). It can be disabled via a group policy in the Active Directory. The policy is called: Computer Configuration\Administrative Templates\System\User Profiles\ Do not check for user ownership of Roaming Profile Folders
This should be set to Does the new version of Samba have an Active Directory analogue? If so, then you may be able to set the policy through this. If you cannot set group policies in Samba, then you may be able to set the policy locally on each machine. If you want to try this, then do the following:
There are certain situations that cause a cached local copy of roaming profile not to be deleted on exit, even if the policy to force such deletion is set. To deal with that situation, a special service was created. The application UPHClean (User Profile Hive Cleanup) can be installed as a service on Windows NT4/2000/XP Professional and Windows 2003. The UPHClean software package can be downloaded from the User Profile Hive Cleanup Service[7] web site. Sharing of desktop profiles between Windows versions is not recommended. Desktop profiles are an evolving phenomenon, and profiles for later versions of MS Windows clients add features that may interfere with earlier versions of MS Windows clients. Probably the more salient reason to not mix profiles is that when logging off an earlier version of MS Windows, the older format of profile contents may overwrite information that belongs to the newer version, resulting in loss of profile information content when that user logs on again with the newer version of MS Windows.
If you then want to share the same Start Menu and Desktop with Windows 9x/Me, you must specify a common
location for the profiles. The
If you have this set up correctly, you will find separate There is nothing to stop you from specifying any path that you like for the location of users' profiles. Therefore, you could specify that the profile be stored on a Samba server or any other SMB server, as long as that SMB server supports encrypted passwords. Unfortunately, the resource kit information is specific to the version of MS Windows NT4/200x. The correct resource kit is required for each platform. Here is a quick guide: Procedure 27.3. Profile Migration Procedure
Follow these steps for every profile you need to migrate. You should obtain the SID of your NT4 domain. You can use the net rpc info to do this. See The Net Command Chapter, Other Miscellaneous Operations for more information. The Windows 200x professional resource kit has moveuser.exe. moveuser.exe changes the security of a profile from one user to another. This allows the account domain to change and/or the username to change. This command is like the Samba profiles tool. You can identify the SID by using GetSID.exe from the Windows NT Server 4.0 Resource Kit.
Windows NT 4.0 stores the local profile information in the registry under the following key:
Under the ProfileList key, there will be subkeys named with the SIDs of the users who have logged
on to this computer. (To find the profile information for the user whose locally cached profile you want
to move, find the SID for the user with the GetSID.exe utility.) Inside the appropriate user's subkey,
you will see a string value named A mandatory profile is a profile that the user does not have the ability to overwrite. During the user's session, it may be possible to change the desktop environment; however, as the user logs out, all changes made will be lost. If it is desired to not allow the user any ability to change the desktop environment, then this must be done through policy settings. See System and Account Policies. NoteUnder NO circumstances should the profile directory (or its contents) be made read-only because this may render the profile unusable. Where it is essential to make a profile read-only within the UNIX file system, this can be done, but then you absolutely must use the fake-permissions VFS module to instruct MS Windows NT/200x/XP clients that the Profile has write permission for the user. See fake_perms VFS module.
For MS Windows NT4/200x/XP, the procedure shown in Profile Migration from Windows
NT4/200x Server to Samba can also be used to create mandatory profiles. To convert a group profile into
a mandatory profile, simply locate the
For MS Windows 9x/Me, it is the Most organizations are arranged into departments. There is a nice benefit in this fact, since usually most users in a department require the same desktop applications and the same desktop layout. MS Windows NT4/200x/XP will allow the use of group profiles. A group profile is a profile that is created first using a template (example) user. Then using the profile migration tool (see above), the profile is assigned access rights for the user group that needs to be given access to the group profile. The next step is rather important. Instead of assigning a group profile to users (Using User Manager) on a “per-user” basis, the group itself is assigned the now modified profile. NoteBe careful with group profiles. If the user who is a member of a group also has a personal profile, then the result will be a fusion (merge) of the two. MS Windows 9x/Me and NT4/200x/XP will use a default profile for any user for whom a profile does not already exist. Armed with a knowledge of where the default profile is located on the Windows workstation, and knowing which registry keys affect the path from which the default profile is created, it is possible to modify the default profile to one that has been optimized for the site. This has significant administrative advantages. To enable default per-use profiles in Windows 9x/Me, you can either use the Windows 98 System Policy Editor or change the registry directly. To enable default per-user profiles in Windows 9x/Me, launch the System Policy Editor, then select -> . Next click on the Local Computer icon, click on Windows 98 System, select User Profiles, and click on the enable box. Remember to save the registry changes.
To modify the registry directly, launch the Registry Editor
(regedit.exe) and select the hive
When a user logs on to a Windows 9x/Me machine, the local profile path,
If the user has an entry in this registry location, Windows 9x/Me checks for a locally cached version of the user profile. Windows 9x/Me also checks the user's home directory (or other specified directory if the location has been modified) on the server for the user profile. If a profile exists in both locations, the newer of the two is used. If the user profile exists on the server but does not exist on the local machine, the profile on the server is downloaded and used. If the user profile only exists on the local machine, that copy is used. If a user profile is not found in either location, the default user profile from the Windows 9x/Me machine is used and copied to a newly created folder for the logged on user. At log off, any changes that the user made are written to the user's local profile. If the user has a roaming profile, the changes are written to the user's profile on the server.
On MS Windows NT4, the default user profile is obtained from the location
The When a new user first logs onto an MS Windows NT4 machine, a new profile is created from:
When a user logs on to an MS Windows NT4 machine that is a member of a Microsoft security domain, the following steps are followed for profile handling:
MS Windows NT4 profiles may be local or roaming. A local
profile is stored in the HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\ winlogon\"DeleteRoamingCache"=dword:0000000
In this case, the local copy (in
Under MS Windows NT4, default locations for common resources like The Registry Hive key that affects the behavior of folders that are part of the default user profile are controlled by entries on Windows NT4 is: HKEY_CURRENT_USER \Software \Microsoft \Windows \CurrentVersion \Explorer \User Shell Folders The above hive key contains a list of automatically managed folders. The default entries are shown in the next table. Table 27.1. User Shell Folder Registry Keys Default Values
The registry key that contains the location of the default profile settings is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ User Shell Folders
The default entries are shown in Defaults of Profile Settings Registry Keys. NoteMS Windows XP Home Edition does use default per-user profiles, but cannot participate in domain security, cannot log onto an NT/ADS-style domain, and thus can obtain the profile only from itself. While there are benefits in doing this, the beauty of those MS Windows clients that can participate in domain logon processes is that they allow the administrator to create a global default profile and enforce it through the use of Group Policy Objects (GPOs).
When a new user first logs onto an MS Windows 200x/XP machine, the default profile is obtained from
When MS Windows 200x/XP participates in a domain security context, and if the default user profile is not
found, then the client will search for a default profile in the NETLOGON share of the authenticating server.
In MS Windows parlance, it is Note This path translates, in Samba parlance, to the If a default profile does not exist in this location, then MS Windows 200x/XP will use the local default profile. On logging out, the user's desktop profile is stored to the location specified in the registry
settings that pertain to the user. If no specific policies have been created or passed to the client
during the login process (as Samba does automatically), then the user's profile is written to the
local machine only under the path Those wishing to modify the default behavior can do so through these three methods:
The registry hive key that affects the behavior of folders that are part of the default user profile are controlled by entries on Windows 200x/XP is: This hive key contains a list of automatically managed folders. The default entries are shown in the next table Table 27.3. Defaults of Default User Profile Paths Registry Keys
There is also an entry called “Default” that has no value set. The default entry is
of type It makes a huge difference to the speed of handling roaming user profiles if all the folders are stored on a dedicated location on a network server. This means that it will not be necessary to write the Outlook PST file over the network for every login and logout. To set this to a network location, you could use the following examples: %LOGONSERVER%\%USERNAME%\Default Folders
This stores the folders in the user's home directory under a directory called \\
in which case the default folders are stored in the server named Please note that once you have created a default profile share, you must migrate a user's profile (default or custom) to it. MS Windows 200x/XP profiles may be local or roaming. A roaming profile is cached locally unless the following registry key is created:
HKEY_LOCAL_MACHINE\SYSTEM\Software\Microsoft\Windows NT\CurrentVersion\ winlogon\"DeleteRoamingCache"=dword:00000001 In this case, the local cache copy is deleted on logout. The following are some typical errors, problems, and questions that have been asked on the Samba mailing lists. With Samba-2.2.x, the choice you have is to enable or disable roaming profiles support. It is a global-only setting. The default is to have roaming profiles, and the default path will locate them in the user's home directory. If disabled globally, then no one will have roaming profile ability. If enabled and you want it to apply only to certain machines, then on those machines on which roaming profile support is not wanted, it is necessary to disable roaming profile handling in the registry of each such machine.
With Samba-3, you can have a global profile setting in In any case, you can configure only one profile per user. That profile can be either:
A user requested the following: “ I do not want roaming profiles to be implemented. I want to give users a local profile alone. I am totally lost with this error. For the past two days I tried everything, I googled around but found no useful pointers. Please help me. ” The choices are:
The roaming profile choices are:
A Windows NT4/200x/XP profile can vary in size from 130KB to very large. Outlook PST files are most often part of the profile and can be many gigabytes in size. On average (in a well controlled environment), roaming profile size of 2MB is a good rule of thumb to use for planning purposes. In an undisciplined environment, I have seen up to 2GB profiles. Users tend to complain when it takes an hour to log onto a workstation, but they harvest the fruits of folly (and ignorance). The point of this discussion is to show that roaming profiles and good controls of how they can be changed as well as good discipline make for a problem-free site. Microsoft's answer to the PST problem is to store all email in an MS Exchange Server backend. This removes the need for a PST file. Local profiles mean:
On the other hand, use of roaming profiles means:
“When the client logs onto the domain controller, it searches for a profile to download. Where do I put this default profile?”
First, the Samba server needs to be configured as a domain controller. This can be done by
setting in
There must be a Note To invoke autodeletion of roaming profiles from the local workstation cache (disk storage), use
the Group Policy Editor to create a file called Windows clients need to be members of the domain. Workgroup machines do not use network logons, so they do not interoperate with domain profiles. For roaming profiles, add to
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.004 ]-- |