I'm having a hard time mount a SMB2 share from my synology to ubuntu server 16.04.
mount.cifs //NAMEOFNAS.domainname.local/Backup /mnt/NAS/ -U USERNAME
results in following error:
mount error(95): Operation not supported
So checking the network share with smbclient results in another error:
smbclient //NAMEOFNAS.domainname.local/Backup -U username
WARNING: The "syslog" option is deprecated
Enter username's password:
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
When doing the same but with a share on Windows server, I have no problem whatsoever. Is there something I have to configure in Synology NAS (i noticed it's configured to only use SMB2)?
Here is the output of testparm
(only thing I changed was domain
and security=user
)
# Global parameters
[global]
workgroup = AVR
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = USER
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
server max protocol = SMB2
max protocol = SMB2
protocol = SMB2
server min protocol = SMB2
min protocol = SMB2
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
What can I do to mount this share please?
kr, wouter
I use a PI to mount a DS Share into my nextcloud instance. For that reason I use the following mounting command:
I will explain the command
file_mode
set the permission for the mounting pointdir_mode
do the same for foldersvers=2.1
that was the most important to get it working, the version 2.0 was not working for my DS in combination with my LinuxSo you cannot copy and paste my command you must edit it to your needs, but I think the structure should be clear now.
/etc/samba/smb.conf
,change smb client version