无法从 Ubuntu 12.04 使用 CIFS 挂载 OSX 10.8 文件共享

无法从 Ubuntu 12.04 使用 CIFS 挂载 OSX 10.8 文件共享

我正在尝试(但失败了)将 OSX 笔记本电脑上托管的共享安装到我的 Ubuntu 12.04 服务器上。该服务器是在 MacBook Air 上运行的 Vbox vm。

这是我的/etc/fstab参赛作品

//192.168.56.1/Users/sandfox/code /mnt/hostfs cifs user=sandfox,password=passwordhere,nounix,sec=ntlmssp,noperm,rw

这是我运行 Ubuntu 时的输出sudo mount -a -vvvv

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: proc already mounted on /proc
mount: spec:  "//192.168.56.1/Users/sandfox/code"
mount: node:  "/mnt/hostfs"
mount: types: "cifs"
mount: opts:  "user=sandfox,password=RebelRepublic85,nounix,ver=2,sec=ntlmssp,noperm,rw"
mount: external mount: argv[0] = "/sbin/mount.cifs"
mount: external mount: argv[1] = "//192.168.56.1/Users/sandfox/code"
mount: external mount: argv[2] = "/mnt/hostfs"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw,user=sandfox,password=passwordhere,nounix,ver=2,sec=ntlmssp,noperm"
mount.cifs kernel mount options: ip=192.168.56.1,unc=\\192.168.56.1\Users,nounix,ver=2,sec=ntlmssp,noperm,ver=1,user=sandfox,prefixpath=sandfox/code,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

这是 OSX 机器的输出/var/log/system.log

Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: uid=0
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: init request
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: init return domain: MACBOOKAIR-FD34 server: JAMESS-MACBOOK-AIR
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: uid=0
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: init request
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: init return domain: MACBOOKAIR-FD34 server: JAMESS-MACBOOK-AIR
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: uid=0
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: od failed with 2 proto=ntlmv2
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request: user=MACBOOKAIR-FD34\sandfox
Jul 31 13:33:37 Jamess-MacBook-Air.local digest-service[49237]: digest-request kdc: ok user=MACBOOKAIR-FD34\sandfox proto=ntlmv2 flags: 
Jul 31 13:33:37 Jamess-MacBook-Air.local smbd[49120]: MACBOOKAIR-FD34\sandfox connected to path /var/rpc/ncacn_np

我很早就意识到了 OSX 的问题,但有人知道吗?如果您需要更多信息,请告诉我。

相关内容