+ Post New Thread
Results 1 to 13 of 13
Windows Thread, quota managment in Technical; how do people deal with letting the users know what their quotas are? i've found various vb scripts but i'm ...
  1. #1

    Join Date
    Mar 2007
    Posts
    1,763
    Thank Post
    79
    Thanked 290 Times in 221 Posts
    Rep Power
    86

    quota managment

    how do people deal with letting the users know what their quotas are? i've found various vb scripts but i'm limited because the user appears to need some permissions or our 2 users that have 10gb+ cause a problem with a vbs script that harvests through the quota entries server side.

    I cant even get the status bar turned on en masse at the moment :'(

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    I'm using a Linux based file server for my user areas, but the method I use should work for Windows?

    Basically cron runs a program that checks everyone's quota and emails them when they are close/over the soft limit or hit the hard limit.

    I'd imagine you could cook up a VB script to be run from Scheduled Tasks from an Admin Account to do the same thing?

  3. Thanks to Geoff from:

    strawberry (3rd September 2008)

  4. #3

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,408
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194
    we use stopit here. not that they pay any attention until their account gets disabled

  5. #4

    Join Date
    Mar 2007
    Posts
    1,763
    Thank Post
    79
    Thanked 290 Times in 221 Posts
    Rep Power
    86
    Quote Originally Posted by Geoff View Post
    I'm using a Linux based file server for my user areas, but the method I use should work for Windows?

    Basically cron runs a program that checks everyone's quota and emails them when they are close/over the soft limit or hit the hard limit.

    I'd imagine you could cook up a VB script to be run from Scheduled Tasks from an Admin Account to do the same thing?
    the script i was using to do this broke on any account over 1 gig

  6. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by Geoff View Post
    I'm using a Linux based file server for my user areas, but the method I use should work for Windows?

    Basically cron runs a program that checks everyone's quota and emails them when they are close/over the soft limit or hit the hard limit.

    I'd imagine you could cook up a VB script to be run from Scheduled Tasks from an Admin Account to do the same thing?
    sounds interesting. can you share the script please, I'd like to do something similar.
    btw - how do you get the quotas setup for each user - does it have to be done individually ?

  7. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Quote Originally Posted by strawberry View Post
    the script i was using to do this broke on any account over 1 gig
    Post it in the scripts forum and see if anyone can spot the bug?
    Last edited by Geoff; 3rd September 2008 at 01:22 PM.

  8. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Quote Originally Posted by CyberNerd View Post
    sounds interesting. can you share the script please, I'd like to do something similar.
    Code:
    man warnquota
    btw - how do you get the quotas setup for each user - does it have to be done individually ?
    I should write a Samba File Server HOWTO.

  9. Thanks to Geoff from:

    CyberNerd (3rd September 2008)

  10. #8

    Join Date
    May 2007
    Posts
    24
    Thank Post
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    would love a samba howto (even more so if you can link it to AD accounts)

  11. #9

    Join Date
    Mar 2007
    Posts
    1,763
    Thank Post
    79
    Thanked 290 Times in 221 Posts
    Rep Power
    86

  12. #10


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    I recently put this together on RHEL5, with quotas (since geoffs post).
    not sure if it works I guess I find out tomorrow as the kids are back

    feel free to fix anything

    Configure ntp to get time from AD server

    copy to /etc/krb5.conf
    Code:
    [logging]
     default = FILE:/var/log/krb5libs.log
     kdc = FILE:/var/log/krb5kdc.log
     admin_server = FILE:/var/log/kadmind.log
    
    [libdefaults]
     default_realm = X.COLLEGE.INTERNAL
     dns_lookup_realm = false
     dns_lookup_kdc = false
     ticket_lifetime = 24h
     forwardable = yes
    
    [realms]
     EXAMPLE.COM = {
      kdc = kerberos.example.com:88
      admin_server = kerberos.example.com:749
      default_domain = example.com
     }
    
     X.COLLEGE.INTERNAL = {
      kdc = server1.X.college.internal
      kdc = server2.X.college.internal
      kdc = server3.X.college.internal
     }
    
    [domain_realm]
     .example.com = EXAMPLE.COM
     example.com = EXAMPLE.COM
    
     x.college.internal = X.COLLEGE.INTERNAL
     .x.college.internal = X.COLLEGE.INTERNAL
    [appdefaults]
     pam = {
       debug = false
       ticket_lifetime = 36000
       renew_lifetime = 36000
       forwardable = true
       krb4_convert = false
     }
    copy to /etc/samba/smb.conf
    Code:
    [global]
    	workgroup = DOMAIN
    	realm = X.COLLEGE.INTERNAL
    	server string = server4
    	security = ADS
    	password server = server1.x.college.internal  server2.x.college.internal
    	passdb backend = tdbsam
    	idmap uid = 16777216-33554431
    	idmap gid = 16777216-33554431
    	template shell = /sbin/nologin
    	cups options = raw
    	log file = /var/log/samba/log.%m	
    	winbind use default domain = yes
    	winbind enum users = yes
    	obey pam restrictions = yes
    	usershare allow guests = no	
    	ea support =yes
            acl compatibility = Auto
            store dos attributes = yes
    	map readonly = no
            map archive = no
            map system = no 	
    	invalid users = root 
    	msdfs root = no
    	socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    	acl map full control = false
            hide files = /aquota.*/ 	
    
    [homes]
    	comment = Home Directories for %U
    	read only = No
    	browseable = yes
    	path = /home/%D/%G/%U
    	valid users = %D\%S
    	admin users = @"DOMAIN\domain^admins", administrator
    	comment = Home Directories
    	inherit acls = Yes
    	inherit permissions = yes
    	map acl inherit = Yes
            veto files = /*.bat/*.cmd/*.com/*.exe/*.vbs/*.msi/*.pif/*.reg/
    	root preexec = /usr/local/sbin/homedirperms.sh %U %G
    	nt acl support = no
    	hide unreadable = yes
    	recycle:repository = recycle-bin
    	recycle:keeptree = yes
    	recycle:touch = Yes
    	recycle:versions = Yes
    	recycle:exclude = ?~$*,~$*,*.tmp,*.temp,*.TMP
    	recycle:exclude_dir = /tmp,/temp,/cache
    	recycle:directory_mode = 0770
    	recycle:subdir_mode = 0770
    	hide files =  /recycle-bin/
     	vfs objects = default_quota recycle
    	default_quota:	uid = 501
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	printable = Yes
    	browseable = No
    
    [students]
    	comment = All Home Directories  -admin share
    	path = /home/DOMAIN
    	write list = @DOMAIN\domain^admins
    	read only = No
    	inherit permissions = Yes
    	inherit acls = Yes
    	inherit owner = Yes
    	map acl inherit = Yes
    	force unknown acl user = yes
    	acl check permissions = no
    	nt acl support = yes
    [edit] autocreate homedirs

    copy to /usr/local/sbin/homedirperms.sh and make executable
    Code:
    chmod u+x /usr/local/sbin/homedirperms.sh
    Code:
    #!/bin/bash
    #don't create drives other than yeargroup!
    if [ "$2" = "08" -o "$2" = "07" -o "$2" = "06" -o "$2" = "05" -o "$2" = "04" -o "$2" = "03" -o "$2" = "02" -o "$2" = "00" ] ; then     
    	if [ ! -e /home/DOMAIN/$2/$1 ]; then
    		mkdir -p  /home/DOMAIN/$2/$1
    		chown $1:"domain admins" /home/DOMAIN/$2/$1
    		chmod o-rwx /home/DOMAIN/$2/$1
    		chmod g+rwxs /home/DOMAIN/$2/$1
    		setfacl -m user:$1:rwx /home/DOMAIN/$2/$1
    		setfacl -m group:teachers:r-x /home/DOMAIN/$2/$1 
    		setfacl -m group:"domain admins":rwx /home/DOMAIN/$2/$1
    		setquota -u $1 614400 716800 0 0 /home/DOMAIN/	                		
    	fi
    fi
    exit 0

    [edit] enable ACL support

    edit /etc/fstab
    Code:
    /dev/sdd1               /home/DOMAIN            ext3    acl,quota,user_xattr 1 2
    [edit] Join Domain

    do
    Code:
    net ads join -U administrator
    enter administrator password:


    [edit] Allow users access to filesystem

    edit /etc/nsswitch.conf to contain:
    Code:
    passwd: compat winbind
    group: compat winbind
    shadow: compat
    [edit] test domain
    Code:
    wbinfo -u
    should display list of users
    Code:
    getent passwd
    should display list of users
    [edit] start servers
    Code:
    chkconfig winbind on
    
    chkconfig smb  on
    
    /etc/init.d/winbind start
    
    /etc/init.d/smb start
    Last edited by CyberNerd; 4th September 2008 at 08:14 PM.

  13. #11
    Galway's Avatar
    Join Date
    Jun 2007
    Location
    West Yorkshire
    Posts
    1,338
    Thank Post
    9
    Thanked 304 Times in 213 Posts
    Rep Power
    100
    Information about limits are placed on the users desktop ...

    I also let them know with a warning as part of windows quota settings when they are nearing the limit.

    What they have used and have left is in the folder information in explorer.

    I also try to tell the ICT teaching staff to TEACH this as part of ICT lessons to manage their own usage, which all DIDA CIDA users should be doing anyway.

    As far as im concerned it is a teaching issue, not a technical problem. We dont have an issue in this and im happy to continue with this until it becomes a problem, which I would concider a week of logon interactive messages to remind the users.

  14. #12

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    It's an interesting question actually. I know for a fact that if a user navigates to My Computer, right clicks their home drive and chooses Properties, it displays the whole server volume (which is useless information).

    However (if memory serves me right), with quotas enabled, if you repeat the process it should accurately display how much space a user has.

  15. #13

    Join Date
    May 2007
    Posts
    24
    Thank Post
    8
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    thank you for the config files nice work there..... really love my workstation and its linked into ad time for some work on the NTLM squid ;D

SHARE:
+ Post New Thread

Similar Threads

  1. Hardware Managment System MST
    By Uraken in forum Educational Software
    Replies: 7
    Last Post: 24th August 2009, 09:30 PM
  2. Printer Managment Software
    By Admiral208 in forum Network and Classroom Management
    Replies: 36
    Last Post: 17th September 2008, 07:41 AM
  3. BSF and site managment
    By e_g_r in forum BSF
    Replies: 8
    Last Post: 28th November 2007, 05:10 PM
  4. Disk Quota
    By BKGarry in forum Scripts
    Replies: 3
    Last Post: 12th October 2006, 07:29 PM
  5. ISA Server Remote Managment.
    By Quackers in forum Wireless Networks
    Replies: 6
    Last Post: 4th April 2006, 11:01 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
  •