Mounted.cifs 带有 ro 选项,用户仍然可以触摸

Mounted.cifs 带有 ro 选项,用户仍然可以触摸

我在 Debian 7.7 上进行了以下设置:

me@PiWi$ sudo mount.cifs -o user=me,ro //192.168.1.101/media/Data/Games ./Games
me@PiWi$ ls ./Games/ 
Afdrukbaar  Console  Dos ScummVm  Windows
me@PiWi$ touch ./Games/Ishouldnbeable
touch: cannot touch `./Games/Ishouldnbeable': Read-only file system
me@PiWi$ ls ./Games/ 
Afdrukbaar  Console  Dos  Ishouldnbeable  ScummVm  Windows
me@PiWi$ stat ./Games/Ishouldnbeable
  File: `./Games/Ishouldnbeable'
  Size: 0               Blocks: 0          IO Block: 16384  regular empty file
Device: 12h/18d Inode: 8869134991369  Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ me)   Gid: ( 1000/ me)
Access: 2014-12-26 04:44:44.968626700 -0600
Modify: 2014-12-26 04:44:44.968626700 -0600
Change: 2014-12-26 04:44:44.968626700 -0600
 Birth: -

正如您所看到的,我将 CIFS 安装为 ro,但仍然能够对其进行写入。我尝试使用 noperm 选项,但它没有解决问题。这是怎么回事以及如何解决这个问题...

mount | grep Games

给出以下输出

//192.168.1.101/media/Data/Games on /opt/share/Shared/Games type cifs (ro,relatime,sec=ntlm,unc=\\192.168.1.101\media,username=me,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.101,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1)

相关内容