Bug 5387 - samba shows empty directories
Summary: samba shows empty directories
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.28
Hardware: x86 OpenBSD
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 01:28 UTC by Holger von Rhein
Modified: 2021-01-04 16:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger von Rhein 2008-04-11 01:28:05 UTC
Hi,

I'm not sure if this is a OpenBSD or a Samba problem:

last week I did an new checkout of src and ports of OpenBSD-current, compiled openbsd and the samba package from /usr/ports and installed them:

# sysctl | fgrep -i bsd
kern.ostype=OpenBSD
kern.version=OpenBSD 4.3-current (GENERIC) #0: Thu Apr  3 09:05:35 CEST 2008
kern.emul.bsdos=1
kern.emul.freebsd=0
net.inet6.ip6.kame_version=OpenBSD-current

# pkg_info |fgrep -i samba
samba-3.0.28p0      SMB and CIFS client and server for UNIX

# /usr/local/libexec/smbd --version
Version 3.0.28

But I still cannot browse ext2fs mounted filesystems:

# mount
/dev/wd0a on / type ffs (local)
/dev/wd0d on /home type ffs (local)
/dev/sd0i on /mnt/tmp/HD400LD_i type msdos (local, nodev, noexec, nosuid, read-only, uid=1000, gid=1000, direxec)
/dev/sd0j on /mnt/tmp/HD400LD_j type ext2fs (local, nodev, noexec, nosuid, read-only)

[tmp-ro]
   path = /mnt/tmp
   public = yes
   only guest = yes
   writable = no
   printable = no

If I use smbclient to browse the directories, HD400LD_i works fine, but all directories in HD400LD_j are empty:

$ smbclient //boromir/tmp-ro -N
Domain=[ZUHAUSE] OS=[Unix] Server=[Samba 3.0.28]
Server not using user level security and no password supplied.
smb: \> ls
  .                                   D        0  Tue Apr  8 07:59:24 2008
  ..                                  D        0  Thu Mar  6 12:32:53 2008
  HD400LD_i                           D        0  Tue Jan  1 01:00:00 1980
  HD400LD_j                           D        0  Mon Dec 31 14:54:47 2007

                37551 blocks of size 524288. 28209 blocks available
smb: \> cd HD400LD_j
smb: \HD400LD_j\> ls
  .                                   D        0  Mon Dec 31 14:54:47 2007

                37551 blocks of size 524288. 28209 blocks available
smb: \HD400LD_j\> exit


I _can_ do "cd" to directories in HD400LD_j I know, but even these directories are as empty as their parent.

Using a command-shell/console all directories are browsable and not empty.


Regards
Holger
Comment 1 Björn Jacke 2021-01-04 16:05:33 UTC
Can't test this - if this is *still* an issue with recent OpenBSD and recent Samba releases, please reopen this bug and provide smbd level 10 log files, where existing files are not being listed.