MADMAN69UK Posted September 30, 2010 Posted September 30, 2010 Hi there We have a Windows Sever 2003 server that we would like to be able to limit certain folder sizes on. I am aware of the quota management stuff that is already available within Windows Server 2003, but it isn't flexible enough for our needs. Ideally we want our teachers to have a set limit, like 1GB of storage. We then have shared subject areas. So Science for example have 5 teachers, all of them can use this Science shared area so we would like to assign that folder 5GB. With the built in quota system you can only set a per user quota. So any files a Science teacher has in their personal storage and in the Science shared area get totalled up. This means they tend to easily exceed their 1GB allowance. Can anyone recommend a good bit of third party software to do this for us? We've seen SpaceGuard SRM, but at £600+ it's beyond our budget Any advice will be much appreciated
sjl Posted September 30, 2010 Posted September 30, 2010 That is how the volume quotas work but with FSRM you can set folder quota. Google Microsoft FSRM see if that is what you are looking for.
MADMAN69UK Posted September 30, 2010 Author Posted September 30, 2010 Bah! Looks like the server we wanted to do this on isn't R2. We do have the R2 install disks but I guess it wasn't fully installed. Is it possible to just install R2 on the server without ruining the current settings?
CyberNerd Posted September 30, 2010 Posted September 30, 2010 just install centos (free, no licensing required) , and use this script for homedrives - #!/bin/bash if [ "$2" = "08" -o "$2" = "07" -o "$2" = "06" -o "$2" = "05" -o "$2" = "04" -o "$2" = "03" -o "$2" = "02" -o "$2" = "adulted" -o "$2" = "exams" -o "$2" = "gueststudents" ] ; 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 if [ "$2" = "03" -o "$2" = "02" ]; then setquota -u $1 1048576 1228800 0 0 /home/DOMAIN/ elif [ "$2" = "08" ]; then setquota -u $1 614400 716800 0 0 /home/DOMAIN/ elif [ "$2" = "07" ]; then setquota -u $1 614400 716800 0 0 /home/DOMAIN/ elif [ "$2" = "06" ]; then setquota -u $1 614400 716800 0 0 /home/DOMAIN/ elif [ "$2" = "05" ]; then setquota -u $1 614400 716800 0 0 /home/DOMAIN/ elif [ "$2" = "04" ]; then setquota -u $1 614400 716800 0 0 /home/DOMAIN/ elif [ "$2" = "adulted" ]; then setquota -u $1 614400 716800 0 0 /home/DOMAIN/ else setquota -u $1 614400 716800 0 0 /home/DOMAIN/ fi fi fi exit 0 It will automatically create the homedrive when someone logs in, set the permissions and sets the quota. Quota violations are sent by email. you can then set group quotas on a per directory basis. There are other advantages such as network recycles bins, and its dead easy to ban files from the filesystem. Samba Homedirectory - Wiki
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