/etc/fstab自 13.04 以来,我多年来一直有一条线路停止工作:
//192.168.100.2/share /mnt/popcorn cifs username=MyUserName,password=MyPassword,user,gid=sambashare,file_mode=0664 0 0
Run Code Online (Sandbox Code Playgroud)
它给了我:
mount /mnt/popcorn
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Run Code Online (Sandbox Code Playgroud)
dmesg 就像沙漠中的阳光一样有用:
[ 622.471321] CIFS VFS: Send error in SessSetup = -13
[ 622.471458] CIFS VFS: cifs_mount failed w/return code = -13
Run Code Online (Sandbox Code Playgroud)
我知道用户/通行证组合是正确的,因为这很好用:
bart@dosar:~$ smbclient //192.168.100.2/share --user=MyUserName
Enter nmt's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.32]
smb: \> ls
...
Run Code Online (Sandbox Code Playgroud)
如何在 Ubuntu 13.04 上永久安装 CIFS/Samba 共享?