Re: [Samba] NFS quotas on Solaris 10
On 26.04.2012 22:08, Gaiseric Vandal wrote: I have one share on my samba server which is on top of an autofs mount point. This is solaris 10 with bundled samba 3.5.10 and zfs. It also shows 0 free space. I had the same problem with samba 3.4.x compiled from source code. I think this is just a fundamental Samba issue that you won't easily solve. Most Windows applications won't have an issue with this. Adobe Acrobat will. Might be. But it wasn't an issue until the update. My Win7 clients can't copy files onto shares anymore, since then. Error message says not enough disk space. I had to rebuild Samba without quota support as a workaround. Which now makes it show wrong sizes for those who actually have a userquota. I even tried cooking up my own 'get quota command', but that doesn't seem to be used for NFS quotas. Regards, Christian Manal On 04/26/12 10:24, Christian Manal wrote: On 26.04.2012 16:07, Gaiseric Vandal wrote: Are these autofs mounts? Are the nfs v4 mounts - I think Solaris 10 will automatically default to NFS v4 when mounting from another Solaris 10 server. Yes to both. Can you run smbd -b on the new and old version and see if the new build omits any crucial modules? See attachments. Regards, Christian Manal On 04/26/12 06:07, Christian Manal wrote: Hi list, I'm running Samba 3.6.4 on Solaris 10 x86. Underlying filesystem is ZFS. Since updating from 3.6.0, free space on NFS mounted ZFS filesystem, without a userquota set for the user, is always reported zero. 'quota -v' and the perl module 'Quota' both report no quota for such file systems. (Un)setting (ref)quota for those filesystems doesn't change anything. Any idea how to fix this behavior? A level 10 log of the quota stuff is attached. Regards, Christian Manal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] NFS quotas on Solaris 10
Hi list, I'm running Samba 3.6.4 on Solaris 10 x86. Underlying filesystem is ZFS. Since updating from 3.6.0, free space on NFS mounted ZFS filesystem, without a userquota set for the user, is always reported zero. 'quota -v' and the perl module 'Quota' both report no quota for such file systems. (Un)setting (ref)quota for those filesystems doesn't change anything. Any idea how to fix this behavior? A level 10 log of the quota stuff is attached. Regards, Christian Manal With userquota@moenoel=20g [2012/04/26 11:57:24.310364, 5] smbd/quotas.c:820(disk_quotas) disk_quotas: testing /home/moenoel devno=4b81f9a [2012/04/26 11:57:24.310439, 5] smbd/quotas.c:871(disk_quotas) disk_quotas: looking for mountpath (NFS) nfsserver:/export/home/staff/moenoel [2012/04/26 11:57:24.310478, 5] smbd/quotas.c:683(nfs_quotas) nfs_quotas: looking for mount on nfsserver [2012/04/26 11:57:24.310511, 5] smbd/quotas.c:684(nfs_quotas) nfs_quotas: of path nfsserver:/export/home/staff/moenoel [2012/04/26 11:57:24.310546, 5] smbd/quotas.c:689(nfs_quotas) nfs_quotas: Asking for host nfsserver rpcprog 100011 rpcvers 1 network udp [2012/04/26 11:57:24.311246, 9] smbd/quotas.c:697(nfs_quotas) nfs_quotas: auth_success [2012/04/26 11:57:24.311821, 9] smbd/quotas.c:720(nfs_quotas) nfs_quotas: Good quota data [2012/04/26 11:57:24.311860, 10] smbd/quotas.c:744(nfs_quotas) nfs_quotas: Let`s look at D a bit closer... status 1 bsize 512 active? 1 bhard 41943040 bsoft 41943040 curb 15737250 [2012/04/26 11:57:24.311919, 5] smbd/quotas.c:766(nfs_quotas) nfs_quotas: For path /export/home/staff/moenoel returning bsize 512, dfree 26205790, dsize 41943040 [2012/04/26 11:57:24.311964, 10] smbd/quotas.c:769(nfs_quotas) nfs_quotas: End of nfs_quotas With userquota@moenoel=none [2012/04/26 11:58:11.230325, 5] smbd/quotas.c:820(disk_quotas) disk_quotas: testing /home/moenoel devno=4b81f9a [2012/04/26 11:58:11.230406, 5] smbd/quotas.c:871(disk_quotas) disk_quotas: looking for mountpath (NFS) nfsserver:/export/home/staff/moenoel [2012/04/26 11:58:11.230445, 5] smbd/quotas.c:683(nfs_quotas) nfs_quotas: looking for mount on nfsserver [2012/04/26 11:58:11.230479, 5] smbd/quotas.c:684(nfs_quotas) nfs_quotas: of path nfsserver:/export/home/staff/moenoel [2012/04/26 11:58:11.230512, 5] smbd/quotas.c:689(nfs_quotas) nfs_quotas: Asking for host nfsserver rpcprog 100011 rpcvers 1 network udp [2012/04/26 11:58:11.231271, 9] smbd/quotas.c:697(nfs_quotas) nfs_quotas: auth_success [2012/04/26 11:58:11.232309, 9] smbd/quotas.c:720(nfs_quotas) nfs_quotas: Good quota data [2012/04/26 11:58:11.232361, 10] smbd/quotas.c:744(nfs_quotas) nfs_quotas: Let`s look at D a bit closer... status 1 bsize 512 active? 1 bhard 0 bsoft 0 curb 15737300 [2012/04/26 11:58:11.232424, 5] smbd/quotas.c:766(nfs_quotas) nfs_quotas: For path /export/home/staff/moenoel returning bsize 512, dfree 0, dsize 15737300 [2012/04/26 11:58:11.232471, 10] smbd/quotas.c:769(nfs_quotas) nfs_quotas: End of nfs_quotas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] NFS quotas on Solaris 10
Are these autofs mounts? Are the nfs v4 mounts - I think Solaris 10 will automatically default to NFS v4 when mounting from another Solaris 10 server. Can you run smbd -b on the new and old version and see if the new build omits any crucial modules? On 04/26/12 06:07, Christian Manal wrote: Hi list, I'm running Samba 3.6.4 on Solaris 10 x86. Underlying filesystem is ZFS. Since updating from 3.6.0, free space on NFS mounted ZFS filesystem, without a userquota set for the user, is always reported zero. 'quota -v' and the perl module 'Quota' both report no quota for such file systems. (Un)setting (ref)quota for those filesystems doesn't change anything. Any idea how to fix this behavior? A level 10 log of the quota stuff is attached. Regards, Christian Manal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] NFS quotas on Solaris 10
On 26.04.2012 16:07, Gaiseric Vandal wrote: Are these autofs mounts? Are the nfs v4 mounts - I think Solaris 10 will automatically default to NFS v4 when mounting from another Solaris 10 server. Yes to both. Can you run smbd -b on the new and old version and see if the new build omits any crucial modules? See attachments. Regards, Christian Manal On 04/26/12 06:07, Christian Manal wrote: Hi list, I'm running Samba 3.6.4 on Solaris 10 x86. Underlying filesystem is ZFS. Since updating from 3.6.0, free space on NFS mounted ZFS filesystem, without a userquota set for the user, is always reported zero. 'quota -v' and the perl module 'Quota' both report no quota for such file systems. (Un)setting (ref)quota for those filesystems doesn't change anything. Any idea how to fix this behavior? A level 10 log of the quota stuff is attached. Regards, Christian Manal Build environment: Built by:root@sambaserver Built on:Wed Apr 11 13:09:04 MEST 2012 Built using: gcc Build host: SunOS sambaserver 5.10 Generic_147441-13 i86pc i386 i86pc Solaris SRCDIR: /services/src/samba-3.6.4/source3 BUILDDIR:/services/src/samba-3.6.4/source3 Paths: SBINDIR: /services/samba/sbin BINDIR: /services/samba/bin SWATDIR: /services/samba/swat CONFIGFILE: /services/samba/etc/smb.conf LOGFILEBASE: /services/samba/var LMHOSTSFILE: /services/samba/etc/lmhosts LIBDIR: /services/samba/lib MODULESDIR: /services/samba/lib SHLIBEXT: so LOCKDIR: /services/samba/var/locks STATEDIR: /services/samba/var/locks CACHEDIR: /services/samba/var/locks PIDDIR: /services/samba/var/locks SMB_PASSWD_FILE: /services/samba/private/smbpasswd PRIVATE_DIR: /services/samba/private NCALRPCDIR: /services/samba/var/ncalrpc NMBDSOCKETDIR: /services/samba/var/nmbd System Headers: HAVE_SYS_ACL_H HAVE_SYS_FCNTL_H HAVE_SYS_FILE_H HAVE_SYS_FILIO_H HAVE_SYS_IOCTL_H HAVE_SYS_IPC_H HAVE_SYS_MMAN_H HAVE_SYS_MOUNT_H HAVE_SYS_PARAM_H HAVE_SYS_PRIV_H HAVE_SYS_RESOURCE_H HAVE_SYS_SELECT_H HAVE_SYS_SHM_H HAVE_SYS_SOCKET_H HAVE_SYS_SOCKIO_H HAVE_SYS_STATFS_H HAVE_SYS_STATVFS_H HAVE_SYS_STAT_H HAVE_SYS_SYSCALL_H HAVE_SYS_SYSLOG_H HAVE_SYS_SYSMACROS_H HAVE_SYS_TERMIO_H HAVE_SYS_TIME_H HAVE_SYS_TYPES_H HAVE_SYS_UIO_H HAVE_SYS_UNISTD_H HAVE_SYS_UN_H HAVE_SYS_VFS_H HAVE_SYS_WAIT_H Headers: HAVE_AIO_H HAVE_ALLOCA_H HAVE_ARPA_INET_H HAVE_COM_ERR_H HAVE_CRYPT_H HAVE_CTYPE_H HAVE_CUPS_CUPS_H HAVE_CUPS_LANGUAGE_H HAVE_DIRENT_H HAVE_DLFCN_H HAVE_FCNTL_H HAVE_FLOAT_H HAVE_FNMATCH_H HAVE_GETOPT_H HAVE_GLOB_H HAVE_GRP_H HAVE_GSSAPI_GSSAPI_EXT_H HAVE_GSSAPI_GSSAPI_GENERIC_H HAVE_GSSAPI_GSSAPI_H HAVE_GSSAPI_H HAVE_KRB5_H HAVE_KRB5_LOCATE_PLUGIN_H HAVE_LANGINFO_H HAVE_LASTLOG_H HAVE_LBER_H HAVE_LDAP_H HAVE_LIBINTL_H HAVE_LIMITS_H HAVE_LOCALE_H HAVE_MEMORY_H HAVE_NETDB_H HAVE_NETINET_IN_H HAVE_NETINET_IN_SYSTM_H HAVE_NETINET_IP_H HAVE_NETINET_TCP_H HAVE_NET_IF_H HAVE_NSSWITCH_H HAVE_NSS_COMMON_H HAVE_POLL_H HAVE_PTHREAD_H HAVE_PWD_H HAVE_READLINE_HISTORY_H HAVE_READLINE_READLINE_H HAVE_RPCSVC_NIS_H HAVE_RPCSVC_YPCLNT_H HAVE_RPCSVC_YP_PROT_H HAVE_RPC_NETTYPE_H HAVE_RPC_RPC_H HAVE_SETJMP_H HAVE_SHADOW_H HAVE_STDARG_H HAVE_STDBOOL_H HAVE_STDINT_H HAVE_STDIO_H HAVE_STDLIB_H HAVE_STRINGS_H HAVE_STRING_H HAVE_STROPTS_H HAVE_SYSLOG_H HAVE_TERMIOS_H HAVE_TERMIO_H HAVE_TIME_H HAVE_UNISTD_H HAVE_UTIME_H HAVE_UUID_UUID_H HAVE_ZLIB_H UTMP Options: HAVE_GETUTMPX HAVE_UTMPX_H HAVE_UTMP_H HAVE_UT_UT_EXIT HAVE_UT_UT_ID HAVE_UT_UT_NAME HAVE_UT_UT_PID HAVE_UT_UT_TIME HAVE_UT_UT_TYPE HAVE_UT_UT_USER PUTUTLINE_RETURNS_UTMP WITH_UTMP HAVE_* Defines: HAVE_ADDRTYPE_IN_KRB5_ADDRESS HAVE_AP_OPTS_USE_SUBKEY HAVE_ASPRINTF HAVE_ATEXIT HAVE_ATTROPEN HAVE_BER_SCANF HAVE_BER_SOCKBUF_ADD_IO HAVE_BINDTEXTDOMAIN HAVE_BLKCNT_T HAVE_BLKSIZE_T HAVE_BOOL HAVE_BZERO HAVE_CHMOD HAVE_CHOWN HAVE_CHROOT HAVE_CLOCK_GETTIME HAVE_CLOCK_MONOTONIC HAVE_CLOCK_PROCESS_CPUTIME_ID HAVE_CLOCK_REALTIME HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS HAVE_CONNECT HAVE_CREAT64 HAVE_CRYPT HAVE_CUPS HAVE_DECL_ASPRINTF HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER HAVE_DECL_RL_EVENT_HOOK HAVE_DECL_SNPRINTF HAVE_DECL_VASPRINTF HAVE_DECL_VSNPRINTF HAVE_DGETTEXT HAVE_DIRENT_D_OFF HAVE_DLCLOSE HAVE_DLERROR HAVE_DLOPEN HAVE_DLSYM HAVE_DUP2 HAVE_ENCTYPE_ARCFOUR_HMAC HAVE_ENDNETGRENT HAVE_ENDNETGRENT_PROTOTYPE HAVE_ERRNO_DECL HAVE_EXECL HAVE_EXPLICIT_LARGEFILE_SUPPORT HAVE_FCHMOD HAVE_FCHOWN HAVE_FCNTL_LOCK HAVE_FCVT HAVE_FDATASYNC HAVE_FDATASYNC_DECL
Re: [Samba] NFS quotas on Solaris 10
I have one share on my samba server which is on top of an autofs mount point. This is solaris 10 with bundled samba 3.5.10 and zfs. It also shows 0 free space. I had the same problem with samba 3.4.x compiled from source code. I think this is just a fundamental Samba issue that you won't easily solve. Most Windows applications won't have an issue with this. Adobe Acrobat will. On 04/26/12 10:24, Christian Manal wrote: On 26.04.2012 16:07, Gaiseric Vandal wrote: Are these autofs mounts? Are the nfs v4 mounts - I think Solaris 10 will automatically default to NFS v4 when mounting from another Solaris 10 server. Yes to both. Can you run smbd -b on the new and old version and see if the new build omits any crucial modules? See attachments. Regards, Christian Manal On 04/26/12 06:07, Christian Manal wrote: Hi list, I'm running Samba 3.6.4 on Solaris 10 x86. Underlying filesystem is ZFS. Since updating from 3.6.0, free space on NFS mounted ZFS filesystem, without a userquota set for the user, is always reported zero. 'quota -v' and the perl module 'Quota' both report no quota for such file systems. (Un)setting (ref)quota for those filesystems doesn't change anything. Any idea how to fix this behavior? A level 10 log of the quota stuff is attached. Regards, Christian Manal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba only quotas?
Is it possible to setup quotas only on the samba level? So samba is enforcing the quotas, but not the underlying OS? I can't seem to find anything in the docs about it. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba only quotas?
On Thu, Feb 04, 2010 at 04:21:53PM -0600, Kyle Schmitt wrote: Is it possible to setup quotas only on the samba level? So samba is enforcing the quotas, but not the underlying OS? I can't seem to find anything in the docs about it. No. It would be hard for Samba to do this as it doesn't have complete knowledge about the users capacity on disk as the underlying operating system does. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Group quotas on shares
Many thanks, the 'valid users' option is exactly what was missing. Regards, Simon Pat Riehecky [EMAIL PROTECTED] wrote: Hey, We have a similar setup here. I have all the users of a share in a secondary group together. chown whomever:sharegroup on the share directory chmod 2770 on the share directory Here is the relevant bit of my smb.conf [IT] comment = IT Test Share path = /home/it valid users = @it force group = it read only = No create mask = 0770 directory mask = 0770 strict allocate = Yes use sendfile = Yes preserve case = No hide special files = Yes hide unreadable = Yes browseable = No fstype = FAT wide links = No For maintainability I would recommend reading up on the copy option of smb.conf for shares. I have 20+ shares which are all setup identically and have but one place to make changes to all of them. As a side note for a shortcut I suspect you are looking for the valid users option of smb.conf. Pat On Mon, 2008-05-12 at 11:24 +0100, [EMAIL PROTECTED] wrote: Hello, Samba 3.0.23d PDC on CentOS 4.4, smbpasswd backend, Windows XP clients. I recently took over the administration of a small LAN (~35 hosts). The shared drives had been implemented in a hurry and the configuration had never been revisited. Linux groups had been enabled for different shares, but this had never been enforced on the file server. I have implemented linux group quotas on the file system that contains our shared folders, but it has not worked according to my expectations. I changed the group ownership of each share and its contents according to the relevant role and appropriate access level, and set the group sticky on each share and its subfolders. I also added the default create modes for each share into smb.conf: force create mode = 0770 force directory mode = 0770 After this I enabled quotas on the filesystem for the specific group that owns each share. However, in Windows every folder shows with the same usage and quota regardless of the assigned quota, and that quota seems to be the quota assigned to the primary group that each user belongs to i.e. users. If I remove the quota on the users group then the full filesystem space is displayed in Windows Explorer for every share. If I add the option: force group = +sales to the sales share, for example, the correct quota for sales is visible in explorer, however any user can then access the sales folder regardless of the groups that they belong to. Is there a way I can enable group quotas that are displayed correctly in Explorer and also limit access to only the members of the appropriate groups for each share? Best regards, Simon Barrett - Find the home of your dreams with eircom net property Sign up for email alerts now http://www.eircom.net/propertyalerts -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Group quotas on shares
Hello, Samba 3.0.23d PDC on CentOS 4.4, smbpasswd backend, Windows XP clients. I recently took over the administration of a small LAN (~35 hosts). The shared drives had been implemented in a hurry and the configuration had never been revisited. Linux groups had been enabled for different shares, but this had never been enforced on the file server. I have implemented linux group quotas on the file system that contains our shared folders, but it has not worked according to my expectations. I changed the group ownership of each share and its contents according to the relevant role and appropriate access level, and set the group sticky on each share and its subfolders. I also added the default create modes for each share into smb.conf: force create mode = 0770 force directory mode = 0770 After this I enabled quotas on the filesystem for the specific group that owns each share. However, in Windows every folder shows with the same usage and quota regardless of the assigned quota, and that quota seems to be the quota assigned to the primary group that each user belongs to i.e. users. If I remove the quota on the users group then the full filesystem space is displayed in Windows Explorer for every share. If I add the option: force group = +sales to the sales share, for example, the correct quota for sales is visible in explorer, however any user can then access the sales folder regardless of the groups that they belong to. Is there a way I can enable group quotas that are displayed correctly in Explorer and also limit access to only the members of the appropriate groups for each share? Best regards, Simon Barrett - Find the home of your dreams with eircom net property Sign up for email alerts now http://www.eircom.net/propertyalerts -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Group quotas on shares
Hey, We have a similar setup here. I have all the users of a share in a secondary group together. chown whomever:sharegroup on the share directory chmod 2770 on the share directory Here is the relevant bit of my smb.conf [IT] comment = IT Test Share path = /home/it valid users = @it force group = it read only = No create mask = 0770 directory mask = 0770 strict allocate = Yes use sendfile = Yes preserve case = No hide special files = Yes hide unreadable = Yes browseable = No fstype = FAT wide links = No For maintainability I would recommend reading up on the copy option of smb.conf for shares. I have 20+ shares which are all setup identically and have but one place to make changes to all of them. As a side note for a shortcut I suspect you are looking for the valid users option of smb.conf. Pat On Mon, 2008-05-12 at 11:24 +0100, [EMAIL PROTECTED] wrote: Hello, Samba 3.0.23d PDC on CentOS 4.4, smbpasswd backend, Windows XP clients. I recently took over the administration of a small LAN (~35 hosts). The shared drives had been implemented in a hurry and the configuration had never been revisited. Linux groups had been enabled for different shares, but this had never been enforced on the file server. I have implemented linux group quotas on the file system that contains our shared folders, but it has not worked according to my expectations. I changed the group ownership of each share and its contents according to the relevant role and appropriate access level, and set the group sticky on each share and its subfolders. I also added the default create modes for each share into smb.conf: force create mode = 0770 force directory mode = 0770 After this I enabled quotas on the filesystem for the specific group that owns each share. However, in Windows every folder shows with the same usage and quota regardless of the assigned quota, and that quota seems to be the quota assigned to the primary group that each user belongs to i.e. users. If I remove the quota on the users group then the full filesystem space is displayed in Windows Explorer for every share. If I add the option: force group = +sales to the sales share, for example, the correct quota for sales is visible in explorer, however any user can then access the sales folder regardless of the groups that they belong to. Is there a way I can enable group quotas that are displayed correctly in Explorer and also limit access to only the members of the appropriate groups for each share? Best regards, Simon Barrett - Find the home of your dreams with eircom net property Sign up for email alerts now http://www.eircom.net/propertyalerts -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] samba with quotas
Well Mario, thanks for the reply. I already checked what you've said and I arrived using quotas in the partition. Also, I use this tutorial to setup samba that authenticate to active directory through Kerberos. The problem is when I ask ticket to the active directory, it seems it expires. http://www.howtoforge.com/samba_ads_security_mode Please help. TRIK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of FC Mario Patty Sent: Tuesday, February 12, 2008 3:24 PM To: samba@lists.samba.org Subject: Re: [Samba] samba with quotas Well Patrick, I don't know yet if we can do that with samba. But for what I've already done here, I set user quota to the partition that has the directory of the samba share via /etc/fstab (so it can be mounted automatically). There're plenty of source in the web that can show you just how to do that. Hope it can help. Peace, On Feb 12, 2008 6:26 AM, Patrick G. Victoriano [EMAIL PROTECTED] wrote: Good day, I just want to ask how to setup quotas on a samba server. I have linux centOS 4 installed and samba 3.0.25b. Thank you TRIK -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba with quotas
Good day, I just want to ask how to setup quotas on a samba server. I have linux centOS 4 installed and samba 3.0.25b. Thank you TRIK -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba with quotas
Well Patrick, I don't know yet if we can do that with samba. But for what I've already done here, I set user quota to the partition that has the directory of the samba share via /etc/fstab (so it can be mounted automatically). There're plenty of source in the web that can show you just how to do that. Hope it can help. Peace, On Feb 12, 2008 6:26 AM, Patrick G. Victoriano [EMAIL PROTECTED] wrote: Good day, I just want to ask how to setup quotas on a samba server. I have linux centOS 4 installed and samba 3.0.25b. Thank you TRIK -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba --with-quotas
We have a rhel4 system running samba - domain user accounts - NFS disk space. All updates and software patches have been applies through rhn. Since samba was installed with redhat provided rpms, --with-quotas WAS configured in. The samba share is seen and can be used by authenticated users. However quotas are not being recognized. The same disk space, if accessed via Windows shares are getting their quota recognized. If accessed via Samba, and a user is over quota, the file appears to copy, but is actually corrupted. No quota warning is issued to the user. Samba: --with Options: WITH_ADS WITH_AUTOMOUNT WITH_PAM WITH_QUOTAS WITH_SENDFILE WITH_SMBMOUNT WITH_SYSLOG WITH_UTMP WITH_WINBIND smbcquotas -L //rhel4/uid Password: Quotas are not enabled on this share. Failed to open \$Extend\$Quota:$Q:$INDEX_ALLOCATION NT_STATUS_ACCESS_DENIED. -- Karen R. McArthur [EMAIL PROTECTED] Systems Administrator Information and Library Services, Bates College Lewiston, Maine 04240 USA ph:(207)786-8236 fax:(207)786-6057 If you find that everybody else is right and you're wrong, it might just be that you're thinking outside the box. The world is yet to catch up. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] disk quotas and NFS
RedHat Enterprise AS 4 Samba 3.0.10-1.4E.12.2 nfs automounted home directories Samba: --with Options: WITH_ADS WITH_AUTOMOUNT WITH_PAM WITH_QUOTAS WITH_SENDFILE WITH_SMBMOUNT WITH_SYSLOG WITH_UTMP WITH_WINBIND Logged in locally, a user is warned when over quota and cannot copy further files. Over CIFS, a user is warned when over quota and cannot copy further files. Over smb, a user is not warned, and when a file is copied to the smb share, it appears to copy until you look at the file size - which is not the correct size. As you can see above, we do have --with-quotas configured in. Is there a step I need further to enable quotas over smb? I have searched the archives and can't find what I need. A pointer to the correct documentation would be greatly appreciated! Thank you, Karen McArthur Bates College, Lewiston, Maine smime.p7s Description: S/MIME Cryptographic Signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Quotas using LDAP?
Hello everyone. I would like to create a file share samba, that uses a LDAP base to authenticate my users. What I would like to do is to create a quota per user. Is that a way for doing that using LDAP to store the quota limit, AND samba understand this? If not, what would be the better way for quota in Samba? Thanks in advance for any help. Best, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Quotas using LDAP?
If your users can be retrieved by 'getent passwd' you could use quota in the filesystem. On 8/2/07, Steve Scanavarro [EMAIL PROTECTED] wrote: Hello everyone. I would like to create a file share samba, that uses a LDAP base to authenticate my users. What I would like to do is to create a quota per user. Is that a way for doing that using LDAP to store the quota limit, AND samba understand this? If not, what would be the better way for quota in Samba? Thanks in advance for any help. Best, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- *** Cleber P. de Souza -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Quotas using LDAP?
On Thu, 2007-08-02 at 14:48 -0300, Cleber P. de Souza wrote: If your users can be retrieved by 'getent passwd' you could use quota in the filesystem. On 8/2/07, Steve Scanavarro [EMAIL PROTECTED] wrote: Hello everyone. I would like to create a file share samba, that uses a LDAP base to authenticate my users. What I would like to do is to create a quota per user. Is that a way for doing that using LDAP to store the quota limit, AND samba understand this? If not, what would be the better way for quota in Samba? Thanks in advance for any help. I did this once, with a nasty script I found to sync the quotas between LDAP and the disk. It was *really* ugly (running edquota, with EDITOR set to a command that filled the file in as expected!), but it did keep the students in line... Andrew Bartlett -- Andrew Bartletthttp://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc. http://redhat.com signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
Opened bug in RHs bugzilla ( https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=244848 ) En/na simo ha escrit: On Mon, 2007-06-18 at 12:21 -0700, Jeremy Allison wrote: On Mon, Jun 18, 2007 at 08:48:09PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, actually, I have adapted your patch for applying to the current RHEL4 Samba release (samba-3.0.10-1.4E.12.2). Would you mind to check if I have made any flagrant mistakes? If anyone reads this and decides to try it, please bear in mind it's experimental. Summary of what I have modified from your patch: * no patch for smbd/aio.c , because it's just not there yet in this release * in smbd/fileio.c:sync_file() , doesn't check for the sync always directive, the check's not originally there * in smbd/fileio.c:sync_file() , for accessing the fd, it's just fsp-fd, not fsp-fh-fd * in smbd/reply.c:reply_write() , ignored the hunk around CHECK_WRITE(fsp), because in this release that check is not made * took into account that the checking of conditions for forcing synchronization (lp_strict_sync, lp_sync_always, write_through) hadn't yet been refactored into the fileio.c:sync_file() function If patching from a vanilla samba-3.0.10 release, should apply the smbd_deferred_open_backport patch first. I'm also attaching it for convenience. If your patch makes it to next Samba official release, and this patch receives your blessing, could we put them in consideration of RedHat for an errata? The fact it helps to avoid silent data corruption in an scenario like ours, should be interesting for them. This work looks good - it's not a complex change. The fix will definately be in 3.0.25b, I'll let Simo pick up the change for RH for their older versions if he thinks it's warrented. I'd really prefer an entry in RHs bugzilla to be able to easily pick it up :-) Simo. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Tue, 2007-06-19 at 16:15 +0200, SER.RI-TIC - David Losada wrote: Opened bug in RHs bugzilla ( https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=244848 ) Thank you! Simo. -- Simo Sorce Samba Team GPL Compliance Officer email: [EMAIL PROTECTED] http://samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
Hi Jeremy, just tried your patch on 3.0.25a (it applied cleanly) and configured the suggested directives (strict allocate, strict sync, sync always). This way, the clients I have tested (Win2K with clear-text authentication, smbclient) get notified immediately about the lack of available quota. Relevant log excerpts: (smbclient) [2007/06/11 22:24:12, 5] smbd/reply.c:reply_write_and_X(3159) reply_write_and_X: sync_file for samba-3.0.10-1.4E.12.2.src.rpm returned NT_ST ATUS_DISK_FULL [2007/06/11 22:24:12, 3] smbd/error.c:error_packet_set(106) error packet at smbd/reply.c(3160) cmd=47 (SMBwriteX) NT_STATUS_DISK_FULL (Win2K) [2007/06/11 22:25:16, 5] smbd/reply.c:reply_write_and_X(3159) reply_write_and_X: sync_file for rvtls_putty.reg returned NT_STATUS_DISK_FULL [2007/06/11 22:25:16, 3] smbd/error.c:error_packet_set(106) error packet at smbd/reply.c(3160) cmd=47 (SMBwriteX) NT_STATUS_DISK_FULL What do you think are the chances of backporting it to 3.0.10 and 3.0.23c? I am willing to do the effort, just would like to know your opinion on it, since you seem to know the affected code very well ;) It would be nice very nice for us if we could send it to RedHat so they consider to issue an errata to RHEL4 and 5. About limiting the syncy behaviour just to the space allocation operation... I think maybe we are not interested in persuing it by now and we could sacrifice performance for safety. thank you, En/na Jeremy Allison ha escrit: On Fri, Jun 15, 2007 at 08:23:49PM +0200, SER.RI-TIC - David Losada wrote: mmm... well, it doesn't seem to be working like that in the version that ships with RHEL4. I will get around to try it on a fresh build on monday and report to you about it. Apply this patch and let me know if it fixes it (will be in 3.0.25b). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Mon, Jun 18, 2007 at 06:53:11PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, just tried your patch on 3.0.25a (it applied cleanly) and configured the suggested directives (strict allocate, strict sync, sync always). This way, the clients I have tested (Win2K with clear-text authentication, smbclient) get notified immediately about the lack of available quota. Relevant log excerpts: (smbclient) [2007/06/11 22:24:12, 5] smbd/reply.c:reply_write_and_X(3159) reply_write_and_X: sync_file for samba-3.0.10-1.4E.12.2.src.rpm returned NT_ST ATUS_DISK_FULL [2007/06/11 22:24:12, 3] smbd/error.c:error_packet_set(106) error packet at smbd/reply.c(3160) cmd=47 (SMBwriteX) NT_STATUS_DISK_FULL (Win2K) [2007/06/11 22:25:16, 5] smbd/reply.c:reply_write_and_X(3159) reply_write_and_X: sync_file for rvtls_putty.reg returned NT_STATUS_DISK_FULL [2007/06/11 22:25:16, 3] smbd/error.c:error_packet_set(106) error packet at smbd/reply.c(3160) cmd=47 (SMBwriteX) NT_STATUS_DISK_FULL What do you think are the chances of backporting it to 3.0.10 and 3.0.23c? I am willing to do the effort, just would like to know your opinion on it, since you seem to know the affected code very well ;) It would be nice very nice for us if we could send it to RedHat so they consider to issue an errata to RHEL4 and 5. It should be reasonably easy to do - that code really hasn't changed much in a long time. I'm willing to answer any questions you might have on it. Simo is the RedHat Samba maintainer, so he might be able to help get this into the RH distro. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
Hi Jeremy, actually, I have adapted your patch for applying to the current RHEL4 Samba release (samba-3.0.10-1.4E.12.2). Would you mind to check if I have made any flagrant mistakes? If anyone reads this and decides to try it, please bear in mind it's experimental. Summary of what I have modified from your patch: * no patch for smbd/aio.c , because it's just not there yet in this release * in smbd/fileio.c:sync_file() , doesn't check for the sync always directive, the check's not originally there * in smbd/fileio.c:sync_file() , for accessing the fd, it's just fsp-fd, not fsp-fh-fd * in smbd/reply.c:reply_write() , ignored the hunk around CHECK_WRITE(fsp), because in this release that check is not made * took into account that the checking of conditions for forcing synchronization (lp_strict_sync, lp_sync_always, write_through) hadn't yet been refactored into the fileio.c:sync_file() function If patching from a vanilla samba-3.0.10 release, should apply the smbd_deferred_open_backport patch first. I'm also attaching it for convenience. If your patch makes it to next Samba official release, and this patch receives your blessing, could we put them in consideration of RedHat for an errata? The fact it helps to avoid silent data corruption in an scenario like ours, should be interesting for them. kind regards, En/na Jeremy Allison ha escrit: On Fri, Jun 15, 2007 at 08:23:49PM +0200, SER.RI-TIC - David Losada wrote: mmm... well, it doesn't seem to be working like that in the version that ships with RHEL4. I will get around to try it on a fresh build on monday and report to you about it. Apply this patch and let me know if it fixes it (will be in 3.0.25b). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Mon, Jun 18, 2007 at 08:48:09PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, actually, I have adapted your patch for applying to the current RHEL4 Samba release (samba-3.0.10-1.4E.12.2). Would you mind to check if I have made any flagrant mistakes? If anyone reads this and decides to try it, please bear in mind it's experimental. Summary of what I have modified from your patch: * no patch for smbd/aio.c , because it's just not there yet in this release * in smbd/fileio.c:sync_file() , doesn't check for the sync always directive, the check's not originally there * in smbd/fileio.c:sync_file() , for accessing the fd, it's just fsp-fd, not fsp-fh-fd * in smbd/reply.c:reply_write() , ignored the hunk around CHECK_WRITE(fsp), because in this release that check is not made * took into account that the checking of conditions for forcing synchronization (lp_strict_sync, lp_sync_always, write_through) hadn't yet been refactored into the fileio.c:sync_file() function If patching from a vanilla samba-3.0.10 release, should apply the smbd_deferred_open_backport patch first. I'm also attaching it for convenience. If your patch makes it to next Samba official release, and this patch receives your blessing, could we put them in consideration of RedHat for an errata? The fact it helps to avoid silent data corruption in an scenario like ours, should be interesting for them. This work looks good - it's not a complex change. The fix will definately be in 3.0.25b, I'll let Simo pick up the change for RH for their older versions if he thinks it's warrented. Thanks, Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Mon, 2007-06-18 at 12:21 -0700, Jeremy Allison wrote: On Mon, Jun 18, 2007 at 08:48:09PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, actually, I have adapted your patch for applying to the current RHEL4 Samba release (samba-3.0.10-1.4E.12.2). Would you mind to check if I have made any flagrant mistakes? If anyone reads this and decides to try it, please bear in mind it's experimental. Summary of what I have modified from your patch: * no patch for smbd/aio.c , because it's just not there yet in this release * in smbd/fileio.c:sync_file() , doesn't check for the sync always directive, the check's not originally there * in smbd/fileio.c:sync_file() , for accessing the fd, it's just fsp-fd, not fsp-fh-fd * in smbd/reply.c:reply_write() , ignored the hunk around CHECK_WRITE(fsp), because in this release that check is not made * took into account that the checking of conditions for forcing synchronization (lp_strict_sync, lp_sync_always, write_through) hadn't yet been refactored into the fileio.c:sync_file() function If patching from a vanilla samba-3.0.10 release, should apply the smbd_deferred_open_backport patch first. I'm also attaching it for convenience. If your patch makes it to next Samba official release, and this patch receives your blessing, could we put them in consideration of RedHat for an errata? The fact it helps to avoid silent data corruption in an scenario like ours, should be interesting for them. This work looks good - it's not a complex change. The fix will definately be in 3.0.25b, I'll let Simo pick up the change for RH for their older versions if he thinks it's warrented. I'd really prefer an entry in RHs bugzilla to be able to easily pick it up :-) Simo. -- Simo Sorce Samba Team GPL Compliance Officer email: [EMAIL PROTECTED] http://samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] NFS quotas: truncated files without warning
Hi, we have some Samba instances serving files from a bunch of NFS exports provided by a NAS appliance. Coming from Solaris, we recently have been testing to run our Samba servers on Linux (RHEL 4, Samba 3.0.10-1.4E.12.2). One caveat we didn't expect is that, on Linux, NFS quota errors are reported on calls to close() or fsync(), but not on calls to write(). Through smbclient, we have checked that Samba correctly reports the error to the client (NT_STATUS_DISK_FULL closing remote file ...). However, Windows 2000 clients silently ignore this error when closing the file, leaving the file truncated with no warning to the user (something we really don't want to happen!) We have tried strict sync = yes and sync always = yes configuration directives, to no avail. Have also googled trying to find an answer, but couldn't find one. I don't think we are the only ones with this kind of setup.. anyone has an idea of how to handle this scenario correctly? kind regards, -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Fri, Jun 15, 2007 at 06:44:47PM +0200, David Losada wrote: Hi, we have some Samba instances serving files from a bunch of NFS exports provided by a NAS appliance. Coming from Solaris, we recently have been testing to run our Samba servers on Linux (RHEL 4, Samba 3.0.10-1.4E.12.2). One caveat we didn't expect is that, on Linux, NFS quota errors are reported on calls to close() or fsync(), but not on calls to write(). Through smbclient, we have checked that Samba correctly reports the error to the client (NT_STATUS_DISK_FULL closing remote file ...). However, Windows 2000 clients silently ignore this error when closing the file, leaving the file truncated with no warning to the user (something we really don't want to happen!) We have tried strict sync = yes and sync always = yes configuration directives, to no avail. Have also googled trying to find an answer, but couldn't find one. I don't think we are the only ones with this kind of setup.. anyone has an idea of how to handle this scenario correctly? Try strict allocate = yes to which will cause Samba to actually allocate space on a Windows client set allocation size call - this should fail if over quota and be at the right place for the Windows clients to see it. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
Hi Jeremy, thank you for the tip. Unfortunately, this hasn't proved succesful.. how I tested it: from W2K, as an user with a completely full quota, I drop a 11788 byte file into the share. It produces the following system calls in the server: write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 3596) = 3596 (4096+4096+3596 = 11788) so my Samba is verifying the availability of storage space through the write() system call, which doesn't generate NFS quota errors, ugh. The thing is that an fsync() after these write() calls would probably get me the NFS quota error... maybe it's implemented this way in a newer Samba release? kind regards, En/na Jeremy Allison ha escrit: On Fri, Jun 15, 2007 at 06:44:47PM +0200, David Losada wrote: Hi, we have some Samba instances serving files from a bunch of NFS exports provided by a NAS appliance. Coming from Solaris, we recently have been testing to run our Samba servers on Linux (RHEL 4, Samba 3.0.10-1.4E.12.2). One caveat we didn't expect is that, on Linux, NFS quota errors are reported on calls to close() or fsync(), but not on calls to write(). Through smbclient, we have checked that Samba correctly reports the error to the client (NT_STATUS_DISK_FULL closing remote file ...). However, Windows 2000 clients silently ignore this error when closing the file, leaving the file truncated with no warning to the user (something we really don't want to happen!) We have tried strict sync = yes and sync always = yes configuration directives, to no avail. Have also googled trying to find an answer, but couldn't find one. I don't think we are the only ones with this kind of setup.. anyone has an idea of how to handle this scenario correctly? Try strict allocate = yes to which will cause Samba to actually allocate space on a Windows client set allocation size call - this should fail if over quota and be at the right place for the Windows clients to see it. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Fri, Jun 15, 2007 at 07:44:22PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, thank you for the tip. Unfortunately, this hasn't proved succesful.. how I tested it: from W2K, as an user with a completely full quota, I drop a 11788 byte file into the share. It produces the following system calls in the server: write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 3596) = 3596 (4096+4096+3596 = 11788) so my Samba is verifying the availability of storage space through the write() system call, which doesn't generate NFS quota errors, ugh. The thing is that an fsync() after these write() calls would probably get me the NFS quota error... maybe it's implemented this way in a newer Samba release? Yes, that's what we do (I wrote the code :-). I'll add code to force an fsync after these writes if strict sync is also set. I'll post the patch for 3.0.25 once I've done it. Can you not run Samba on the NFS server - that would be the best way to fix this (and avoid double-copies over the network). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Fri, Jun 15, 2007 at 10:48:58AM -0700, Jeremy Allison wrote: On Fri, Jun 15, 2007 at 07:44:22PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, thank you for the tip. Unfortunately, this hasn't proved succesful.. how I tested it: from W2K, as an user with a completely full quota, I drop a 11788 byte file into the share. It produces the following system calls in the server: write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 3596) = 3596 (4096+4096+3596 = 11788) so my Samba is verifying the availability of storage space through the write() system call, which doesn't generate NFS quota errors, ugh. The thing is that an fsync() after these write() calls would probably get me the NFS quota error... maybe it's implemented this way in a newer Samba release? Yes, that's what we do (I wrote the code :-). I'll add code to force an fsync after these writes if strict sync is also set. I'll post the patch for 3.0.25 once I've done it. Actually, I've checked the code and this should already be being done. The secret is to set : strict allocate = yes strict sync = yes sync always = yes So force the flush - normally we only do the fsync if the client asks for it on the write call. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
mmm... well, it doesn't seem to be working like that in the version that ships with RHEL4. I will get around to try it on a fresh build on monday and report to you about it. However, I can imagine it would result in quite a big performance hit all around. If the 'syncy' behaviour could be restricted to the set allocation size call, maybe that would be a little bit less painful ;) Pity about linux NFS client semantics, it was working nice in Solaris. Maybe should nag the kernel mantainer for this code ;) Right, looking at performance, we should be serving SMB from the NAS appliances. Will need to look again at the possibilities these appliances offer. kind regards and thanks again, En/na Jeremy Allison ha escrit: On Fri, Jun 15, 2007 at 10:48:58AM -0700, Jeremy Allison wrote: On Fri, Jun 15, 2007 at 07:44:22PM +0200, SER.RI-TIC - David Losada wrote: Hi Jeremy, thank you for the tip. Unfortunately, this hasn't proved succesful.. how I tested it: from W2K, as an user with a completely full quota, I drop a 11788 byte file into the share. It produces the following system calls in the server: write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 4096) = 4096 write(25, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 3596) = 3596 (4096+4096+3596 = 11788) so my Samba is verifying the availability of storage space through the write() system call, which doesn't generate NFS quota errors, ugh. The thing is that an fsync() after these write() calls would probably get me the NFS quota error... maybe it's implemented this way in a newer Samba release? Yes, that's what we do (I wrote the code :-). I'll add code to force an fsync after these writes if strict sync is also set. I'll post the patch for 3.0.25 once I've done it. Actually, I've checked the code and this should already be being done. The secret is to set : strict allocate = yes strict sync = yes sync always = yes So force the flush - normally we only do the fsync if the client asks for it on the write call. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Fri, Jun 15, 2007 at 08:23:49PM +0200, SER.RI-TIC - David Losada wrote: mmm... well, it doesn't seem to be working like that in the version that ships with RHEL4. I will get around to try it on a fresh build on monday and report to you about it. However, I can imagine it would result in quite a big performance hit all around. If the 'syncy' behaviour could be restricted to the set allocation size call, maybe that would be a little bit less painful ;) Pity about linux NFS client semantics, it was working nice in Solaris. Maybe should nag the kernel mantainer for this code ;) Right, looking at performance, we should be serving SMB from the NAS appliances. Will need to look again at the possibilities these appliances offer. More data on the exact call being made (debug level 10) would help. Any write call should go through sync_file() before returning success ah - we're not checking the error return from this ! Doh ! Ok, I'll fix that. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFS quotas: truncated files without warning
On Fri, Jun 15, 2007 at 08:23:49PM +0200, SER.RI-TIC - David Losada wrote: mmm... well, it doesn't seem to be working like that in the version that ships with RHEL4. I will get around to try it on a fresh build on monday and report to you about it. Apply this patch and let me know if it fixes it (will be in 3.0.25b). Jeremy. Index: smbd/reply.c === --- smbd/reply.c(revision 23507) +++ smbd/reply.c(working copy) @@ -2743,6 +2743,7 @@ BOOL write_through; files_struct *fsp = file_fsp(inbuf,smb_vwv0); int outsize = 0; + NTSTATUS status; START_PROFILE(SMBwritebraw); if (srv_is_signing_active()) { @@ -2847,7 +2848,13 @@ SSVAL(outbuf,smb_vwv0,total_written); - sync_file(conn, fsp, write_through); + status = sync_file(conn, fsp, write_through); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(5,(reply_writebraw: sync_file for %s returned %s\n, + fsp-fsp_name, nt_errstr(status) )); + END_PROFILE(SMBwritebraw); + return ERROR_NT(status); + } DEBUG(3,(writebraw2 fnum=%d start=%.0f num=%d wrote=%d\n, fsp-fnum, (double)startpos, (int)numtowrite,(int)total_written)); @@ -2912,7 +2919,13 @@ nwritten = write_file(fsp,data,startpos,numtowrite); } - sync_file(conn, fsp, False /* write through */); + status = sync_file(conn, fsp, False /* write through */); + if (!NT_STATUS_IS_OK(status)) { + END_PROFILE(SMBwriteunlock); + DEBUG(5,(reply_writeunlock: sync_file for %s returned %s\n, + fsp-fsp_name, nt_errstr(status) )); + return ERROR_NT(status); + } if(((nwritten == 0) (numtowrite != 0))||(nwritten 0)) { END_PROFILE(SMBwriteunlock); @@ -2958,6 +2971,7 @@ char *data; files_struct *fsp = file_fsp(inbuf,smb_vwv0); int outsize = 0; + NTSTATUS status; START_PROFILE(SMBwrite); /* If it's an IPC, pass off the pipe handler. */ @@ -2968,6 +2982,7 @@ CHECK_FSP(fsp,conn); if (!CHECK_WRITE(fsp)) { + END_PROFILE(SMBwrite); return(ERROR_DOS(ERRDOS,ERRbadaccess)); } @@ -3003,7 +3018,13 @@ } else nwritten = write_file(fsp,data,startpos,numtowrite); - sync_file(conn, fsp, False); + status = sync_file(conn, fsp, False); + if (!NT_STATUS_IS_OK(status)) { + END_PROFILE(SMBwrite); + DEBUG(5,(reply_write: sync_file for %s returned %s\n, + fsp-fsp_name, nt_errstr(status) )); + return ERROR_NT(status); + } if(((nwritten == 0) (numtowrite != 0))||(nwritten 0)) { END_PROFILE(SMBwrite); @@ -3040,6 +3061,7 @@ unsigned int smblen = smb_len(inbuf); char *data; BOOL large_writeX = ((CVAL(inbuf,smb_wct) == 14) (smblen 0x)); + NTSTATUS status; START_PROFILE(SMBwriteX); /* If it's an IPC, pass off the pipe handler. */ @@ -3130,7 +3152,13 @@ DEBUG(3,(writeX fnum=%d num=%d wrote=%d\n, fsp-fnum, (int)numtowrite, (int)nwritten)); - sync_file(conn, fsp, write_through); + status = sync_file(conn, fsp, write_through); + if (!NT_STATUS_IS_OK(status)) { + END_PROFILE(SMBwriteX); + DEBUG(5,(reply_write_and_X: sync_file for %s returned %s\n, + fsp-fsp_name, nt_errstr(status) )); + return ERROR_NT(status); + } END_PROFILE(SMBwriteX); return chain_reply(inbuf,outbuf,length,bufsize); @@ -3227,7 +3255,13 @@ if (!fsp) { file_sync_all(conn); } else { - sync_file(conn,fsp, True); + NTSTATUS status = sync_file(conn, fsp, True); + if (!NT_STATUS_IS_OK(status)) { + END_PROFILE(SMBflush); + DEBUG(5,(reply_flush: sync_file for %s returned %s\n, + fsp-fsp_name, nt_errstr(status) )); + return ERROR_NT(status); + } } DEBUG(3,(flush\n)); @@ -5831,6 +5865,7 @@ int smb_doff; char *data; files_struct *fsp = file_fsp(inbuf,smb_vwv0); + NTSTATUS status; START_PROFILE(SMBwriteBmpx); CHECK_FSP(fsp,conn); @@ -5860,7 +5895,13 @@ nwritten = write_file(fsp,data,startpos,numtowrite); - sync_file(conn, fsp, write_through); + status = sync_file(conn, fsp, write_through); + if (!NT_STATUS_IS_OK(status)) { + END_PROFILE(SMBwriteBmpx); + DEBUG(5,(reply_writebmpx: sync_file for %s returned %s\n, + fsp-fsp_name, nt_errstr(status) )); +
[Samba] Samba + Quotas in Ldap
Hello, I want to know if it is possible to have samba working with Ldap quotas. I have googled a lot and cant find how to do it. My samba server is already working with system quotas and authenticating in Ldap. tia, Pedro -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Quotas For XP Client (Homes Shared)
Hiya! I'm using samba as PDC for validating windows xp clients. I have quotas activated for the /home on my linux but the shared unit on windows xp is giving me the full partition size. What i've to do to make it show just the user quota size??? I think i've compiled samba --with-quotas option. Thanks guys! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Quotas For XP Client (Homes Shared)
[EMAIL PROTECTED] wrote: Hiya! I'm using samba as PDC for validating windows xp clients. I have quotas activated for the /home on my linux but the shared unit on windows xp is giving me the full partition size. What i've to do to make it show just the user quota size??? I think i've compiled samba --with-quotas option. Thanks guys! What version of Samba are you using? And what type of filesystem do you have -- ext3, xfs, reiser, etc? With XFS, at least Group Quotas seem to be broken in Samba 3.0.22. I have reported this as a bug and here on the list. Haven't gotten a reply from anybody. Andy Liebman -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] acl quotas
Thanks John for your answer. I installed Debian sarge 3.1 rc1 with kernel 2.6, XFS and quota. This works fine, i didn't have to recompile anyhing. But know i try the ACL. If i understood your message, i have to recompile the kernel, right ? What is EA, i just don't know what it is. Thxs John H Terpstra a écrit : On Tuesday 04 January 2005 01:48, Patrick DUBAU wrote: Hi, i'm about to reinstall samba 3.7 on debian sarge with quota and acl support. What is the best file system to use : ext3 or xfs ? Does i have to compile the kernel for having the quota and acl support ? On 2.4 kernel you need to patch in the best-bits ACLs and EA patches. The 2.6 kernel has them already. It is necessary to activate the ACLs and EA capabilities before building the kernel. Cheers, John T. -- Patrick DUBAU IUFM d'Alsace - Service Informatique : Parfois détruire, souvent construire, toujours Servir 200 avenue de Colmar 67100 STRASBOURG Téléphone: 03.88.40.79.76 -- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] acl quotas
On Wednesday 05 January 2005 03:28, Patrick DUBAU wrote: Thanks John for your answer. I installed Debian sarge 3.1 rc1 with kernel 2.6, XFS and quota. This works fine, i didn't have to recompile anyhing. But know i try the ACL. If i understood your message, i have to recompile the kernel, right ? What is EA, i just don't know what it is. Thxs John H Terpstra a écrit : On Tuesday 04 January 2005 01:48, Patrick DUBAU wrote: Hi, i'm about to reinstall samba 3.7 on debian sarge with quota and acl support. What is the best file system to use : ext3 or xfs ? Does i have to compile the kernel for having the quota and acl support ? On 2.4 kernel you need to patch in the best-bits ACLs and EA patches. The 2.6 kernel has them already. It is necessary to activate the ACLs and EA capabilities before building the kernel. EA is extended attributes. Samba maps Windows 2000 ACLs to a combination of POSIX ACLs and EAs. - John T. -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] acl quotas
Hi, i'm about to reinstall samba 3.7 on debian sarge with quota and acl support. What is the best file system to use : ext3 or xfs ? Does i have to compile the kernel for having the quota and acl support ? Thanks -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] acl quotas
On Tuesday 04 January 2005 01:48, Patrick DUBAU wrote: Hi, i'm about to reinstall samba 3.7 on debian sarge with quota and acl support. What is the best file system to use : ext3 or xfs ? Does i have to compile the kernel for having the quota and acl support ? On 2.4 kernel you need to patch in the best-bits ACLs and EA patches. The 2.6 kernel has them already. It is necessary to activate the ACLs and EA capabilities before building the kernel. Cheers, John T. -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba quotas
Thanks the dfree solution calling a perl script works for us. I am concerned that there may be performance issues with this however. We are considering something like a spamc/spamd type solution where a perl daemon that always runs that listens for a connection from a lightweight c program (which can be referenced from smb.conf). I am sure there are better solutions than this too, but a solution that we can implement quickly is always good :) Rohit Tilo Lutz wrote: Hi Hi guys, we need to update our samba service from 2.2.8a to samba 3.0.x (so that we can upgrade our AD from Win2k to Win2k3). The problem I am having is with the quotas. I was never able to use the quota functions of samba. I use Suse 8.2 with Samba 3.0.3 and XFS. Even the latest samba version doesn't recognize quotas correctly. For me quota code is broken since beginning in samba. To get them displayed I use a dirty hack. In smb.conf I've added the following line: dfree command = /etc/script.sh %U script.sh: #!/bin/sh used_space=`/usr/bin/quota -u $1 | tail -1 | awk '{print $2}'` quota_space=`/usr/bin/quota -u $1 | tail -1 | awk '{print $4}'` used_files=`/usr/bin/quota -u $1 | tail -1 | awk '{print $5}'` quota_files=`/usr/bin/quota -u $1 | tail -1 | awk '{print $7}'` if [ $used_files == $quota_files ]; then used_space=$quota_space fi free_space=`expr $quota_space - $used_space` echo $quota_space $free_space Tilo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba quotas
Hi Hi guys, we need to update our samba service from 2.2.8a to samba 3.0.x (so that we can upgrade our AD from Win2k to Win2k3). The problem I am having is with the quotas. I was never able to use the quota functions of samba. I use Suse 8.2 with Samba 3.0.3 and XFS. Even the latest samba version doesn't recognize quotas correctly. For me quota code is broken since beginning in samba. To get them displayed I use a dirty hack. In smb.conf I've added the following line: dfree command = /etc/script.sh %U script.sh: #!/bin/sh used_space=`/usr/bin/quota -u $1 | tail -1 | awk '{print $2}'` quota_space=`/usr/bin/quota -u $1 | tail -1 | awk '{print $4}'` used_files=`/usr/bin/quota -u $1 | tail -1 | awk '{print $5}'` quota_files=`/usr/bin/quota -u $1 | tail -1 | awk '{print $7}'` if [ $used_files == $quota_files ]; then used_space=$quota_space fi free_space=`expr $quota_space - $used_space` echo $quota_space $free_space Tilo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba quotas
Hi guys, we need to update our samba service from 2.2.8a to samba 3.0.x (so that we can upgrade our AD from Win2k to Win2k3). The problem I am having is with the quotas. We mount user home directories NFS and then export them to Windows users via samba. In 2.2.8a I was able to get quotas working. However with samba 3.0.x, I cannot. I compiled --with-quotas. Now when a user uses a 3.0 share, they see the space available on the whole disk, and when they save large files that push them over their hard limit, they can lose data. Does anyone know if there is a solution for us? PS: Our samba server is a Debian Woody Linux box with quota package installed. The command quota -v username works as expected. Many thanks, Rohit -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba and quotas
Hi I encountered the SMBCQUOTAS command but my samba packets are not source (Fedora packets), Consequently is not possible --with-quotas (or is possible?) Exists any script to set disk quotas when to add new users from user manager for domains -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba quotas
I've compiled Samba (2.2.5) on Linux with quotas and they work. But Windows users don't receive warning messages when they over quota. I've tested Samba with Windows Explorer and FAR (file manager written by Eugene Roshal). When user have 100 MB free on his homedir and try to copy file 200 MB with Explorer, Samba allow it him! Actually this file (200 MB) is damaged. When user create file by any application (for example MS Word) and then try to save it, he receive warning message (Insufficient disk space). When user use FAR and try to copy file, he receive warning message (Insufficient disk space). I've found option strict allocate in smb.conf. It's NO by default. When I've changed it to YES Samba's behaviour has been changed. When user try to copy file 200 MB with Explorer, he receive warning message (Insufficient disk space). When user use FAR and try to copy file, Samba allow it him! Actually this file (200 MB) is damaged. When user create file and then try to save it, he don't receive warning message and this file (200 MB) is damaged. I think this behaviour of Samba is incorrect. What's wrong and how to fix this problem? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] --with-quotas ??
ok, so how are they used ? - Original Message - From: Ryan Novosielski [EMAIL PROTECTED] To: Samba Mailing List [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 1:53 AM Subject: Re: [Samba] --with-quotas ?? You don't do anything -- in fact, quotas are always enforced (with or without with-quota) because the FS keeps track. The quota support, however, provides windows clients with the quota info so it isn't a surprise when a user has run out of quota and the machine gives the proper status info. _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Tue, 17 Jun 2003, d.kavadas wrote: ok, stupid question time how does one use quotas and samba, i haven't seen anything mentioned in any man page re quote support. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] --with-quotas ??
ok, stupid question time how does one use quotas and samba, i haven't seen anything mentioned in any man page re quote support. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] --with-quotas ??
You don't do anything -- in fact, quotas are always enforced (with or without with-quota) because the FS keeps track. The quota support, however, provides windows clients with the quota info so it isn't a surprise when a user has run out of quota and the machine gives the proper status info. _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Tue, 17 Jun 2003, d.kavadas wrote: ok, stupid question time how does one use quotas and samba, i haven't seen anything mentioned in any man page re quote support. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Samba and quotas
I'm using Samba 2.2.7 + XFS (1.1) + ACL + quotas on a Linux machine with kernel 2.4.18. What I want to ask you - is Samba's quota support reliable enough so I can use it at commercial environment ? (I'm asking because of experimental flag at --with-quota in Samba .configure file) Quotas are a property of the underlying fs. I use reiserfs and it works for me. When a group or user remains exceeds soft limit longer than the grace period then at a point they/he/she/it can't allocate more space getting instead the error that there is no space left on the device. Which is a little misleading. You have to inform your users to interpret it in the context of available space on the volume. If the space is still there, then it was the quota that was exceeded. I included a little modification in swat to list all quotas with usage and grace periods remaining under Status, ahead of all other stati. And I also put a little icon on the desktop labelled Quotas which lists the same thing in a DOS box. The tab-aligend repquota report is a bit too messy so I have a little awk formatter to align the columns. I'll post it if it's necessary. _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba and quotas
Hello, I'm using Samba 2.2.7 + XFS (1.1) + ACL + quotas on a Linux machine with kernel 2.4.18. What I want to ask you - is Samba's quota support reliable enough so I can use it at commercial environment ? (I'm asking because of experimental flag at --with-quota in Samba .configure file) Thanks in advance for any post Dan -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba quotas (one more)
Hello again (I hope it's not too much to have two questions in one day :), Currently I'm testing quota support on Linux system with kernel 2.4.18 + XFS 1.1 patch + Samba 2.2.7 (--with-quota compiled) and I went into one really unpleasant problem when accesing Samba share from Windows 2000 SP3 with Total commander 5.5. When user reach soft limit, then he'll get a warning message Low space, do you want to continue ?. Copy can be forced and up to this moment everything is ok. But at moment when trying to copy a file which will cause to overreach hard quota limit, then happens this: - warning message is displayed but user is allowed to enforce copy. - Windows then displays error message windows with (translated): Delayed write failed ... Data were lost - Destination file has same size as source, but content is different! - Any further copy try will fail with message Write protected ... So where is the problem? Is it bug in Samba (quota support is in .configure file announced as experimental), XFS quota support, or in Total commander (since same action made with Windows Explorer is ok, copy over hard limit is denied). In case you think it's not a bug (or some kind of misconfiguration), does other OS's /filesystems behave the same way ? Thanks a lot in advance for any answer, Dan -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba quotas (one more)
The problem is with Windows doing delayed writes. Windows before it writes anything, it sets the file properties. Setting the file properties always succeeds. So even though the file copy is unsuccessful, file size is shown correctly. You can use smb.conf variable strict allocate = yes to prevent these kinds of problems. However, it has some performance impact. Try with the above variable turned on and see if you still experience the problem. - Ranjit HP CIFS Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Bar Sent: Tuesday, February 04, 2003 3:56 PM To: [EMAIL PROTECTED] Subject: [Samba] Samba quotas (one more) Hello again (I hope it's not too much to have two questions in one day :), Currently I'm testing quota support on Linux system with kernel 2.4.18 + XFS 1.1 patch + Samba 2.2.7 (--with-quota compiled) and I went into one really unpleasant problem when accesing Samba share from Windows 2000 SP3 with Total commander 5.5. When user reach soft limit, then he'll get a warning message Low space, do you want to continue ?. Copy can be forced and up to this moment everything is ok. But at moment when trying to copy a file which will cause to overreach hard quota limit, then happens this: - warning message is displayed but user is allowed to enforce copy. - Windows then displays error message windows with (translated): Delayed write failed ... Data were lost - Destination file has same size as source, but content is different! - Any further copy try will fail with message Write protected ... So where is the problem? Is it bug in Samba (quota support is in .configure file announced as experimental), XFS quota support, or in Total commander (since same action made with Windows Explorer is ok, copy over hard limit is denied). In case you think it's not a bug (or some kind of misconfiguration), does other OS's /filesystems behave the same way ? Thanks a lot in advance for any answer, Dan -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba-3.0alpha21 - quotas on recent glibc breaks build
I get the following error building samba-3.0alpha21 on Mandrake cooker: Error: Compiling smbd/quotas.c smbd/quotas.c: In function `get_smb_linux_vfs_quota': smbd/quotas.c:115: storage size of `D' isn't known [buchan@klama buchan]$ rpm -q --whatprovides kernel-headers glibc-devel-2.3.1-6mdk [buchan@klama buchan]$ uname -a Linux klama.mandrake.org 2.4.19-16mdkenterprise #1 SMP Fri Sep 20 17:34:59 CEST 2002 i686 unknown unknown GNU/Linux [buchan@klama buchan]$ gcc -v Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.1/specs Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.2.1 (Mandrake Linux 9.1 3.2.1-2mdk) Any ideas? As far as I know, samba-2.2.7a (with quota support) still builds fine on this setup. Regards, Buchan -- |--Another happy Mandrake Club member--| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ENABLING QUOTAS
Le mar 01/10/2002 à 02:56, Servie Platon a écrit : Hi everyone, Is there a way to enable and allocate quota manually on each user's home folder as per on a user to user basis? student2 5 MB /home/student2 If so, what is the syntax for this. Thanks in advance. rpm quota?*.rpm man quota man edquota -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file quotas
I solved the problem. Apparently Linux quotacheck creates new format of quota files. quotacheck -F vfsold did the trick. Yura Pismerov wrote: Hi all, I've compiled samba --with-quotas, turned on user and group quotas on ext3, assigned quotas, BUT it does not seem to be working. Windows client always shows all available space instead of showing the quota. Do I miss something ? P.S. I run Debian with 2.4.19 kernel patched for ext3 ACL support (from acl.bestbits.at). -- Yuri Pismerov, Sr. System Administrator, TUCOWS.COM INC. (416) 535-0123 ext. 1352 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- Yuri Pismerov, Sr. System Administrator, TUCOWS.COM INC. (416) 535-0123 ext. 1352 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] ENABLING QUOTAS
Hi everyone, Is there a way to enable and allocate quota manually on each user's home folder as per on a user to user basis? For example: UserAllocated Quotapath rector20 MB/home/rectorprincipal20 MB/home/principal teacher110 MB/home/teacher1teacher210 MB/home/teacher2 student1 5 MB/home/student1student2 5 MB/home/student2 If so, what is the syntax for this. Thanksin advance. ServieDo you Yahoo!? New DSL Internet Access from SBC & Yahoo!
Re: [Samba] with-quotas
If a user is authenticated through a windows DC /that user does not have a UNIX account how to assign quotas to a particular user if the underlying file system has quotas enabled? Please help -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba and Quotas
Hello I have 2 problems with samba. First, is it possible to make quotas work on Smaba shares? If yes, where can i found a How-to or something else ? thanks for help Marco -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Does Samba do Quotas
Does Samba do Quotas? Regards Tony Wood ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager ([EMAIL PROTECTED]) www.bma.org.uk ** -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Does Samba do Quotas
yes, compile samba --with-quotas and make sure your kernel supports quota [EMAIL PROTECTED] wrote: Does Samba do Quotas? Regards Tony Wood ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager ([EMAIL PROTECTED]) www.bma.org.uk ** -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba