Jump to content

Recommended Posts

Posted (edited)

Hi,

 

Our ICT Teachers want to have full access to students work areas so that they can go in and print work off / mark it. I have created a security group and added the teachers in it. I then added them to the 'homedrive' folder modify full control which contains all the students user folders in. When applying it only applies to a small amount of users and most deny access to the teachers when they try to access the files.

 

When checking individual folders, the group is not there. What click box do i need to check so that all the security permissions in the sub folders are inherited without denying access to the students too?

 

Im sure its simple, my mind has just gone blank and last time i tried i took ownership of all the folders by accident and no-one could access anything!

 

1.jpg

 

When checking sub folders, the permissions and group have not been inherited.

Edited by Darylrese
Posted (edited)

are the folders underneath the top level home drives folder set to inherit from parent?

forcing the permissions to replicated to that folder and child objects is under the advance tab in security.

 

still getting used to the slightly different UI layout for 2k8r2 so this might be slightly incorrect...

Edited by SHimmer45
Posted (edited)

The setup is E:\Home drives then in there is all the students folders, inside them is a My documents folder. Theres no inherit permissions on those, problem is i cant find a way of doing it in bulk.

 

for example:

 

2.jpg

 

3.jpg

 

We basically need all the 'My Documents' folders to inherit from the parent folder but also still include the exisiting permissions. For example on this account OAKill is specified as a user in the list, if i force child folders to have parent permissions (from the homedrivers folder), this im guessing will take him off the security list therefore denying him access to his work area?

Edited by Darylrese
Posted

as you havent got inherited permissions running through your folder tree you will need to add them to each folder is an option (long and painful)

are you manually creating this home directory folders?

if you check the inherit permissions box the permissions you have defined already "shouldnt" be changed

id create a dummy folder structure and see how it behaves and if you does what you need it to do.

Posted

Oh man not looking forward to that!!

 

When a new student starts we manually enter a document path in AD in their profile and it creates it for us when they log in.

Posted
Sound like you either enter it in manually or use a script in combination with cacls or icacls. BTW you can probably get away with just read access.
Posted (edited)

Something like:

for /D %a in ("E:\Homedrives\*") do icacls "%~a\My Documents" /grant:r "MCA\ICT Teachers File Access":(OI)(CI)(IO)(M) /C /Q

Edited by jklight
code fix
Posted

Icacls

 

The (OI)(CI)(IO) means "inherit to subfolders or files" and is needed so that they don't have rights to delete the "My Documents" folder itself.

The (M) means "Modify Rights" as apeo suggests, maybe "®" is what they need and not "(M)".

The /grant:r means "Grants specified user access rights. Permissions replace previously granted explicit permissions. Without :r, permissions are added to any previously granted explicit permissions." Experiment with the :r to see if it needed or not.

 

 

Posted (edited)

Thanks guys. In the end we created a security group for all students and one for staff needing access, gave them the correct level of access and forced it to replace all child folder permissions from the home drive folder.

 

Everyone can get in now, they just need to be added to the correct group to get into the work areas when setting up but that not issue. All the folders have the same permissions now.

 

The only problem i guess is technically everyone has access to each others files as long as they are a member of the group but their documents is redirected so they cant change the path and also they have no way of getting on the server anyway.

 

I appriciate its not the best way of doing things but the document library for students is forced via GPO so i can't see an issue until we have time to completely change the file structure in the future. They also dont have access to the e drive so unless they manage to get the admin account they cant do anything anyway

Edited by Darylrese
Posted
I would say that that is not what I would recommend. If "technically" everyone has access to each others files then in all reality they *DO* have access to each others files. There are just too many ways to get places. Maybe if all the kids are under 9 or 10 years old but they really do get good at finding holes. When things go wrong, or missing, or stuff just starts showing up how do you know what is going on since permissions say anyone and everyone could be the cause? JMHO
Posted (edited)
I understand i just cant see a better way of doing it without setting permissions one by one or starting again :/ Edited by Darylrese
Posted (edited)

not used it before, a little new to this but will look into it, thank-you. Will it reset permissions for the whole structure?

 

Basically we need teachers security group to have full control over the 'homedrives' folder and then each student full permission to their own folders within that

 

Ok your right, i can't keep it like this, a shortcut to the folder lets a student in. If all else fails we might have to go into each folder and add the student to their own security tab one by one...there arn't thousands

 

I need to reset them back to what they were and start again if possible.

Edited by Darylrese
Posted (edited)

Spend the time to figure this out with the DOS FOR command and the ICACLS command. YOU CAN DO IT!

Experiment in a test directory for a while and you will make it work and have a powerful new tool in your belt.

1) in the "for" command the %a is the variable.(could be %b or %c etc) If you run this in a .bat file you will have to use %%a (weird quark)

2) since you borked the permissions you need to do this to reset:

 

CD /d E:\Homedrives

for /D %a in ("*") do icacls "%~fa" /grant:r "MCA\ICT Teachers File Access":(OI)(CI)(IO)(M) "MCA\%~a":(F) SYSTEM:(F) Administrators:(F) /Inheritance:R /C /Q

 

This removes inheritance (from E:Homedrives) and explicitly puts then new permissions at the user folder level. These permissions inherit down from there. The "%~fa" is means use the full path name of the directory the "%~a" means just use the folder name (which is the logon name) This assumes that the users folder name is their logon name.

Good luck!

 

Edited by jklight
  • Thanks 1
Posted

Hey guys

 

Just to let you know as a quick fix i set the parent permissions on the home driver folder, set everything underneath to inherit then set the user permissions one by one at the user folder level. Next time i will look into doing it with ICACLS.

 

Many thanks

Posted
Hey guys

 

Just to let you know as a quick fix i set the parent permissions on the home driver folder, set everything underneath to inherit then set the user permissions one by one at the user folder level. Next time i will look into doing it with ICACLS.

 

Many thanks

 

Personal opinion, SetACL is easier to use.

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...