Oleg Palij
2006-Jan-30 09:09 UTC
[Samba] linux group quota does not work as expected with 3.0.21a
Hi, all!
I use samba 3.0.21a on Debian Sarge with 2.4.32 kernel as member of Active
Directory domain.
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
Thanks!
--
Best regards,
Palij Oleg, ISC (Pridn railway)
xmpp://malik@jabber.te.ua
Oleg Palij
2006-Jan-31 09:25 UTC
[Samba] linux group quota does not work as expected with 3.0.21a
Mon, Jan 30, 2006 at 11:09:10AM +0200,
samba-bounces+o.palij=dp.uz.gov.ua@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