M BUZZ CRAZE NEWS
// news

How to mount synology SMB2 share on ubuntu

By Jessica Wood

I'm having a hard time mount a SMB2 share from my synology to ubuntu server 16.04.

mount.cifs // /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 // -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

2

2 Answers

I use a PI to mount a DS Share into my nextcloud instance. For that reason I use the following mounting command:

sudo mount.cifs -o username=ds-user,password=pw-of-ds-user,uid=33,gid=33,file_mode=0660,dir_mode=0770,vers=2.1 //IP-of-NAS/share /mountpoint/where/to/mount

I will explain the command

  • username and password should be clear I hope
  • uid gid are the values for www-date to get it working under nextcloud
  • file_mode set the permission for the mounting point
  • dir_mode do the same for folders
  • vers=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 Linux
  • and of course the the source and destination

So you cannot copy and paste my command you must edit it to your needs, but I think the structure should be clear now.

7
  • edit /etc/samba/smb.conf,change smb client version
    [global]
    # SMB protocol
    client min protocol = SMB2
    client max protocol = SMB3
  • restart or reboot
    # restart smb service
    sudo systemctl restart smbd.service
    # or reboot
    sudo reboot
  • try to link your NAS server
    smb://<nas-ip>
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy