[Samba] CIFS mount problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, We have `some` problems related to the samba daemon, or possibly with the Linux kernel CIFS filesystem. We have 2 server (for this example): - - Storage Server, running Samba 3.0.28a on Ubuntu Linux (Samba version 3.0.28a-1ubuntu4.4) with ldap authentication. - - Client, running Linux 2.6.24 as a XEN domU. This server mounts on demand user home directory's from the Storage Server (via pam_mount) Initially the mounts work normally but at some point all get disconnected, see below for an example. Eg. 1. The Client Kernel Version: [EMAIL PROTECTED]:~# uname -a Linux blue.info.uvt.ro 2.6.24-19-xen #1 SMP Sat Jul 12 00:15:59 UTC 2008 x86_64 GNU/Linux Mount information: [EMAIL PROTECTED]:~# cat /proc/mounts | grep cifs //10.9.0.11/neagul /users/legacy/Pro03/neagul cifs rw,mand,relatime,unc=\\10.9.0.11\neagul,username=neagul,domain=TERRA,uid=12212,posixpaths,rsize=16384,wsize=57344 0 0 //10.9.0.11/gligor /users/legacy/math/gligor cifs rw,mand,relatime,unc=\\10.9.0.11\gligor,username=gligor,domain=TERRA,uid=42023,posixpaths,rsize=16384,wsize=57344 0 0 Test case: [EMAIL PROTECTED]:~# ls /users/legacy/Pro03/neagul ls: cannot access /users/legacy/Pro03/neagul: Input/output error [EMAIL PROTECTED]:~# ls /users/legacy/math/gligor ls: cannot access /users/legacy/math/gligor: Input/output error CIFS DebugData: [EMAIL PROTECTED]:~# cat /proc/fs/cifs/DebugData Display Internal CIFS Data Structures for Debugging --- CIFS Version 1.52 Active VFS Requests: 0 Servers: 1) Name: 10.9.0.11 Domain: TERRA Mounts: 1 OS: Unix NOS: Samba 3.0.28a Capability: 0x80f3fd SMB session status: 2 2) Name: 10.9.0.11 Domain: TERRA Mounts: 1 OS: Unix NOS: Samba 3.0.28a Capability: 0x80f3fd SMB session status: 2 Shares: 1) \\10.9.0.11\gligor Uses: 1 Type: NTFS DevInfo: 0x0 Attributes: 0x2f PathComponentMax: 255 Status: 1 type: 0 2) \\10.9.0.11\neagul Uses: 1 Type: NTFS DevInfo: 0x0 Attributes: 0x2f PathComponentMax: 255 Status: 1 type: 0 dmesg information: [EMAIL PROTECTED]:~# dmesg | tail -11 [31033.555969] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/cifssmb.c: In QPathInfo (Unix) the path [31033.555972] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: error on getting revalidate info -5 [31033.555974] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: cifs_revalidate - inode unchanged [31033.555977] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 910) rc = -5 [31332.152628] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 911 with uid: 0 [31332.152635] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: Revalidate: inode 0x88001b812cb8 count 1 dentry: 0x88001b817560 d_time 0 jiffies 4302758578 [31332.152638] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: Getting info on [31332.152641] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/cifssmb.c: In QPathInfo (Unix) the path [31332.152643] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: error on getting revalidate info -5 [31332.152645] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: cifs_revalidate - inode unchanged [31332.152649] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 911) rc = -5 2. On the server side: smb.conf [global] idmap uid = 4-5 add user script = /usr/sbin/smbldap-useradd -m %u delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g ldap group suffix = ou=Groups hosts allow = 10.5.0., 10.5.1., 10.9.0. client NTLMv2 auth = Yes add machine script = /usr/sbin/smbldap-useradd -w %u domain logons = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon path = netbios name = BLUE ldap suffix = dc=info,dc=uvt,dc=ro auth methods = guest, sam utmp = Yes bind interfaces only = Yes preferred master = Yes set primary group script = /usr/sbin/smbldap-usermod -g %g %u idmap gid = 4-5 ldapsam:editposix = yes ldap idmap suffix = ou=Idmap passdb backend = ldapsam:ldap://xxx.xxx.xxx.ro/ workgroup = TERRA interfaces = eth0.30, eth0.31, eth0.18 ldap user suffix = ou=Users ldap admin dn = uid=root,dc=info,dc=uvt,dc=ro hide unreadable = Yes add user to group script = /usr/sbin/smbldap-groupmod -m %u %g ldap passwd sync = Yes add group
Re: [Samba] CIFS mount problems
on /.pam_environment [34873.023583] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/cifssmb.c: In QPathInfo (Unix) the path /.pam_environment [34873.023585] CIFS VFS: Error 0xfffb on cifs_get_inode_info in lookup of /.pam_environment [34873.023590] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/dir.c: CIFS VFS: leaving cifs_lookup (xid = 932) rc = -5 Marian Neagul wrote: Hello, We have `some` problems related to the samba daemon, or possibly with the Linux kernel CIFS filesystem. We have 2 server (for this example): - Storage Server, running Samba 3.0.28a on Ubuntu Linux (Samba version 3.0.28a-1ubuntu4.4) with ldap authentication. - Client, running Linux 2.6.24 as a XEN domU. This server mounts on demand user home directory's from the Storage Server (via pam_mount) Initially the mounts work normally but at some point all get disconnected, see below for an example. Eg. 1. The Client Kernel Version: [EMAIL PROTECTED]:~# uname -a Linux blue.info.uvt.ro 2.6.24-19-xen #1 SMP Sat Jul 12 00:15:59 UTC 2008 x86_64 GNU/Linux Mount information: [EMAIL PROTECTED]:~# cat /proc/mounts | grep cifs //10.9.0.11/neagul /users/legacy/Pro03/neagul cifs rw,mand,relatime,unc=\\10.9.0.11\neagul,username=neagul,domain=TERRA,uid=12212,posixpaths,rsize=16384,wsize=57344 0 0 //10.9.0.11/gligor /users/legacy/math/gligor cifs rw,mand,relatime,unc=\\10.9.0.11\gligor,username=gligor,domain=TERRA,uid=42023,posixpaths,rsize=16384,wsize=57344 0 0 Test case: [EMAIL PROTECTED]:~# ls /users/legacy/Pro03/neagul ls: cannot access /users/legacy/Pro03/neagul: Input/output error [EMAIL PROTECTED]:~# ls /users/legacy/math/gligor ls: cannot access /users/legacy/math/gligor: Input/output error CIFS DebugData: [EMAIL PROTECTED]:~# cat /proc/fs/cifs/DebugData Display Internal CIFS Data Structures for Debugging --- CIFS Version 1.52 Active VFS Requests: 0 Servers: 1) Name: 10.9.0.11 Domain: TERRA Mounts: 1 OS: Unix NOS: Samba 3.0.28a Capability: 0x80f3fd SMB session status: 2 2) Name: 10.9.0.11 Domain: TERRA Mounts: 1 OS: Unix NOS: Samba 3.0.28a Capability: 0x80f3fd SMB session status: 2 Shares: 1) \\10.9.0.11\gligor Uses: 1 Type: NTFS DevInfo: 0x0 Attributes: 0x2f PathComponentMax: 255 Status: 1 type: 0 2) \\10.9.0.11\neagul Uses: 1 Type: NTFS DevInfo: 0x0 Attributes: 0x2f PathComponentMax: 255 Status: 1 type: 0 dmesg information: [EMAIL PROTECTED]:~# dmesg | tail -11 [31033.555969] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/cifssmb.c: In QPathInfo (Unix) the path [31033.555972] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: error on getting revalidate info -5 [31033.555974] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: cifs_revalidate - inode unchanged [31033.555977] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 910) rc = -5 [31332.152628] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 911 with uid: 0 [31332.152635] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: Revalidate: inode 0x88001b812cb8 count 1 dentry: 0x88001b817560 d_time 0 jiffies 4302758578 [31332.152638] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: Getting info on [31332.152641] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/cifssmb.c: In QPathInfo (Unix) the path [31332.152643] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: error on getting revalidate info -5 [31332.152645] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: cifs_revalidate - inode unchanged [31332.152649] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 911) rc = -5 2. On the server side: smb.conf [global] idmap uid = 4-5 add user script = /usr/sbin/smbldap-useradd -m %u delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g ldap group suffix = ou=Groups hosts allow = 10.5.0., 10.5.1., 10.9.0. client NTLMv2 auth = Yes add machine script = /usr/sbin/smbldap-useradd -w %u domain logons = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 logon path = netbios name = BLUE ldap suffix = dc=info,dc=uvt,dc=ro auth methods = guest, sam utmp = Yes bind interfaces only = Yes preferred master = Yes set primary group script = /usr/sbin/smbldap-usermod -g %g %u idmap gid = 4-5 ldapsam:editposix = yes ldap idmap
[Samba] Lotus Domino LDAP
Hello, I have a Samba PDC with an OpenLDAP back end and I am curious whether SAMBA support Lotus Domino LDAP server as an backed? Thanks, Marian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Auth Problem
Hello, I have a problem related to user authentication: Users can not login from Windows workstations. I get the following error: The system could not log you in. Make sure your User Name and domain are correct then type your password again. Users can access shares, they are prompted for a user and password and it is ok. The same user and password does not work for login. What could be the problem? I've posted the logs and smb.conf at http://www.info.uvt.ro/~neagul/samba/ I want to mention that the server is a production server and was hit by a hardware failure. :-( I restored everything but it doesn't work. Thank you! Marian Neagul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Home dirs problem
Hello, I have a question about mapping users home directory's to samba. The homedir layout is based on an old one used on NIS+ system. The structure is something like: /users /group1 /user1 /user2 ... /group2 /user3 ... /group3 /group3_1 /user4 ... /group3_2 ... /group4 /user5 How can I configure samba to use this home directory's? The user data is stored in LDAP (including the home directory and other information not related to samba: qmail-ldap, courier, etc) ? The only option I've found is something similar to: path = /home/%U Can samba retrieve the home directory from LDAP? Thank You, Neagul Marian, -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] PDC problem
directory mask = 0775 add machine script = /usr/sbin/smbldap-useradd -w %u add group script = /usr/sbin/smbldap-groupadd -p %g add user to group script = /usr/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g Do you have a sugestion related to this problem? Marian Neagul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba