I have use two CIFS network shares. One is public and all users have permissions to access it -
/media/nas/media. I want all files and folders I create to be accessible to all other users. The other share,
/media/nas/sharp, is private and only I have access to it, so I don't need to worry about file permissions.
Here's my settings from
//192.168.1.2/media /media/nas/media cifs rw,dir_mode=0755,file_mode=0755,nounix,credentials=/etc/nas_cred,user,noauto 0 0 //192.168.1.2/sharp /media/nas/sharp cifs rw,credentials=/etc/nas_cred,user,noauto 0 0
I had to experiment a bit with
nounix, because the server is unix-based, but I use CIFS so Windows workstations can access the files.
This setting worked fine for me for some time, but now I have the following problem. When I mount
/media/nas/media, it works as intended. But when I also mount
/media/nas/sharp, all files and folders from
/media/nas/media seem to disappear, even though it stays mounted. If I try
mount again, it doesn't solve the problem. The only solution I found is to restart the computer.
/media/nas/sharp doesn't have this problem (it works just fine, if I try to mount the other share as well), I suspect there might be a problem with the configuration in
/etc/fstab. I'm using Ubuntu 13.10 and Windows workstations have no such problems.
What could be causing this issue, and how could I fix it?