[Samba] Solaris 10 Samba share will not show all directories

Gaiseric Vandal gaiseric.vandal at gmail.com
Wed Apr 25 10:48:22 MDT 2012


My mistake-

I thought you were having problems browsing to the shares.  Instead your
problem is with in directories in the share.  If you add a new folder,
can you see it?

Are you using zfs on this system?   The "ls -lvd foldername" or "ls -lVd
foldername"  commands in Solaris  should show you all the detailed zfs
file perms.  ("ls -ld" will not.)   If this is a UFS file system the
getfacl command should help.

This may be an issue where you don't have the rights to see the
directory even tho you have the rights to see the contents of the
directory or traverse the directory.    I have found that the behavior
of ZFS ACL's may be unexpected when accessing from windows clients via
samba.    For example -  a simple 770 setting in Solaris (i.e. allow the
owner and group full access even if the rest of the world is denied)
sometimes ends up adding an ACL entry that windows treats as  "deny
everyone if if they are the owner or group.)






On 04/25/12 12:30, Jerome Yanga wrote:
> Here are the ouputs of the commands you have provided.
>
> net view \\shareserver
>
> folder1                  Disk           folder1 share
> folder2                  Disk           folder2 share
>
> "net view \\server_ip_address" shows the same as above.
>
> When you said "Can you rename and let it regenerate", did you mean
> rename the samba server?
>
> Regards,
> j
>
> On Wed, Apr 25, 2012 at 7:51 AM, Gaiseric Vandal
> <gaiseric.vandal at gmail.com> wrote:
>> What does
>>    "net view \\servername" from the Windows command line shows?
>>
>> how about
>>
>>    "net view \\server_ip_address" from the Windows command line shows?
>>
>>
>> It sounds like the browser database on the master browser is corrupt.
>> Can you rename and let it regenerate?
>>
>>
>> On 04/25/12 10:45, Jerome Yanga wrote:
>>> Pavel,
>>>
>>> It does not seem like there was a solution to your Bugzilla.  Did you
>>> ever figure out how to fix it?
>>>
>>> Regards,
>>> j
>>>
>>> On Tue, Apr 24, 2012 at 9:37 PM, Pavel Plesov <pavel.plesov at gmail.com> wrote:
>>>> Hello,
>>>>
>>>> I faced a similar issue on FreeBSD several years ago due crash of smbd
>>>> process. Crash led to the incomplete directory listings.
>>>>
>>>> If it will help somehow - https://bugzilla.samba.org/show_bug.cgi?id=4715
>>>>
>>>> On Wed, Apr 25, 2012 at 04:09, Jerome Yanga <jerome.yanga at gmail.com> wrote:
>>>>> My Solaris 10 Samba share will not show all the directories.
>>>>>
>>>>> Config:
>>>>>
>>>>> [global]
>>>>>        workgroup = domain1
>>>>>        netbios aliases = shareserver
>>>>>        server string = ESRI Samba Server
>>>>>        security = DOMAIN
>>>>>        password server = dc1.samba.com, *
>>>>>        username map = /etc/samba/user_map
>>>>>        log level = 1
>>>>>        syslog = 2
>>>>>        log file = /var/samba/log/samba.log
>>>>>        max log size = 50000
>>>>>        deadtime = 5
>>>>>        max smbd processes = 300
>>>>>        socket options = SO_RCVBUF=32767 SO_SNDBUF=32767 TCP_NODELAY
>>>>> IPTOS_LOWDELAY IPTOS_THROUGHPUT
>>>>>        load printers = No
>>>>>        printcap name = /dev/null
>>>>>        os level = 1
>>>>>        local master = No
>>>>>        browse list = No
>>>>>        wins server = 10.50.1.1
>>>>>        host msdfs = No
>>>>>        oplocks = No
>>>>>        level2 oplocks = No
>>>>>
>>>>> [folder1]
>>>>>        path = /net/server1/folder1
>>>>>        read only = No
>>>>>        guest ok = Yes
>>>>>
>>>>> [folder2]
>>>>>        path = /net/server1/folder2
>>>>>        read only = No
>>>>>        guest ok = Yes
>>>>>
>>>>> When list all the files on the nfs shares, I see the following:
>>>>> /net/server1/folder1:
>>>>> total 17
>>>>> drwxrwxrwx   3 root     root         102 Apr 24 16:35 .
>>>>> dr-xr-xr-x   3 root     root           3 Apr 24 16:46 ..
>>>>> drwxr-xr-x   5 user1     root         170 Apr 24 16:34 folder11
>>>>>
>>>>> /net/server1/folder2:
>>>>> total 33
>>>>> drwxrwxrwx   5 root     root         170 Apr  3 15:06 .
>>>>> dr-xr-xr-x   3 root     root           3 Apr 24 16:46 ..
>>>>> drwxr-xr-x   3 user1     root         102 Apr  3 14:53 folder21
>>>>> drwxr-xr-x   3 user1     root         102 Apr  3 15:06 folder22
>>>>> drwxr-xr-x   9 user1     root         306 Apr 18 15:48 folder23
>>>>>
>>>>> When I try to access \\shareserver\folder2\ via Windows, I only see
>>>>> folder21.  However, I can access the other two folders by typing the
>>>>> following in the address bar.
>>>>>
>>>>> \\shareserver\folder2\folder22
>>>>> \\shareserver\folder2\folder23
>>>>>
>>>>> Help.
>>>>>
>>>>> Regards,
>>>>> j
>>>>> --
>>>>> To unsubscribe from this list go to the following URL and read the
>>>>> instructions:  https://lists.samba.org/mailman/options/samba
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list