安装 SMB/AFP 13.10

安装 SMB/AFP 13.10

我似乎无法让 Ubuntu 通过 SMB 或 AFP 安装 mac 共享。我尝试了以下操作...

法新社:

apt-get install afpfs-ng-utils
mount_afp afp://user:password@localip/share /mnt/share

错误信息:“无法连接,从未收到 getstatus 的响应,连接超时”。这很奇怪,因为我可以通过 Mac 正常访问共享。

中小企业:

apt-get install cifs-utils
nano /etc/fstab
added the following line "//localip/share /mnt/share cifs username=user,password=pass,iocharset=utf8,sec=nltm 0 0"
mount -a

错误提示:

root@Asrock:~# mount -a -vvv
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "//10.0.1.3/NAS"
mount: node:  "/mnt/NAS"
mount: types: "cifs"
mount: opts:  "username=user,password=pass,iocharset=utf8,sec=nltm"
mount: external mount: argv[0] = "/sbin/mount.cifs"
mount: external mount: argv[1] = "//10.0.1.3/NAS"
mount: external mount: argv[2] = "/mnt/NAS"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw,username=user,password=pass,iocharset=utf8,sec=nltm"
mount.cifs kernel mount options: ip=10.0.1.3,unc=\\10.0.1.3\NAS,iocharset=utf8,sec=nltm,user=user,pass=*
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

我并不关心它使用哪个,我只希望它能正常工作!我做错了什么吗?

答案1

对我来说它不需要sec=nltmssp

//localip/share /mnt/share cifs username=user,password=xxx,nounix 0 0

答案2

我能够使用 fstab 来解决这个问题

//localip/share /mnt/share cifs username=user,nounix,sec=nltmssp 0 0

相关内容