[Samba] freebsd 5.x and quotas
Andrea Riela
ml at nesys.it
Wed Jun 8 14:45:34 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks,
I've to create a dir (/usr/local/samba/server) for win users (group
@test), and I've to simulate a dir quota (50-55Gb) on my freebsd
system.
These are my steps:
1. kernel with 'options QUOTA'
2. rc.conf with enable_quotas="YES" and check_quotas="YES"
3. fstab: /dev/da0s1f /usr ufs rw,groupquota
2 2
then I've modified the quotas for group test:
asclepius# quota -g test
Disk quotas for group test (gid 1005):
Filesystem usage quota limit grace files quota limit
grace
/usr 10 5120000056320000 2 0 0
4. compiled samba with quotas support:
asclepius# /usr/local/sbin/smbd -b | grep -i quota
HAVE_QUOTACTL_4B
WITH_QUOTAS
WITH_QUOTAS
vfs_default_quota_init
5. the dir 'server' config:
[server]
comment = Storage Disk
path = /usr/local/samba/server
volume = Z
writable = yes
read only = no
browseable = yes
printable = no
public = no
valid users = @test
invalid users = root ...
create mask = 0765
hide dot files = yes
inherit permissions = yes
and dir permissions:
drwxrwx--- 2 root test 512 Jun 8 13:34 server
but when I try to connect as group test user ... I see all /usr disk
space available, and not 50/55Gb ... why? where is my mistake?
Any suggestion will be appreciated
Thanks for your support
Regards
Andrea
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCpwSUMakHrsrHP9wRAg+/AJ9yyAlF14U39vTiEdMK+aaZAAB3BgCg7Ec3
kQa+KUKf4GX/+Trx7e5nRiw=
=tK4s
-----END PGP SIGNATURE-----
More information about the samba
mailing list