Hi all, I've looked about and I can't find anything on Quotas and SAMBA with FreeBSD. The FreeBSD manual says that I can enable quotas and how to go about it, but I get the feeling this is just for shell accounts. Quotas would be useless in my situation if they did not work with SAMBA as well. All my SAMBA users have shell accounts as well and only save to their home directory - either with ftp or SAMBA. I'd like to RTFM to find out more but, a) Is it possible? Anyone got it working? b) Any pointers on docs I could read? Thanks, Eddie.
> Hi all, > > I've looked about and I can't find anything > on Quotas and SAMBA with FreeBSD. > > The FreeBSD manual says that I can enable > quotas and how to go about it, but I get the > feeling this is just for shell accounts. Quotas > would be useless in my situation if they did > not work with SAMBA as well. > > All my SAMBA users have shell accounts as > well and only save to their home directory - > either with ftp or SAMBA. > > I'd like to RTFM to find out more but, > a) Is it possible? Anyone got it working? > b) Any pointers on docs I could read? >Have it running fine here. Both, netatalk and samba work with quotas. It's on FreeBSD-2.2.6. -Andre
You wrote: | The FreeBSD manual says that I can enable | quotas and how to go about it, but I get the | feeling this is just for shell accounts. Quotas | would be useless in my situation if they did | not work with SAMBA as well. Actually they work at a level ``below'' samba, so they will apply to all samba nfs, afs or whatever-fs users as well. What will not work well is the warning mechanism, which sends text message to the ``logged-in user's tty'' to tell them they are running low on quota. As a result, they run out of space, but df reports there is space left... causing puzzlement. This was known to annoy NFS users in a previous life (:-)) --dave -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | davecb@hobbes.ss.org, canada.sun.com M2N 1Y3. 416-223-8968 | http://java.science.yorku.ca/~davecb
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@hobbes.ss.org, canada.sun.com M2N 1Y3. 416-223-8968 | http://java.science.yorku.ca/~davecb