Kyle Posted January 17, 2007 Posted January 17, 2007 I have been in a school today and noticed the permissions on the user areas for the pupils. On the individual pupils folders the y are 'Domain Admins' Full Control' and the 'user Full Control' I always thought that thee should be other NTFS permissions in here as well. Its one of those things when you start to question yourself and wonder which is the correct set up of permissions. Does anyone know what it should be or what Microsoft recommend?
Quackers Posted January 17, 2007 Posted January 17, 2007 I think its what ever you need. I have System - Full Control User - Full Control Domain Admins Full Control Staff - Full Control (Not a personal favorite, but it was a requested feature when we changed network 3 years ago, i'm here to serve, not dictate)
Ric_ Posted January 17, 2007 Posted January 17, 2007 i limit staff to read only so that 'accidents' are minimised and no accusations of cheating can be made. 1
tosca925 Posted January 17, 2007 Posted January 17, 2007 I give users modify permission Any reason this instead of full control?
ChrisH Posted January 18, 2007 Posted January 18, 2007 They dont need full permission for their folders to save work and such. It just tightens up the security slightly but not much. There is other stuff you can do with speacial permisions but I have never dabbled and probably never will with regards to home directories.
tosca925 Posted January 18, 2007 Posted January 18, 2007 Jut out of interest, do you use roaming profiles for staff? If you do what permissons do you set on those?
Quackers Posted January 18, 2007 Posted January 18, 2007 I give users modify permission Any reason this instead of full control? Windows Server gives the user full control when you set the homedirectory path in Active Directory.
ChrisH Posted January 18, 2007 Posted January 18, 2007 I give users modify permission Any reason this instead of full control? Windows Server gives the user full control when you set the homedirectory path in Active Directory. My user directory permissions get changed when the user is created at the beginning of the year by my script.
ajbritton Posted January 18, 2007 Posted January 18, 2007 The difference between 'modify' and 'full control' is as follows; modify = create, read, write, delete full control = (all of modify) and change permissions on the object When a user creates a file/folder they are automatically the owner and they therefore have full control over it anyway.
tosca925 Posted January 18, 2007 Posted January 18, 2007 My user directory permissions get changed when the user is created at the beginning of the year by my script. Exactly as we do it as well.
adent Posted January 18, 2007 Posted January 18, 2007 NEVER give students full control over directories - Full Control includes change permission - before you know it friends will be sharing their home directories for games etc and you - the humble admin will be locked out. IMHO permissions on users home directories should be: Student - Modify (Files and Folders) Tech Support - Full Control (Inherited from parent folder) Teaching Staff - Modify (Inherited from parent folder) Administrator - Full Control (Inherited from parent folder) This can be done using a combination of windows scripting and the CACLS command rather than by hand.
ajbritton Posted January 19, 2007 Posted January 19, 2007 As I said though. When a student creates a new file, they become the owner of it. This automatically gives them full control on the file, ragardless of the permissions on the folder. To my knowledge, the only way to prevent this behaviour is by restricting the permissions on the share. This can cause problems with folder redirection however.
adent Posted January 19, 2007 Posted January 19, 2007 As I said though. When a student creates a new file, they become the owner of it. This automatically gives them full control on the file, ragardless of the permissions on the folder. To my knowledge, the only way to prevent this behaviour is by restricting the permissions on the share. This can cause problems with folder redirection however. Actually - being the owner of the file is not the same as having full control. The rule is that the file will inherit the permissions of its parent directory. Being the owner means that you are granted change permissions permission (try saying that after 12 pints), but unless the user then makes use of that they will still only effectively have modify permission and unless they remove inheritence or explicitly deny you permission you will still have access. A script to audit access denied run overnight is sufficient to pick these up.
ajbritton Posted January 19, 2007 Posted January 19, 2007 As I said though. When a student creates a new file, they become the owner of it. This automatically gives them full control on the file, ragardless of the permissions on the folder. To my knowledge, the only way to prevent this behaviour is by restricting the permissions on the share. This can cause problems with folder redirection however. Actually - being the owner of the file is not the same as having full control. The rule is that the file will inherit the permissions of its parent directory. Being the owner means that you are granted change permissions permission (try saying that after 12 pints), but unless the user then makes use of that they will still only effectively have modify permission and unless they remove inheritence or explicitly deny you permission you will still have access. A script to audit access denied run overnight is sufficient to pick these up. I take your point, but in essence, if you create a file, there is nothing to prevent you from having full control over it. I know of at least one school where this was discovered by students and exploited. It helps to remove the security tab, remove CACLS and use Software Restriction Policies to ensure students cannot execute any code that you have not sanctioned.
ajbritton Posted January 19, 2007 Posted January 19, 2007 Thought of a possible problem scenario... 1 - Disk quotas are in use on the volume where students store data. 2 - Students have discovered that they can lock staff out of files/folders by modifying the permissions on them. 3 - Tech staff decide to run a script to normalise the permissions on all student files/folders. This fails because they no longer have access to the files/folders in question. 4 - Tech staff modify the script to take ownership of the files back before modifying the permissions. This works, but in the process, all files now no longer 'belong' to the students, so the quotas are all stuffed up. The solution I guess is to assign ownership of the files/folders back to the correct students. I believe this can be done (might need SetACL). I would be interested to know if anyone has achieved it.
steve Posted January 19, 2007 Posted January 19, 2007 Use the quota management in 2003 R2. Its based on the size of the folder, not the file ownership.
ajbritton Posted January 19, 2007 Posted January 19, 2007 Thanks Steve. I've not had much of a chance to play with R2 yet, but from what I can see of Technet, that certainly looks like one way around the problem.
ChrisH Posted January 19, 2007 Posted January 19, 2007 The solution I guess is to assign ownership of the files/folders back to the correct students. I believe this can be done (might need SetACL). I would be interested to know if anyone has achieved it. I have a simple script for this using the win32 version of chown. The code is in my user creation script as well. I shall see if I can find an example.
disinfo Posted January 24, 2007 Posted January 24, 2007 I'm really interested in this too, pupils here have made the discovery that they can share access to their "games" folders. There tends not to be many games on our network, as I block executables from home folders and use Dansguardian to stop them downloading any. However since they need to use swf files, kids have just started renaming the games button1.swf etc and are becoming pretty difficult to search and destroy. If i do find a kid who has changed permissions, all i can do at the moment is change them back and pass them onto the teachers (who do nothing)
ianniow Posted January 25, 2007 Posted January 25, 2007 Hi Thought I would add my problem to this discussion I have just looked at my students home directories and their files are owned by the administrators. To check I logged on as my test student and created a new file. then checked the ownership and it was administrators. Any ideas. I have seen various examples of what the permisions should be and have tried these but no change. I can also change the ownership manually back to the student.
ajbritton Posted January 25, 2007 Posted January 25, 2007 Hi Thought I would add my problem to this discussion I have just looked at my students home directories and their files are owned by the administrators. To check I logged on as my test student and created a new file. then checked the ownership and it was administrators. Any ideas. I have seen various examples of what the permisions should be and have tried these but no change. I can also change the ownership manually back to the student. Given what I was saying, that sounds very odd. What are the NTFS folder permissions and what are the permissions on the share that the users connect to? EDIT: And just in case, what AD groups are your students in. Any chance they are accidentally domain admins?!?
MK-2 Posted January 25, 2007 Posted January 25, 2007 The way we have it here, which is probably by no means ideal is: Full control : administrators Modify : the user modify : a group created called 'folder perms' that you can add/remove staff to that need access. that way instead of adding each teacher/person who needs access to a certain folder, and forget who has access to what folder, they are all in one group.
ChrisH Posted January 25, 2007 Posted January 25, 2007 Any luck yet chirs? Sorry forgot about this: rem sets permission on all files according to home directory name for /D %%i in (*) do ( chown -r %%i "%%i\*.*" ) pause Run it at the same level as the folders Here is the chown I use. Cant find where I got it from originally chown.doc
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now