Author Topic: Weird fileserver issue  (Read 2181 times)

robb

  • Guest
Weird fileserver issue
« on: August 20, 2014, 09:49:43 pm »
I have a Zentyal 3.2 server with the latest updates.
The server acts as Domain Controller, Gateway and File and Printserver.

I have created a share and can access that share through smb protocol with both linux (ubuntu 14.04 x64) and windows (windows XP) clients.

one of the directories inside the share has several subdirectories and files in it. The weird thing occurs that with the windows XP client I can see all files and directories, but with the linux client only a very limited part of the directories and files.

I checked all the file permissions and they are all the same for every directory!

This evening I also checked with another Ubuntu client from another location. I VPN-ed in and connected to the samba share. The same thing occurs: only a limited amount of directories and files are visible in Nautilus. However, when I check using terminal and SSH directly into the server I can see all files and directories with the ubuntu clients.

How can I troubleshoot this?

Zei

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 213
  • Karma: +18/-0
    • View Profile
Re: Weird fileserver issue
« Reply #1 on: August 21, 2014, 01:04:19 pm »
Hello robb,

did you try by checking the ACLs on the server side with the command "getfacl"? Also, I recommend you to directly test on the server side the command "smbclient" and check if you can browse the shared folders.

Regards!

robb

  • Guest
Re: Weird fileserver issue
« Reply #2 on: August 21, 2014, 03:04:43 pm »
Thanks Zei for the reply.

I am not that skilled with ACL's but when I do a getfacl <shareddirectory> I get the following response:
Quote
rob@bhs001:/home$ sudo getfacl /home/samba/shares/documenten/
getfacl: Removing leading '/' from absolute path names
# file: home/samba/shares/documenten/
# owner: root
# group: Administrators
# flags: -s-
user::rwx
user:root:rwx
user:sync:rwx
user:3000000:rwx
user:3000002:rwx
group::rwx
group:adm:rwx
group:Administrators:rwx
group:3000002:rwx
group:documenten:rwx
mask::rwx
other::---
default:user::rwx
default:user:root:rwx
default:user:sync:rwx
default:user:3000000:rwx
default:user:3000002:rwx
default:group::---
default:group:adm:rwx
default:group:Administrators:rwx
default:group:3000002:rwx
default:group:documenten:rwx
default:mask::rwx
default:other::---

An ls -l gives me this:
Quote
rob@bhs001:/home/samba/shares$ ls -l
total 8
drwxrws---+ 14 root Administrators 4096 Aug 20 15:39 documenten

All users that should have access to the share are in group 'documenten'

From the terminal on the server (SSH into the server via VPN) I connected to smb with smbclient command. It gave me this response:
When cd-ing into another directory I get an error that I highlighted. Might this be causing the strange behaviour? And how to fix this?

Quote
rob@bhs001:/home/samba/shares$ smbclient //bhs001/documenten -U rob
Enter rob's password:
Domain=[CASIMIR] OS=[Unix] Server=[Samba 4.1.10]
smb: \> ls
  .                                   D        0  Wed Aug 20 15:39:33 2014
  ..                                  D        0  Wed Aug 20 16:15:48 2014
  Systeembeheer                       D        0  Tue Jun 17 11:48:11 2014
  Senegal_berichten_MarLodj2007       D        0  Thu Aug 21 08:31:04 2014
  PUBLIC                              D        0  Tue Jun 17 12:29:08 2014
  ICT                                 D        0  Fri May 23 11:22:15 2014
  Data                                D        0  Thu Aug 21 13:26:53 2014
  test                                D        0  Wed Aug 20 15:46:09 2014
  Bonhomme                            D        0  Fri May 23 09:54:50 2014
  HBP-Beheer                          D        0  Thu May 22 12:17:41 2014
  Boekhouding                         D        0  Thu May 22 12:47:23 2014
  RecycleBin                          D        0  Thu Aug 21 08:31:19 2014
  Senegal                             D        0  Thu Aug 21 08:30:30 2014
  Administratie                       D        0  Tue Jun 17 12:34:22 2014

      58665 blocks of size 16777216. 54100 blocks available
smb: \> cd Senegal_berichten_MarLodj2007\
smb: \Senegal_berichten_MarLodj2007\> ls
cli_list: Error: unable to parse name from info level 260
  .                                   D        0  Thu Aug 21 08:31:04 2014
  ..                                  D        0  Wed Aug 20 15:39:33 2014
  planing_for_the_roof,_tegels_and_methalic_menuserie.zip      N      568  Tue Jun 17 11:52:29 2014
  Mondiaal Centrum 2012               D        0  Wed Aug 20 14:16:18 2014

      58665 blocks of size 16777216. 54100 blocks available
smb: \Senegal_berichten_MarLodj2007\>
Any suggestions?
« Last Edit: August 21, 2014, 03:21:48 pm by robb »

Zei

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 213
  • Karma: +18/-0
    • View Profile
Re: Weird fileserver issue
« Reply #3 on: August 21, 2014, 06:00:29 pm »
Hello robb,

the acls seems to be ok. Can you check by changing the file name "planing_for_the_roof,_tegels_and_methalic_menuserie.zip" to something like planingroof.zip (for example) and test it again?

Regards


robb

  • Guest
Re: Weird fileserver issue
« Reply #4 on: August 21, 2014, 06:13:13 pm »
Just for the sake of being complete, here the ls -l when I just SSH into that directory:
Quote
rob@bhs001:/home/samba/shares/documenten/Senegal_berichten_MarLodj2007$ ls -l
total 444
drwxrws---+  2 root __USERS__  4096 Aug 20 15:59 4 CLASSES ETAT
drwxrws---+ 22 root __USERS__  4096 Aug 20 16:08 Aanvragen_Subsidies
drwxrws---+ 11 root __USERS__  4096 Jun 17 11:48 ADMINISTRATIE
drwxrws---+  2 root __USERS__  4096 Jun 17 11:53 AGGREGAAT
drwxrws---+  9 root __USERS__  4096 Jun 17 11:51 AKTIES_2009_2010
drwxrws---+  2 root __USERS__  4096 Jun 17 11:48 Ambassade Belgie
drwxrws---+  4 root __USERS__  4096 Jun 17 11:52 Ambassade Dakar
drwxrws---+  2 root __USERS__  4096 Jun 17 11:52 ARTIKELEN
drwxrws---+  2 root __USERS__  4096 Jul 14 12:19 BANNER CEM
drwxrws---+  2 root __USERS__  4096 Jun 17 11:48 BesprVerslagen
drwxrws---+  5 root __USERS__  4096 Jun 17 11:48 Bouwtekening
drwxrws---+  6 root __USERS__  4096 Jun 17 11:52 CDIM
drwxrws---+  4 root __USERS__  4096 Jun 17 11:52 CEM 2011
drwxrws---+  6 root __USERS__  4096 Jun 17 11:53 CEM 2012 voorbereiding
drwxrws---+ 11 root __USERS__  4096 Jun 17 11:53 CEM 2013_Voorbereiding
drwxrws---+  9 root __USERS__  4096 Aug 21 10:11 CEM 2014 Voorbereiding
drwxrws---+  2 root __USERS__  4096 Aug 21 08:31 CEM 2015 Voorbereiding
drwxrws---+  3 root __USERS__  4096 Jun 17 11:52 CEM ILE DE MAR
drwxrws---+  7 root __USERS__  4096 Jun 17 11:48 CONTRACT
drwxrws---+ 29 root __USERS__  4096 Jun 17 11:49 Correspondentie
drwxrws---+  3 root __USERS__  4096 Jun 17 11:52 Dictionaire Serere
drwxrws---+  7 root __USERS__  4096 Jun 17 11:49 DONATEURS
drwxrws---+  3 root __USERS__  4096 Jun 17 11:52 E-BOOKS
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Fokke_Sukke
drwxrws---+  2 root __USERS__  4096 Jun 17 11:49 Fokke&Sukke
drwxrws---+  6 root __USERS__  4096 Jun 17 11:49 Folder
drwxrws---+  2 root __USERS__  4096 Jun 17 11:52 Foto Miriama
drwxrws---+ 20 root __USERS__  4096 Jun 17 11:51 Foto's iz CEM
drwxrws---+  2 root __USERS__  4096 Jun 17 11:52 google info
drwxrws---+  2 root __USERS__  4096 Jun 17 11:52 Handtekening HBP
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Historie
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Informatie voor donateurs
drwxrws---+  5 root __USERS__  4096 Jun 17 11:52 Kopie van ADMINISTRATIE
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 MoBousso
drwxrws---+  2 root __USERS__  4096 Aug 20 14:16 Mondiaal Centrum 2012
drwxrws---+  9 root __USERS__  4096 Jun 17 11:51 Nieuws ReisBEZOEKEN
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Offici?leStukken_S?n?gal
drwxrws---+  5 root __USERS__  4096 Aug 20 16:00 OLPC_Senegal
drwxrws---+  2 root __USERS__  4096 Jun 18 16:59 OPIN
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Piroque
-rw-rw----+  1 root __USERS__   568 Jun 17 11:52 planing_for_the_roof,_tegels_and_methalic_menuserie.zip
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 PortaMosana_stage
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Presentatie St.?le de Mar
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 Programma van Eisen School
drwxrws---+  2 root __USERS__  4096 Jun 17 11:51 RECEPT BISSAP
drwxrws---+  3 root __USERS__  4096 Jul 14 12:56 ROTARY_GulpenVaals
drwxrws---+  2 root __USERS__  4096 Jun 17 11:53 SOPHIANUM
drwxrws---+  2 root __USERS__  4096 Jun 17 11:52 Sotos
drwxrws---+  5 root __USERS__  4096 Jun 17 11:52 Sponsoraktie
drwxrws---+  2 root __USERS__  4096 Jun 17 11:52 Stichting L' ?le de Mar
drwxrws---+  2 root __USERS__  4096 Aug 20 14:11 STUDIE FONDS
drwxrws---+  2 root __USERS__  4096 Aug 20 15:11 test
drwxrws---+  5 root __USERS__  4096 Jun 17 11:52 VOORBEREIDING REIS OKT2010
-rw-rw----+  1 root __USERS__ 14015 Jun 17 11:52 Vragenlijst project Ile de Mar Senegal.doc
drwxrws---+ 22 root __USERS__  4096 Jul  1 12:25 Website
rob@bhs001:/home/samba/shares/documenten/Senegal_berichten_MarLodj2007$

Now I change the name of planing_for_the_roof,_tegels_and_methalic_menuserie.zip into planingroof.zip

getfacl command gives:
Quote
rob@bhs001:/home/samba/shares/documenten$ sudo getfacl /home/samba/shares/documenten/
getfacl: Removing leading '/' from absolute path names
# file: home/samba/shares/documenten/
# owner: root
# group: Administrators
# flags: -s-
user::rwx
user:root:rwx
user:sync:rwx
user:3000000:rwx
user:3000002:rwx
group::rwx
group:adm:rwx
group:Administrators:rwx
group:3000002:rwx
group:documenten:rwx
mask::rwx
other::---
default:user::rwx
default:user:root:rwx
default:user:sync:rwx
default:user:3000000:rwx
default:user:3000002:rwx
default:group::---
default:group:adm:rwx
default:group:Administrators:rwx
default:group:3000002:rwx
default:group:documenten:rwx
default:mask::rwx
default:other::---

rob@bhs001:/home/samba/shares/documenten$

smbclient command gives:
Quote
rob@bhs001:/home/samba/shares/documenten$ smbclient //bhs001/documenten -U rob
Enter rob's password:
Domain=[CASIMIR] OS=[Unix] Server=[Samba 4.1.10]
smb: \> ls
  .                                   D        0  Wed Aug 20 15:39:33 2014
  ..                                  D        0  Wed Aug 20 16:15:48 2014
  Systeembeheer                       D        0  Tue Jun 17 11:48:11 2014
  Senegal_berichten_MarLodj2007       D        0  Thu Aug 21 18:08:26 2014
  PUBLIC                              D        0  Tue Jun 17 12:29:08 2014
  ICT                                 D        0  Fri May 23 11:22:15 2014
  Data                                D        0  Thu Aug 21 16:19:50 2014
  test                                D        0  Wed Aug 20 15:46:09 2014
  Bonhomme                            D        0  Fri May 23 09:54:50 2014
  HBP-Beheer                          D        0  Thu May 22 12:17:41 2014
  Boekhouding                         D        0  Thu May 22 12:47:23 2014
  RecycleBin                          D        0  Thu Aug 21 08:31:19 2014
  Senegal                             D        0  Thu Aug 21 08:30:30 2014
  Administratie                       D        0  Tue Jun 17 12:34:22 2014

      58665 blocks of size 16777216. 53847 blocks available
smb: \> cd Senegal_berichten_MarLodj2007\
smb: \Senegal_berichten_MarLodj2007\> ls
cli_list: Error: unable to parse name from info level 260
  .                                   D        0  Thu Aug 21 18:08:26 2014
  ..                                  D        0  Wed Aug 20 15:39:33 2014
  planingroof.zip                     N      568  Tue Jun 17 11:52:29 2014
  Mondiaal Centrum 2012               D        0  Wed Aug 20 14:16:18 2014

      58665 blocks of size 16777216. 53847 blocks available

The file renames ok from SSH terminal. But the smbclient error remains.
« Last Edit: August 21, 2014, 06:14:45 pm by robb »

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Weird fileserver issue
« Reply #5 on: August 21, 2014, 08:00:44 pm »
Hello:

Have a look to http://samba.2283325.n4.nabble.com/Re-Samba-CIFS-proxy-td3688114.html


It seems like it might be related to a too populated folder...

robb

  • Guest
Re: Weird fileserver issue
« Reply #6 on: August 21, 2014, 08:20:19 pm »
Are there any known hard limits for amount of directories, amount of files and/or size?
This would be a serious showstopper to use samba with linux clients.

And why are windows clients not affected?

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Weird fileserver issue
« Reply #7 on: August 25, 2014, 02:51:17 pm »
Hello robb:

I'm not aware of a particular limit, so I guess this is a bug on the smbclient  package for Linux. I would suggest you submitting a bug report  to samba team