[THIN] Re: Home Folder ownership

  • From: "Jim Kenzig http://ThinHelp.com" <jkenzig@xxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Tue, 10 Oct 2006 04:55:38 -0700 (PDT)

We have all sorts of problems in office apps if they aren't in our 2003 domain. 
   
  Here are a couple script files for you. 
   
  First create a script to pull out your users names from your profile 
directory. Of course all of this hedges on that all of your users have logged 
on at least once and have a profile. Otherwise it is useless.
   
  Lets call it getusers.cmd
   
  @Echo Off
Dir /B F:\Profiles >F:\users.txt
   
  This assumes your profiles folder is on drive F:  Edit to your drive and 
profiles dir. It outputs the users to a file called users.txt
   
  Next create a simple yes answer text file called Yes.txt just put the letter 
Y in the file and save it in your root directory where you saved the users.txt 
file.
   
  Finally here is your script to set permissions.  Lets call it 
set_perms_users.cmd
   
  For /F %%1 in (F:\users.txt) do xcacls F:\Users\%%1 /T /C /G administrators:F 
%userdomain%\%%1:CO System:F <yes.txt
   
  This assumes that your users files are in F:\users  change that to your users 
directory. It gives the user full priveleges on all their files and adds the 
administrators group so you can manage them. 
   
  You can do the same for your profiles with a set_perms_profiles.cmd that just 
changes the directory to your profiles directory. 
   
  For /F %%1 in (F:\users.txt) do xcacls F:\profiles\%%1 /T /C /G 
administrators:F %userdomain%\%%1:CO System:F <yes.txt
   
  Change the F:\ to your drive and profiles directory.
   
  Hope this helps.
   
  Jim Kenzig
   
  

Evan Mann <emann@> wrote:
      I direct profiles and home folders to separate places, thus the only 
thing in a users home folder is the \windows folder and any personal documents 
they place there. 
  
With this being the case, is it necessary for the user to be the owner of their 
folder?  I have it both ways and I have not had any problems.  FYI, I will 
never redirect app data, desktop, or start menu into the home folder.
   
  I do have the profiles folders setup where the user is the owner, as 
everything I read said this is necessary.  



Jim Kenzig 
    Microsoft MVP - Terminal Services
  Citrix Technology Professional
  Provision Networks VIP
CEO The Kenzig Group
http://www.kenzig.com
Blog: http://www.techblink.com

    Terminal Services Downloads: http://www.thinhelp.com



   

Other related posts: