[Samba] linux group quota does not work as expected with 3.0.21a
Oleg Palij
o.palij at dp.uz.gov.ua
Tue Jan 31 09:10:10 GMT 2006
Mon, Jan 30, 2006 at 11:09:10AM +0200, samba-bounces+o.palij=dp.uz.gov.ua at lists.samba.org написал:
Searching through the sources I found vfs_default_quota.c module, It completely solves my problem with:
vfs objects = default_quota
default_quota:gid nolimit = no
default_quota:gid = 10057
> I set following config:
> [ISCMPD]
> comment = Work directories for ISCMPD department
> path = /var/work/smb_shares/ISCMPD
> valid users = @ISCMPD
> write list = @ISCMPD
> force group = qiscmpd
> force create mode = 0777
> force directory mode = 0777
>
> qiscmpd - is a linux group manually added for quotas:
> # cat /etc/group | grep qiscmpd
> qiscmpd:x:10057:
> # repquota -ag | grep iscmpd
> qiscmpd -- 778296 1000 1000 5102 0 0
>
> When I try to copy files to quoted samba share, it copies ok, samba set
> correct permissions, and size of used blocks in repquota grows, but:
> 1. I can copy as much data as I want, not as quota says.
> 2. The size of quoted share shows as normal (full disk size), not as
> quoted.
>
> User quotas with 'force user' works OK. But I need only 'force group'.
> Can I make samba to work with group quotas?
> Samba compiled with --with-acl-support --with-winbind --with-smbmount
> --with-quotas --disable-cups
--
Best regards,
Palij Oleg, ISC (Pridn railway)
xmpp://malik@jabber.te.ua
More information about the samba
mailing list