+ Post New Thread
Results 1 to 8 of 8
Windows Server 2008 Thread, Disk usage (in disk Quota Window) not dispalying correctly - Windows 2008 R2 Server in Technical; have an issue at one of my schools, where disk quota's have been set on students home folder, but one ...
  1. #1

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Disk usage (in disk Quota Window) not dispalying correctly - Windows 2008 R2 Server

    have an issue at one of my schools, where disk quota's have been set on students home folder, but one of the tech's inadvertantly removed the 'deny write permission when quota has been reached' option. Some of the kids very quickly realised this, and loaded/saved all sorts of pictures/music etc etc.. and each kids user area swelled to 3/4gb.

    Luckily, I spoted this quite early on, and re-inforced the deny write permission. I also deleted what were obviously non work related files. However, the problem now is that even thou I deleted the big files/folders, the 'used disk space' (in the disk quota window) is still showing 3/4gb for the effected student, so he/she still cannot save.

    Browsing through various website, I find that one of the reasons could be that disk quota is associated with the owner of the file/folder, and by me deleting those files (as an administrator) from the users home folder, I have taken ownership. The work around is to make the student the owner again (choosing the option to apply the change to all subfolders and objects), then refreshing the disk quota window. I did this for one student (and thought it worked, but I was wrong) it didn't work.



    Any idea's? Anyone?

  2. #2

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    503
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    14
    use FSRM quotas, its done on space used on the folder not the file/folder owner.

  3. #3

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,484
    Thank Post
    133
    Thanked 488 Times in 436 Posts
    Rep Power
    138
    Ownership would certainly be my guess, and it's pretty easy to do a sweep of that anyway. Use a little command line utility called chown with the batch file:

    for /D %%i in (*) do (
    chown -r %%i "%%i\*.*"
    )

    Pop this .cmd with chown.exe into the root of your students' home directories (though this will only work if they're in one flat directory for all year groups etc) and execute it. It will change the ownership of every folder to the user name of the folder, takes a little while though.

    Edit: even FSRM needs the ownership to be correct.

  4. Thanks to 3s-gtech from:

    theforce (26th April 2013)

  5. #4

    Join Date
    Mar 2013
    Location
    west sussex
    Posts
    503
    Thank Post
    74
    Thanked 26 Times in 26 Posts
    Rep Power
    14
    Does it? am I going mad? I was sure FSRM quotas were based on folder.

  6. #5

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I've manually changed the permissions on one paticular folder it didn't seem to work. I can certainly chown.exe, but I wanted to be clear how the batch file will work.

    once I've created .cmd and placed it in the root of the student home folders along with chown.exe, which has the following structure

    volume name: StudentDocs
    08StudentA
    folder x, folder y, file x, file y

    09StudentB
    folder x, folder y, file x, file y
    10StudentC
    folder x, folder y, file x, file y

    it will then go ahead and change the ownership of 08StudentA and all its files and subfolders to username 08StudentA. Sorry to sound apprehensive, its a 1000 students in one big hit. If it goes wrong, and kids can't access their work, the ICT teachers will hang the Techs.

    I might try it with a couple of accounts first to see if it works. Thanks in advance to clarifying thou.

  7. #6
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110
    Quote Originally Posted by 3s-gtech View Post
    Edit: even FSRM needs the ownership to be correct.
    Not with folder level quotas.

  8. Thanks to DMcCoy from:

    ConradJones (25th April 2013)

  9. #7

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,484
    Thank Post
    133
    Thanked 488 Times in 436 Posts
    Rep Power
    138
    Quote Originally Posted by theforce View Post
    I've manually changed the permissions on one paticular folder it didn't seem to work. I can certainly chown.exe, but I wanted to be clear how the batch file will work.

    once I've created .cmd and placed it in the root of the student home folders along with chown.exe, which has the following structure

    volume name: StudentDocs
    08StudentA
    folder x, folder y, file x, file y

    09StudentB
    folder x, folder y, file x, file y
    10StudentC
    folder x, folder y, file x, file y

    it will then go ahead and change the ownership of 08StudentA and all its files and subfolders to username 08StudentA. Sorry to sound apprehensive, its a 1000 students in one big hit. If it goes wrong, and kids can't access their work, the ICT teachers will hang the Techs.

    I might try it with a couple of accounts first to see if it works. Thanks in advance to clarifying thou.
    That's how it works for us. The script came from here, so I know others have used it. See if you can create a test case in a separate directory first to be sure, naming a couple of folders to match some accounts.

    Not heard of folder-level quotas, makes sense though.

  10. #8

    Join Date
    Apr 2011
    Location
    London
    Posts
    39
    Thank Post
    6
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    ok, that worked fine. Thank you.

    The student on who's account I manually tried and didn't work was becuase I created a new folder on the same volume called Prohibited_data, and moved his contents. As I didn't take ownership of the files that I moved, his quota remained the same. The quota got adjusted when the file ownership was changed.

SHARE:
+ Post New Thread

Similar Threads

  1. printer rendering in Windows 7 and Windows 2008 R2 server
    By tushan in forum Windows Server 2008
    Replies: 0
    Last Post: 18th September 2012, 06:51 PM
  2. iptables equivelent for windows 2008 r2 server
    By RabbieBurns in forum Internet Related/Filtering/Firewall
    Replies: 4
    Last Post: 12th February 2011, 05:54 PM
  3. Cant access certain Windows 2008 R2 servers over VPN from XP clients
    By tforeman in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 23rd November 2010, 05:11 PM
  4. Adding ReadyNAS NV+ to windows 2008 r2 server
    By sidnuts in forum Windows Server 2008 R2
    Replies: 2
    Last Post: 23rd March 2010, 12:59 PM
  5. Software For New windows 2008 R2 Server Setup
    By sfoord in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 2nd November 2009, 09:53 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
  •