Today's chat is all about Windows Roaming Profiles.Profiles are really the life blood of the kind of network we are building here. Your user profiles will contain all the data that you will need to encapsulate a user. Once your user has a profile, they are on the server, and can be manipulated rather easily. You can do a number of things to a user on your server via the profile. One of which is change their registry. The meat and potatoes of a Samba domain management scheme like this requires some tweaks to the user and computer registry. With the tools provided, its not a problem.
The registry file that is loaded in the windows registry under HKCU is located in the root of the profile, and its called : ntuser.dat
Now ntuser.dat is easy to edit. I like to mount the profile drive in samba and “Load Hive” the registry's from. To do this just run
Make sure you have selected HKLM on the left for this to work. Once it asks for a key, type “default” and hit enter.
Now that users keys will be loaded as “default” under HKLM on your regedt32, you can affect them and then “Unload Hive” from the same menu.
Thats a great way to edit the registry remotely, but you can also edit the registry when the user is logged unto a machine. Then when the user logs off the registry will be saved back to the server under their profile.
This is great for little tweaks, but what about a wide scale registry change? That's where ntconfig.POL comes in.
Windows has a great way of doing things with clients called Active Directory. If we had a Windows server I would explain all the benefits of Active Directory, but we don't, so no crying.
Instead, embrace your Linux Samba box and dive in as we use a work around to get a lot of Active Directory style love.
First the tools.
In order to create an ntconfig.POL you are going to need :
You can download this from Microsoft's site. Just do a search for Orktools and it should come up.
I believe Orktools is a package for maintaining the ntconfig.POL with Ms Office. It works for us just fine.
Next you are going to need a sample policy to go by. This is called the ADM file, and is a template:
Download Sample Custom ADM
This was made by Nathan Lightfoot, I retrieved it from the Novell site, it works great for our purposes.
http://www.novell.com/coolsolutions/tools/14387.html
Here's the low down. Take the .ADM file and use that as a template to create the ntconfig.pol.
Once you have that created, modify the options to suit your needs.
Launch the poledit.exe and select options from the top then template, and select the .ADM file.
poledit.exe>options>templates>select your .ADM file
Now you should see two icons appear, one is for the Local Machine, the other is for the user. They both have some really cool features that we are going to use to customize the way these clients play with the network.
Go ahead and click through the options of Default Computer. Notice all the ways you can customize these clients. You can adjust Automatic Updates, Media Player Updates, shut down the Firewall, and on and on. Its great. Oh on a side note, if you are new to this business, for the love of god stop installing and running firewalls on client machines. Every time I have to disable multiple firewalls on a client a little piece of me dies inside. Don't you know that software firewalls step in between your TCP/IP stack and the network? Its like putting a traffic cop on the freeway. There is no need to have a firewall on your client. If you are that freaked out about being on the net and need TIA (total information awareness), then get a decent router that logs your connections.I could rant for a while on the futility of software firewalls on the client, but I must digress.
Lets focus now on the other icon Default User. Notice Folder Redirection. If you open that up there are a few folders you can redirect. This is very important. When you make the switch to a profile base system, your users will still want to treat the machine like the dirty scamp that they have been used to. This means crap upon crap on the Desktop, and loads of more crap in My Documents. What are we to do?
Luckly, when Samba makes a profile, it lets you create a home directory for the user. This is on the server, by default I believe its the users home directory. I move it to someplace a little easier like under my winstore/user/username dir. If you created a profile directory for your users, great. Now create a home directory for them right beside the profile dir . In that directory create two more dirs:
mydocuments
desktop
Change the folder option:
Default User>Folder Redirection>Custom Desktop Folder>//YOURSERVER/user/%username%/desktop
Thats it. Notice the environment variable %username%.
To see if your folder redirect in the registry its in HKCU\Software\Microsoft\Windows\Current Version\Explorer\Shell Folders
Now do the same with My Documents. Save the ntconfig.POL file to your Samba netlogon share as defined in the smb.conf. I place mine usually in /home/netlogon/ntconfig.POL , along with my logon.cmd.
logon.cmd is a script that defines what drives are mapped at logon along with some other stuff, like setting the clock, check it out.
Now you should be able to log into the user and have all the data on the desktop and in My Documents stay and be accessed on the server, rather then having to load each time with the users profile. It really keeps the load times down, and the users happy.
Come back again as I talk about setting up Thunderbird in this environment. I will also begin to touch on my philosophy and method of computer security.
Need some more info, are you that geeked out? Welcome to the club bretheren.
http://www.petri.co.il/understanding_administrative_templates_in_gpo.htm