Setting permissons on Userareas
I'm in need of some help...
Just had a phone call from a member of SMT. He decided, because he couldn't access a pupils userarea, to replace all the permissions on the userarea share. :eek:
This means that currently the SMT Group have full control and noone else can access it.
This is a bit of an issue as I redirect my documents to the userarea share.
I've had a look at http://www.edugeek.net/forums/networ...ns-issues.html and had a quick attempt top fix the issue using Ric_'s script.
My users are set up like this:
Under the root domain in active directory there is the pupils OU and under that, I have OU's for each year e.g. 2009 Pupils, 2008 Pupils etc
All the users under 200x Pupils OU's then belong to a security group in the Users folder.
I use the security group to redirect the users my dos to their userarea e.g. \\dc02\Students\2001\%username%
I've modified the vbs script to mirror the set up:
Set FSO = CreateObject("Scripting.FileSystemObject")
Set ObjShell = Wscript.CreateObject("Wscript.Shell")
For Each Subfolder in Folder.SubFolders
WScript.Echo "Folder = " & Subfolder
userName = SubFolder.Name
CMDLine1 = "cscript xcacls.vbs " & """" & Subfolder & """" & " /T /G staff:r ""Domain admins:f"" " & "academic\pupils\2001 Pupils" & userName & ":m"
' WScript.echo "Command = " & CMDline1
WScript.Echo "Running XCACLS..."
CMDLine2 = "chown -r " & userName & " """ & Subfolder & """"
' WScript.Echo "Command = " & CMDLine2
WScript.Echo "Running CHOWN..."
and it doesn't work. I get the error - Can not find user: <username>
Can't see the wood for the trees now so any suggestions greatly accepted!