Samba 3 CVS & Quota
Alex Murphy
murphy at sgtp.samara.ru
Fri Jul 25 06:38:10 GMT 2003
В сообщении от 24 Июль 2003 16:18 вы написали:
> At 10:25 24.07.2003 +0500, Alex Murphy wrote:
> > > For example, suppose you have /home mount point and /home/auv is a user
> > > home. Then:
> > >
> > > [e$]
> > > path = /home
> > > admin users = @"Domain Admins"
> > >
> > > Will allow to set per-user quota on share E$ when logging in as user
> > > from 'Domain Admins' group. When you mount such share in W2K, XP, or
> > > W2K3, you'll see additional tab 'Quota' in its properties. Then make
> > > all changes you need to limit user 'auv' on whole /home. When user will
> > > connect to his home share, those limitations will be applied.
> >
> >I have made all as at you is written, have established manually (edquota)
> >quotas on the user auv, ×ÙÈÏÖÉÌ files from his(its) name, edquota sees
> > volume of the data normally, from WinXP I see only not limited quota root
> > where to dig??? In log file gullies:
> >[2003/07/24 15:22:27, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
> > vfs_get_ntquota() failed for service [u$]
> >[2003/07/24 15:22:27, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
> > vfs_get_ntquota() failed for service [u$]
> >[2003/07/24 15:22:29, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
> > vfs_get_ntquota() failed for service [u$]
>
> What filesystem do you use?
xfs, with pictures is options compile kernel.
> what's the output of 'repquota /dev/???' ?
msa log # repquota /dev/sgtp/users
*** Report for user quotas on device /dev/sgtp/users
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 2096 0 0 13 0 0
lola -- 0 0 0 1 0 0
auv -- 1608 10000 20000 9 0 0
lawyer -- 49924 100000 100000 372 0 0
im install hp Storage moduler SAN array 1000, link with Linux fibre channel.
install LVM (/dev/sgtp/users is LVM partishion)
>
> have you 'get quota command' in smb.conf global section?
no, in smb.conf is absent get quota command
>
> hmm we may need to add more debug messages in some places...
log.winxp Is a broad gully a file from dens of system if still it is necessary
to make something please specify that it is necessary to make further.
Alexey.
> sys_get_quota() should only fail when 'get quota command' or
> sys_path_to_dev() fails.
>
> Or on XFS :
> case SMB_USER_FS_QUOTA_TYPE:
> if ((ret = quotactl(QCMD(Q_XGETQSTAT,USRQUOTA), bdev, -1,
> (CADDR_T)&F)))
> return ret;
>
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1002]
> >path[/msa/users]
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1004]
> >path[/msa/users]
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1006]
> >path[/msa/users]
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1008]
> >path[/msa/users]
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1010]
> >path[/msa/users]
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1012]
> >path[/msa/users]
> >[2003/07/24 15:22:30, 1] smbd/ntquotas.c:vfs_get_user_ntquota_list(192)
> > no quota entry for sid[S-1-5-21-3155955837-4108667622-3601602090-1014]
> >path[/msa/users]
>
> That's ok we just need to move from DEBUG(1,... to DEBUG(10,...
>
> Alexander can you change this for me?
>
> >.........
> >In log file gullies sid the given user it is specified
> >
> >[homes]
> > path = /msa/users/%u
> > comment = Home Directories
> > browseable = yes
> > writable = yes
> > directory mask = 0700
> > create mask = 0600
> >[u$]
> > path = /msa/users
> > comment = Users Folders
> > admin users = @"Domain Admins"
> >
> >?????
> >Thank for answers, Alexey.
>
> metze
> ---------------------------------------------------------------------------
>-- Stefan "metze" Metzmacher <metze at metzemix.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: q1.png
Type: image/png
Size: 3312 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030725/de193daf/q1.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: q3.png
Type: image/png
Size: 8173 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030725/de193daf/q3.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: q2.png
Type: image/png
Size: 6322 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030725/de193daf/q2.png
-------------- next part --------------
[2003/07/25 11:33:20, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:22, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:24, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:26, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:28, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:30, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:32, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:34, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:36, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:38, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:40, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:42, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:44, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:46, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:48, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:50, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:52, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:54, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:56, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:33:57, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /
[2003/07/25 11:33:58, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:33:58, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:00, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:02, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:04, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:06, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:08, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:10, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:12, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:14, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:16, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:18, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:20, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:22, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:24, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:26, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:27, 3] smbd/vfs.c:vfs_init_default(201)
Initialising default vfs hooks
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /
[2003/07/25 11:34:27, 0] smbd/service.c:set_admin_user(314)
lawyer logged in as admin user (root privileges)
[2003/07/25 11:34:27, 3] smbd/vfs.c:vfs_init_default(201)
Initialising default vfs hooks
[2003/07/25 11:34:27, 1] smbd/service.c:make_connection_snum(692)
winxp (192.168.1.108) connect to service u$ initially as user lawyer (uid=0, gid=30002) (pid 19335)
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:27, 3] smbd/vfs.c:vfs_init_default(201)
Initialising default vfs hooks
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /
[2003/07/25 11:34:27, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:28, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:28, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:30, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [lawyer]
[2003/07/25 11:34:30, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/public
[2003/07/25 11:34:30, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/groups
[2003/07/25 11:34:30, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:33, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:33, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:33, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:33, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:34, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:34, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:36, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 0] smbd/service.c:set_admin_user(314)
lawyer logged in as admin user (root privileges)
[2003/07/25 11:34:37, 3] smbd/vfs.c:vfs_init_default(201)
Initialising default vfs hooks
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users/lawyer
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:37, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /tmp
[2003/07/25 11:34:38, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:34:38, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:38, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:40, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:42, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:44, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:46, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:48, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:50, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:52, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:54, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:56, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:34:58, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:00, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:02, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:04, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:06, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:08, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:10, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:12, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:14, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:16, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:18, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:20, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:22, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:24, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:26, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:28, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:30, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:32, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:34, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:36, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:38, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:39, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /
[2003/07/25 11:35:40, 4] smbd/vfs.c:vfs_ChDir(611)
vfs_ChDir to /msa/users
[2003/07/25 11:35:40, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:42, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:44, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:46, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:48, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:50, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:52, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:54, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
[2003/07/25 11:35:56, 0] smbd/trans2.c:call_trans2qfsinfo(1531)
vfs_get_ntquota() failed for service [u$]
More information about the samba-technical
mailing list