Jump to content

Recommended Posts

Posted

Ok, we have around 100 pupils on our network with a home directory for each user under the home$ share :

 

\\server\home$\%username%

 

THe permissions are wrong on the majority of these folders and I need to reset them so that the administrator has full control, the teachers group has RW and the actual pupil has RW.

 

Has anyone got a script that will reset these permissions for me automatically, Its easy enough to add a specific group, but I am struggling to go through the whole structure with a script and set the permission for the specific pupil for their specific home folder.

 

Please help !

 

Regards

 

Gary

Posted

Thanks, I did look at this but wasn't quite sure if it would do what I required:

 

for /D %%i in (*) do ( subinacl /file %%i /grant=yourdomain\%%i=C "/grant=yourdomain\domain admins=f" /grant=yourdomain\AreaViewer=c /setowner=yourdomain\%%i

 

subinacl /subdirectories %%i\* /grant=yourdomain\%%i=f "/grant=yourdomain\domain admins=f" /grant=yourdomain\AreaViewer=r /setowner=yourdomain\%%i )

 

I presume you run this from the c:\home folder (or whichever folder is the root of your home drives) and then it runs through all the subfolders setting the permissions according to the name of the sub folder, i.e. fred gets permission over the fred folder, bill gets permission over the bill folder etc, is that correct?

 

P.S. Whats the AreaViewer part?

 

Regards

 

Gary

Posted

Gary

 

Before you do this, can I query giving teachers RW on pupil folders. At Primary level, it's rarely a problem.

 

At secondary level you need to be very wary. Exam boards take a dim view of teachers being able to modify students' course work. "We'd never do that" isn't an exceptable excuse to them.

  • Thanks 1
Posted

Gary,

 

I think the area view is a account that has perms to view all pupils areas, you would most likley want to add teachers that needed view access to pupils folders.

  • Thanks 1
Posted (edited)

Sorry been busy today. Areaviewer was the group someone else was asking about when I wrote the example. In my case it would be teachers and read only.

The one on the wiki was originally written by me but the subinacl one works a lot better.

Edited by ChrisH
Posted

@ elsiegee40:

Exam boards take a dim view of teachers being able to modify students' course work

 

Do they? I didn't know that, i thought RM networks allowed this level of access to staff. Do exam boards provide this info in a policy?

 

Cheers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...