【问题标题】:Writing to a mounted Windows share写入已安装的 Windows 共享
【发布时间】:2020-06-30 16:39:43
【问题描述】:

我正在使用 Ubunutu 20.04,我正在尝试写入已安装的 Windows 共享。这是我用来挂载共享的命令:

sudo mount.cifs //192.168.1.5/tv /mnt/tv -o username=xxxxxxxxxx,password=xxxxxxxxx,file_mode=0777,dir_mode=0777

我可以在 Ubuntu 中查看 Windows 共享的内容:

darren@homeserver:~$ ls -l /mnt/tv/
total 0
drwxrwxrwx 2 root root 0 Jun 30 15:33 '$RECYCLE.BIN'
drwxrwxrwx 2 root root 0 Jan  1  2019  MSOCache
drwxrwxrwx 2 root root 0 Apr 28 00:38 'Plex dance'
drwxrwxrwx 2 root root 0 Dec 30  2019 'System Volume Information'
drwxrwxrwx 2 root root 0 Jun 24 15:37 'TV Shows'
-rwxrwxrwx 1 root root 0 Jan  1  2019  desktop.ini 

但是如果我尝试创建一个测试文件,我会得到这个错误:

 [ Error writing lock file /mnt/tv/.test.swp: Permission denied ]

我将 Windows 共享权限设置为“所有人”:

有什么想法吗?

【问题讨论】:

    标签: windows ubuntu permissions network-share


    【解决方案1】:

    试试这个配置:

    -fstype=cifs,credentials=<fileWithCred>,vers=3.0,dir_mode=0777,file_mode=0777,noserverino ://<IP-Winshare>/Path
    

    【讨论】:

      猜你喜欢
      • 2011-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-03
      相关资源
      最近更新 更多