+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, Set permissions on users folders in Coding and Web Development; I need to set the permisons on the home folders of my users to just the user and the administrator ...
  1. #1
    Newton's Avatar
    Join Date
    Oct 2007
    Thank Post
    Thanked 5 Times in 5 Posts
    Rep Power

    Set permissions on users folders

    I need to set the permisons on the home folders of my users to just the user and the administrator having full control. The user name is the same as the folder name, is there an easy way to do this?

    Folder stucture


  2. #2
    mrbios's Avatar
    Join Date
    Jun 2007
    Stroud, Gloucestershire
    Thank Post
    Thanked 269 Times in 221 Posts
    Rep Power
    Take a look at this: SetACL - Windows permission management

    I personally have no idea how to use it, never have, but i know that's how it was done last time ours was done

  3. #3
    jmcdermott's Avatar
    Join Date
    Feb 2008
    Thank Post
    Thanked 44 Times in 36 Posts
    Rep Power
    Just been through this again, solution i used was as follows:
    1) command line on server
    2) cd to the home directory folder, in my case cd u:\students\09
    3) dir /b >>c:\students.txt
    4) open c:\students.txt, select all then copy into an excel sheet in one column A.
    5) in column B type: echo y|cacls
    6) in column C type the home dir path eg u:\students\09or for you d:\HomeFolders\
    7) in column D type: /c /g yourdomain\
    8) in column E type: :f /g yourdomain\administrators:f
    9)now for the magic in column F type:
    =B1&" "&C1&A1&" "&D1&A1&" "&E1
    10) you should now have a command line to change the permission as requested
    if you use edit fill down on all columns to make each one as long as column A then at the end copy and paste column F into a text file save it as a batch file then run it.

    hope this helps
    Attached Files Attached Files

  4. Thanks to jmcdermott from:

    Newton (2nd June 2010)

+ Post New Thread

Similar Threads

  1. Replies: 10
    Last Post: 12th November 2009, 01:37 PM
  2. Replies: 6
    Last Post: 21st May 2009, 10:16 PM
  3. [Ubuntu] Setup FTP Users & Set Permissions
    By FN-GM in forum *nix
    Replies: 5
    Last Post: 18th February 2009, 12:21 PM
  4. Replies: 5
    Last Post: 30th October 2008, 03:46 PM
  5. Resetting Permissions for Student Home Folders
    By Zoom7000 in forum Windows
    Replies: 11
    Last Post: 5th December 2007, 10:33 AM

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