我正在尝试在我的笔记本电脑上安装 Windows 共享,并且一切安装正常,但当我尝试在已安装的文件夹中创建新文件时,不知怎的,我的权限被拒绝。我尝试了noperm
、、uid
等gid
,noacl
但似乎没有任何效果。每个使用 Windows 安装共享相同凭据的人都具有完全的读写访问权限。这是我的安装方式:
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777 //10.36.253.222/dysk\ f/ samba/
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,user=***,pass=********
piotrek@piotrek-Vostro-2520:~/tmp$ cd samba/
piotrek@piotrek-Vostro-2520:~/tmp/samba$ ls -la
total 4
drwxrwxrwx 2 piotrek piotrek 0 mar 27 13:19 .
drwxrwxr-x 3 piotrek piotrek 4096 kwi 9 12:41 ..
drwxrwxrwx 0 piotrek piotrek 0 mar 18 11:50 AS-SET
drwxrwxrwx 0 piotrek piotrek 0 mar 27 13:29 EDUKACJA
drwxrwxrwx 0 piotrek piotrek 0 mar 18 11:52 RECYCLER
drwxrwxrwx 0 piotrek piotrek 0 cze 5 2012 System Volume Information
piotrek@piotrek-Vostro-2520:~/tmp/samba$ touch abc
touch: cannot touch `abc': Permission denied
我究竟做错了什么?
我使用的是 Ubuntu 12.10。
//编辑
我已经尝试过评论中建议的选项,但仍然没有运气:
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlm //10.36.253.222/dysk\ f/ samba/
[sudo] password for piotrek:
Sorry, try again.
[sudo] password for piotrek:
Sorry, try again.
[sudo] password for piotrek:
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlm,uid=1000,gid=1000,user=***,pass=********
piotrek@piotrek-Vostro-2520:~/tmp$ touch samba/dddd
touch: cannot touch `samba/dddd': Permission denied
piotrek@piotrek-Vostro-2520:~/tmp$ sudo umount samba/
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmi //10.36.253.222/dysk\ f/ samba/
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmi,uid=1000,gid=1000,user=***,pass=********
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmv2 //10.36.253.222/dysk\ f/ samba/
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmv2,uid=1000,gid=1000,user=***,pass=********
piotrek@piotrek-Vostro-2520:~/tmp$ touch samba/dddd
touch: cannot touch `samba/dddd': Permission denied
piotrek@piotrek-Vostro-2520:~/tmp$ sudo umount samba/
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmv2i //10.36.253.222/dysk\ f/ samba/
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmv2i,uid=1000,gid=1000,user=***,pass=********
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmssp //10.36.253.222/dysk\ f/ samba/
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmssp,uid=1000,gid=1000,user=***,pass=********
piotrek@piotrek-Vostro-2520:~/tmp$ touch samba/dddd
touch: cannot touch `samba/dddd': Permission denied
piotrek@piotrek-Vostro-2520:~/tmp$ sudo umount samba/
piotrek@piotrek-Vostro-2520:~/tmp$ sudo mount -v -t cifs -o username=***,password=***,uid=1000,gid=1000,rw,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmsspi //10.36.253.222/dysk\ f/ samba/
mount.cifs kernel mount options: ip=10.36.253.222,unc=\\10.36.253.222\dysk f,noperm,noacl,file_mode=0777,dir_mode=0777,sec=ntlmsspi,uid=1000,gid=1000,user=***,pass=********
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
piotrek@piotrek-Vostro-2520:~/tmp$
//编辑2
不知道为什么,但今天它突然开始使用我的第一个安装命令。可能需要重新启动服务器才能使其正常工作,但你永远无法确定 Windows...