Windows Thread, Resetting Permissions for Student Home Folders in Technical; Our permissions have always been set weirdly and not working to how we want. So, finally we are looking at ...
-
4th December 2007, 04:32 PM #1 Resetting Permissions for Student Home Folders
Our permissions have always been set weirdly and not working to how we want. So, finally we are looking at fixing it. Ideally we would like all students to have the following permissions on their home folders:
Administrators - Full Control
Creator Owner - Full Control
System - Full Control
%username& (The actual student) - Full Control
ViewStudentWork (A group to allow teachers to view the students work) - Read & Execute, List Folder Contents, Read
All of the above should be for "This Folder, Subfolders and Files"
Currently the Ownership of the folders are held by the students. Administrators are able to view some of the folders but not all, usually the My Pictures folder.
Is there a way that I can allocate "en mass" all the above permissions and fix the ownership to be set to the students (if it is messed up like we have seen in the past). If it helps, the students folders are set to the same as their usernames.
Can anyone point me to, or write me a script, that will make this possible?
Thanks in advance!
-
-
IDG Tech News
-
4th December 2007, 04:36 PM #2
- Rep Power
- 14
Re: Resetting Permissions for Student Home Folders
I use CMD commands such as 'cacls' to set permissions.
-
-
4th December 2007, 04:39 PM #3 Re: Resetting Permissions for Student Home Folders
there's two commands that will help you do this.
XCACLS will allow you to manipulate the Access Control lists on files and folders, and there's also SUBINACL which also allows you to control folder ownership aswell. You can use wildcards with them, so where you have one group that needs access to all the folders, you can accomplish this with a single line. Adding the individual users requires a seperate line for each user concerned. I use a batchfile that I use excel to contruct as a CSV, then use search and replace to remove the commas.
XCACLS
http://support.microsoft.com/kb/318754
SUBINACL
http://www.microsoft.com/downloads/d...displaylang=en
Hope that helps.
Mike.
-
-
4th December 2007, 04:40 PM #4 Re: Resetting Permissions for Student Home Folders
Modify this for you own setup. Run same level as your users folders:
Code:
for /D %%i in (*) do ( subinacl /file %%i /grant=yourdomain\%%i=C "/grant=yourdomain\domain admins=f" /grant=yourdomain\Teachers=r /setowner=yourdomain\%%i "/deny=fishermore\exam group=f"
subinacl /subdirectories %%i\* /grant=yourdomain\%%i=f "/grant=yourdomain\domain admins=f" /grant=yourdomain\Teachers=r /setowner=yourdomain\%%i "/deny=yourdomain\exam group=f" )
You will need to d/l subinacl.
-
-
4th December 2007, 04:52 PM #5 Re: Resetting Permissions for Student Home Folders
Thanks Chris, I'm gonna give that a try on the folders for students who have left.
-
-
4th December 2007, 05:22 PM #6 Re: Resetting Permissions for Student Home Folders
You can also use the free NTFSfix for this.
http://www.wisesoft.co.uk/Products/NTFSFix/
-
-
4th December 2007, 05:28 PM #7 Re: Resetting Permissions for Student Home Folders
Also be aware that subinacl can be very fussy about you using the correct version. Presumably they changed some of the syntax slightly along the way.
I scratched my head over a non-working script for quite a while before I figured that one out!
NTFSFix looks very easy to use.. you'll still need subinacl or similar to fix your ownership though.
-
-
4th December 2007, 06:14 PM #8 Re: Resetting Permissions for Student Home Folders
This has been discussed before if you do a search. I added my scripts to the wiki at http://edugeekwiki.rm-charlton.net/index.php/Scripts to help people out.
Admin bit... please search and check the wiki before asking questions
-
-
4th December 2007, 09:33 PM #9 Re: Resetting Permissions for Student Home Folders
Sorry Ric, I didn't even know that the Wiki existed. I'll have a look there first next time.
With all due respect though, we did get an alternate solution here from Chris. I'm only saying that because I understand .bat/.cmd better than .vbs
-
-
5th December 2007, 01:23 AM #10 Re: Resetting Permissions for Student Home Folders
The subinacl method is better than the script you *cough* copied of my user creation script
:P so therefore it is new and shiney and in need of sharing
.
-
-
5th December 2007, 10:50 AM #11 Re: Resetting Permissions for Student Home Folders
Is there any particular reason your students NEED full control over their own home folders?
Ours here have modify - so they can still read/write, but not change permissions (even if they somehow got the security tab or via 3rd party tool).
I might be missing something, maybe there is some reason that students need full and not modify, but I've not run into it yet here.
-
-
5th December 2007, 11:33 AM #12 Re: Resetting Permissions for Student Home Folders
We had an issue with folder redirection where it would balk if the user only had modify. YMMV
-
SHARE:
Similar Threads
-
By tosca925 in forum Windows
Replies: 2
Last Post: 6th October 2007, 09:46 AM
-
By CM786 in forum Networks
Replies: 4
Last Post: 27th September 2007, 09:28 AM
-
By baronne in forum Windows
Replies: 4
Last Post: 15th March 2007, 09:48 PM
-
By projector1 in forum Windows
Replies: 8
Last Post: 1st February 2007, 09:42 AM
-
By daverage in forum Networks
Replies: 11
Last Post: 31st March 2006, 01:13 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules