Da qualche mese il mio PC ha smesso di vedere alcune cartella condivise che avevo sul NAS QNAP TS-412.
PC e NAS sono sullo stesso gruppo di lavoro, son collegati in ethernet, il collegamento tramite FTP funziona e anche tramite SSH. Dovrei avere già attivato SMB e tutto.
Prima dal computer facendo \\NAS\Multimedia o con l'ip entrava chiedendomi i dati di login senza problemi. Ora invece, anche tramite il programma QNAP QFinder quando provo a collegare l'unità di rete o aprirlo in esplora risorse mi dice "Impossibile accedere al dispositivo e alla cartella condivisa. Verificare la connessione di rete, il nome utente e la password e che il dispositivo sia stato acceso."
Collegandomi in ssh e facendo smb2status mi risponde:
smbd (samba daemon) Version 4.4.16
smbd (samba daemon) is running.
max protocol SMB 3 enabled.
Ho provato anche dalla TV e pure da lì non mi vede più le cartelle.
Ho dato un occhio nella configurazione in /etc/config/uLinux.conf e ho trovato questo:
Codice: Seleziona tutto
[Samba]
Enable = TRUE
SMB3 = TRUE
Large MTU = TRUE
SMB2 = TRUE
AIO = FALSE
SMB2 LEASES = TRUE
SMB2 DURABLE HANDLES = TRUE
Time Machine Special Build = TRUE
Hide TM Folder = FALSE
HomeLink = TRUE
SPLICE = 0
Version = Version 4.4.16
winbind separator = +
server_max_protocol_custom = TRUE
[Appletalk]
Enable = FALSE
Default Zone=*
use splice = FALSE
Codice: Seleziona tutto
[~] # testparm
Load smb config files from /etc/config/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
Processing section "[Multimedia]"
Processing section "[Download]"
Processing section "[Web]"
Processing section "[Public]"
Processing section "[homes]"
Processing section "[Backup]"
Processing section "[home]"
Loaded services file OK.
WARNING: socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=65536 SO_RCVBUF=65536
This warning is printed because you set one of the
following options: SO_SNDBUF, SO_RCVBUF, SO_SNDLOWAT,
SO_RCVLOWAT
Modern server operating systems are tuned for
high network performance in the majority of situations;
when you set 'socket options' you are overriding those
settings.
Linux in particular has an auto-tuning mechanism for
buffer sizes (SO_SNDBUF, SO_RCVBUF) that will be
disabled if you specify a socket buffer size. This can
potentially cripple your TCP/IP stack.
Getting the 'socket options' correct can make a big
difference to your performance, but getting them wrong
can degrade it by just as much. As with any other low
level setting, if you must make changes to it, make
small changes and test the effect before making any
large changes.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
server string = NAS
local master = No
preferred master = No
smb2 leases = Yes
max log size = 10
cache directory = /share/HDA_DATA/.samba/cache
lock directory = /share/HDA_DATA/.samba/lock
pid directory = /var/lock
state directory = /share/HDA_DATA/.samba/state
load printers = No
printcap cache time = 0
unix extensions = No
enhance acl v1 = Yes
remove everyone = Yes
guest account = guest
map to guest = Bad User
null passwords = Yes
passdb backend = smbpasswd
security = USER
server signing = No
smb passwd file = /etc/config/smbpasswd
username map = /etc/config/smbusers
deadtime = 10
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=65536 SO_RCVBUF=65536
template homedir = /share/homes/DOMAIN=%D/%U
winbind enum groups = Yes
winbind enum users = Yes
winbind expand groups = 1
dns proxy = No
fruit:veto_appledouble = no
fruit:nfs_aces = no
streams_depot:check_valid = no
streams_depot:delete_lost = yes
idmap config * : backend = tdb
delete veto files = Yes
map archive = No
map readonly = no
store dos attributes = Yes
veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/:2e*/.@__qini/.Qsync/.@upload_cache/.qsync/.qsync_sn/.@qsys/.streams/.digest/
kernel share modes = No
posix locking = No
wide links = Yes
acl allow execute always = Yes
create mask = 0777
directory mask = 0777
force unknown acl user = Yes
inherit acls = Yes
use sendfile = Yes
vfs objects = catia fruit qnap_macea streams_depot
[Multimedia]
comment = System default share
path = /share/HDA_DATA/Multimedia
recycle bin = Yes
guest ok = Yes
inherit permissions = Yes
read list = @everyone guest
smb encrypt = No
valid users = root @everyone admin guest @administrators
write list = admin @administrators
[Download]
comment = System default share
path = /share/HDA_DATA/Download
recycle bin = Yes
guest ok = Yes
inherit permissions = Yes
invalid users = guest
smb encrypt = No
valid users = root admin @administrators
write list = admin @administrators
[Web]
comment = System default share
path = /share/HDA_DATA/Web
recycle bin = Yes
guest ok = Yes
inherit permissions = Yes
invalid users = guest
smb encrypt = No
valid users = root admin
write list = admin
[Public]
comment = System default share
path = /share/HDA_DATA/Public
recycle bin = Yes
guest ok = Yes
inherit permissions = Yes
invalid users = guest
smb encrypt = No
valid users = root admin
write list = admin
[homes]
comment = System default share
path = /share/HDA_DATA/homes
recycle bin = Yes
guest ok = Yes
inherit permissions = Yes
smb encrypt = No
valid users = root admin
write list = admin
[Backup]
path = /share/HDA_DATA/Backup
recycle bin = Yes
guest ok = Yes
inherit permissions = Yes
invalid users = guest
smb encrypt = No
valid users = root admin @administrators
write list = admin @administrators
[home]
comment = Home
path = %H
root preexec = /sbin/create_home -u '%q'
inherit permissions = Yes
invalid users = guest
read list = %u
read only = No
valid users = %u
write list = %u