SAMBA and quotas on FreeBSD
David Collier-Brown
davecb at Canada.Sun.COM
Wed May 20 11:39:50 GMT 1998
Charlie Brady wrote:
> Presumably an appropriate "df command" set in smb.conf will allow quota
> adjusted free space to be displayed in File Mangler?
Quite probably: the machines I've using these days don't
happen to be using quotas, so from memory and man pages,
something like the following might suffice:
q=`quota`;
if [ "$q" = "" ]; then
df $1 | tail -1 | awk '{print $2" "$4}'
else
echo "$q" | awk ...
fi
--dave
--
David Collier-Brown, | Always do right. This will gratify some people
185 Ellerslie Ave., | and astonish the rest. -- Mark Twain
Willowdale, Ontario | davecb at hobbes.ss.org, canada.sun.com
M2N 1Y3. 416-223-8968 | http://java.science.yorku.ca/~davecb
More information about the samba
mailing list