我有几台 Synology NAS,运行 DSM 6.2.2-24922 Update 5,我使用以下命令成功将其安装在 Ubuntu 18.04 上:
sudo mount -t cifs //192.168.x.y/folder_name -o username=user,password=???????,uid=1000,sec=ntlm,vers=1.0 /local_mount_point
我购买了一台新的,运行 DSM 6.2.4-25556。我尝试以相同的方式安装,但收到此错误:
mount: /local_mount_point: mount(2) system call failed: Operation not supported.
编辑
我把vers=1.0去掉,错误改为
//192.168.x.y/folder_name does not exist
新 NAS 上已启用启用 SMB 共享,设置与其他 NAS 相同。
我在新 NAS 上的 smb.conf 是:
[global]
printcap name=cups
winbind enum groups=yes
include=/var/tmp/nginx/smb.netbios.aliases.conf
min protocol=SMB2
security=user
local master=no
realm=*
passdb backend=smbpasswd
printing=cups
max protocol=SMB3
winbind enum users=yes
load printers=yes
workgroup=WORKGROUP
我的 smb.share.conf 是:
[folder_name]
recycle bin admin only=yes
ftp disable modify=no
ftp disable download=no
write list=nobody,nobody
browseable=yes
mediaindex=no
hide unreadable=no
win share=yes
enable recycle bin=yes
invalid users=nobody,nobody
read list=nobody,nobody
ftp disable list=no
edit synoacl=yes
valid users=nobody,nobody
writeable=yes
guest ok=yes
path=/volume2/folder_name_1
skip smb perm=yes
comment=""
[folder_name_2]
recycle bin admin only=yes
ftp disable modify=no
ftp disable download=no
write list=nobody,nobody
browseable=yes
mediaindex=no
hide unreadable=no
win share=yes
enable recycle bin=yes
invalid users=nobody,nobody
read list=nobody,nobody
ftp disable list=no
edit synoacl=yes
valid users=nobody,nobody
writeable=yes
guest ok=yes
path=/volume1/folder_name_2
skip smb perm=yes
comment=""
(有趣的是,其中一台正在运行的 NAS 上的 smb.conf 是:
[global]
printcap name=cups
winbind enum groups=yes
include=/var/tmp/nginx/smb.netbios.aliases.conf
security=user
local master=no
realm=*
passdb backend=smbpasswd
printing=cups
max protocol=SMB2
winbind enum users=yes
load printers=yes
workgroup=WORKGROUP
)
有人可以建议吗?