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

Gaiseric Vandal gaiseric.vandal at gmail.com
Wed Apr 25 12:50:53 MDT 2012


Presumably neither the solaris server nor the Mac OSX machine  is the
PDC.   Does the Mac OSX have the ability to just share the folder
directly as a samba share?    I had a quick look at my OS X Snow Leopard
book -  it should be an option.

Or how about if you do an explicit NFS mount on the solaris server,
instead of using autofs (i.e the /net ) mount?      I am guessing that
by default nfs v3 is being used. 

What happens if you create the directories directly on server1 or
shareserver (via unix commandline.)     Do you have any problems with
samba shares that are not NFS remounts?

Are the unix uids and gids consistent between the two servers?    What
are the displayed permissions on folder21, folder22 , aaaa etc? 




On 04/25/12 13:17, Jerome Yanga wrote:
> I tried creating a folder using a windows desktop.  I can see the new
> folder on the share.  However, after refreshing or pressing F5, the
> folder disappeared.  I created more test folders and found out that
> the share will only show the first folder in the share when sorted
> alphanumerically.  For example, if I create the following folders, the
> share will only show folder aaa.
>
> aaa
> bbb
> ccc
>
> Logging into server1, the new folders are all there.
>
> The source server uses Apple_HFS.  Here is the setup I have.
>
> OSX NFS share (server1) --->  Solaris Samba share (shareserver) --->
> windows clients
>
> shareserver can see all the directories/files in the server1 NFS share.
>
> When I run the command you have requested, here is what I get.
>
> # ls -lvd /net/server1/folder2
> dr-xr-xr-x   1 root     root           1 Apr 25 09:59 /net/server1/folder2
>      0:user::r-x
>      1:group::r-x               #effective:r-x
>      2:mask:rwx
>      3:other:r-x
>
> Regards,
> j
>
> On Wed, Apr 25, 2012 at 9:48 AM, Gaiseric Vandal
> <gaiseric.vandal at gmail.com> wrote:
>> 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
>> --
>> 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