几天以来,我发现 Ubuntu 14.04LTS 信任和 Windows 共享存在一个奇怪的问题。直到几天前它才能正确安装:
使用 gvfs 我的共享已正确安装:
gvfs-mount smb://[MyDomain]/centren/
如果我尝试使用 mount.cifs 为每个用户挂载它:
sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
然后我遇到了一些权限问题:
ls -la /run/user/1009/gvfs/smb-share\:server\=[MyDomain]\,share\=centren/AG/[MyAG]
insgesamt 200
drwx------ 1 myuser myuser 4096 Jan 8 2016 .
drwx------ 1 myuser myuser 196608 Feb 5 13:49 ..
drwx------ 1 myuser myuser 4096 Jan 30 11:58 mydir
ls -la /media/S/AG/[MyAG]
ls: Öffnen von Verzeichnis /media/S/AG/[MyAG] nicht möglich: Keine Berechtigung
如果有帮助的话:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
uname -r
3.19.0-80-generic
mount.cifs -V
mount.cifs version: 6.0
答案1
我自己回答。最后内核出现了一些问题/错误。我已更新到内核 4,一切又恢复正常了!
$ sudo mount -t cifs -o credential=/root/.smbcred,vers=1.0,rw,uid=1009,hard,nosetuids,noperm,sec=ntlm //[MyDomain]/centren /media/S
[sudo] password for myuser:
$ ls -la /media/S/AG/[MyAG]
insgesamt 196
drwxr-xr-x 2 myuser myuser 4096 Jan 8 2016 .
drwxr-xr-x 2 myuser myuser 196608 Feb 9 15:30 ..
drwxr-xr-x 2 myuser myuser 0 Feb 12 10:03 MyDir
$ uname -r
4.4.0-98-generic
$ mount.cifs -V
mount.cifs version: 6.0
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"