vendredi 26 décembre 2014

Mounted.cifs with ro option, user still able to touch


I got following setup:



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: -


As you can see I mounted the CIFS as ro but am still able to write to it. I tried to use the noperm option but it didn't resolve the issue. How come and how do I fix this...



Aucun commentaire:

Enregistrer un commentaire