Hi > Hi guys, we need to update our samba service from 2.2.8a to samba 3.0.x > (so that we > can upgrade our AD from Win2k to Win2k3). The problem I am having is > with the quotas. I was never able to use the quota functions of samba. I use Suse 8.2 with Samba 3.0.3 and XFS. Even the latest samba version doesn't recognize quotas correctly. For me quota code is broken since beginning in samba.
To get them displayed I use a dirty hack. In smb.conf I've added the following line: dfree command = "/etc/script.sh %U" script.sh: #!/bin/sh used_space=`/usr/bin/quota -u $1 | tail -1 | awk '{print $2}'` quota_space=`/usr/bin/quota -u $1 | tail -1 | awk '{print $4}'` used_files=`/usr/bin/quota -u $1 | tail -1 | awk '{print $5}'` quota_files=`/usr/bin/quota -u $1 | tail -1 | awk '{print $7}'` if [ "$used_files" == "$quota_files" ]; then used_space=$quota_space fi free_space=`expr $quota_space - $used_space` echo "$quota_space $free_space" Tilo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba