From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 17:22:54 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36971366 for ; Thu, 9 Oct 2014 17:22:54 +0000 (UTC) Received: from forward20.mail.yandex.net (forward20.mail.yandex.net [IPv6:2a02:6b8:0:1402::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E078FE2F for ; Thu, 9 Oct 2014 17:22:53 +0000 (UTC) Received: from web14g.yandex.ru (web14g.yandex.ru [95.108.252.114]) by forward20.mail.yandex.net (Yandex) with ESMTP id 923751041128 for ; Thu, 9 Oct 2014 21:22:41 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web14g.yandex.ru (Yandex) with ESMTP id 29F90BC0688; Thu, 9 Oct 2014 21:22:41 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1412875361; bh=rhVSCmHrIDWIZVrKONrcZmP/yGw2Q5TOa2EH3P8A53o=; h=From:To:Subject:Date; b=sCQ1plkh74XJUGaetVT8a6XXIs74YInaUYTbAv3Ig76QdbR0g3s+6RwCKk4fD+FdP FV4w0dMc2bcJ3F8/da8yBVpcCS8W/t5sM/LDgo6/CBnnYTsYqatEpz+trO6klT/5xR RUILoWRteCE010WqrsgrlVjF332sqfEnTdZSPn1k= Received: from tsn46-166-168-245.dyn.nltelcom.net (tsn46-166-168-245.dyn.nltelcom.net [46.166.186.245]) by web14g.yandex.ru with HTTP; Thu, 09 Oct 2014 21:22:40 +0400 From: Martin To: freebsd-questions@freebsd.org Subject: Mounting samba, some files are invisible MIME-Version: 1.0 Message-Id: <214461412875360@web14g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 09 Oct 2014 19:22:40 +0200 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2014 17:22:54 -0000 I am faced with the strangest problem. I have a Linux box that serves samba. On the box all samba users belongs to "users" group and all files contain the same properties. Everyone in the group has full read and write access. When I mount the share from Linux or Windows using the same account all is well, but when I mount the same share using FreeBSD, only about half of the files are visible. I don't mean they are hidden and all "map" properties are off. When I do a "ls -l" only half of the files show up. If I do a full path ls, because I KNOW the file is there, ie.: ls -l /mnt/share/foo.pdf Then I can see it, but if I only do a: ls -l /mnt/share/ It doesn't show up. I have been scratching my head for two days trying to figure out what in the world is going on. I tried viewing the share with a GUI filemanger from the same FreeBSD box, and then MORE files show up, but still not all of them. I am pretty confident this isn't a file permission problem because the problem persists even with a setting of 777. When I do a "ls -ln" to get the uid and gid of the files, on the Linux box, all files contains the same uid and gid, which is the uid of the "users" group. I am running FreeBSD 10.1-RC1 with "samba36-smbclient-3.6.24" and I am mounting with: mount -t smbfs //user@foo-box/share /mnt/share In smb.conf on Linux I have: [global] workgroup = WORKGROUP server string = %h server dns proxy = no interfaces = 127.0.0.0/8 eth0 bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 strict sync = no sync always = no printable = no printing = bsd printcap name = /dev/null [pub1] path=/share browseable = yes writeable = yes valid users = foo admin users = foo create mask = 0775 directory mask = 0775 Why can the file manager GUI see more files than "ls"? And why in the world can't they both see all the files? Where do I go from here? How do I determine if this is a "mount_smbfs" bug, a samba bug, or something else? Kind regards Martin