[Samba] samba does not display all directories

Combernous, Fabien Fabien.Combernous at apx-integration.fr
Fri Mar 29 07:22:11 MDT 2013


Hello all,

A solaris server named bellow solarisserver share via samba (Samba 3.0.13) with network.

Bellow an extract from the smb.conf file.

[global]
        workgroup = WORKGROUP
        server string = solarisserver
        security = SERVER
        password server = passwordserver
        username map = /C/netlocal/samba/lib/users.map
        log level = 1
        log file = /var/log/samba/byHost/log.%I
        deadtime = 15
        load printers = No
        preferred master = No
        local master = No
        domain master = No
        ldap ssl = no
        default service = cmn$
        NIS homedir = Yes
        follow symlinks = No

[cmn$]
        path = /topsys/cmn/%S
        read only = No

Directly on the solarisserver with the smbclient tool , or on the windows desktop same result :

In the directory CLST.WRH, the existing directory CGND.WRH is not displayed.

[root] solarisserver # smbclient -U myuser //solarisserver/mfd
Password:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.13]
smb: \> cd TREATMENT.WRH
smb: \TREATMENT.WRH\> cd CLST.WRH
smb: \TREATMENT.WRH\CLST.WRH\> ls
  .                                   D       0  Thu Apr 18 11:46:38 2002
  ..                                  D       0  Mon Jun  4 16:36:46 2012
  CFLT.WRH                            D       0  Thu Apr 25 11:20:56 2002

                33649 blocks of size 131072. 4148 blocks available

With tcpdump i can see that the solarisserver does not give information to the smbclient about  the directory CGND.WRH. So the client can't display it. And the issue should be on the server.

But it is possible to access to this "hiddend" directory :

smb: \TREATMENT.WRH\CLST.WRH\> cd CGND.WRH
smb: \TREATMENT.WRH\CLST.WRH\CGND.WRH\> ls
  .                                   D       0  Mon Sep 15 10:16:13 2003
  ..                                  D       0  Thu Apr 18 11:46:38 2002
  TOO81.WRH                           D       0  Tue Oct 21 17:55:42 2008
  PRE81.WRH                           D       0  Tue Jun  3 17:38:34 2003
  POST81.WRH                          D       0  Wed Jan 16 14:54:28 2013
  8199100_002                               384  Mon Sep 22 09:57:20 2003
  8199100_001                               470  Mon Jul 22 09:35:03 2002

                33649 blocks of size 131072. 4148 blocks available
smb: \TREATMENT.WRH\CLST.WRH\CGND.WRH\>

If i create the directory \TREATMENT.WRH\CLST.WRH\CGND.WRH.foo, then the directory \TREATMENT.WRH\CLST.WRH\CGND.WRH is displayed by the smb client.

No special options like in [1] are used .
[1] http://oreilly.com/openbook/samba/book/ch05_02.html

The charset are the same for the two directories :
/mnt/TREATMENT.WRH/CLST.WRH$ file -i CGND.WRH/
CGND.WRH/: inode/directory; charset=binary
/mnt/TREATMENT.WRH/CLST.WRH$ file -i CFLT.WRH/
CFLT.WRH/: inode/directory; charset=binary
/mnt/TREATMENT.WRH/CLST.WRH$ file -i CFLT.WRH/*
CFLT.WRH/8299100_001: text/plain; charset=us-ascii
CFLT.WRH/FLT82.WRH:   inode/directory; charset=binary
/mnt/TREATMENT.WRH/CLST.WRH$ file -i CGND.WRH/*
CGND.WRH/8199100_001: text/plain; charset=us-ascii
CGND.WRH/8199100_002: text/plain; charset=us-ascii
CGND.WRH/POST81.WRH:  inode/directory; charset=binary
CGND.WRH/PRE81.WRH:   inode/directory; charset=binary
CGND.WRH/TOO81.WRH:   inode/directory; charset=binary

I'm stuck. Help is greatly appreciated.

Regards,

--
Fabien COMBERNOUS
Expert OpenSource
APX Intégration
Tel : 06.50.38.55.42

Avant d'imprimer ce message, pensez à la protection de notre environnement.



More information about the samba mailing list