Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 /etc/fstab:

// /media/nas/media cifs rw,dir_mode=0755,file_mode=0755,nounix,credentials=/etc/nas_cred,user,noauto 0 0
// /media/nas/sharp cifs rw,credentials=/etc/nas_cred,user,noauto 0 0

I had to experiment a bit with dir_mode, file_mode and 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 umount and mount again, it doesn't solve the problem. The only solution I found is to restart the computer.

Since /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?

share|improve this question
Are you really using the same credentials file for both mounts? I'd try making separate files for each that are specific for that mount point. –  douggro Jan 24 at 15:43
I use the same credentials, access rights are set on the server. Maybe using a single common user for the media mount point would fix the problem. I might also try using NFS. –  Sharp Jan 25 at 10:36
Might try: mount the media folder, open Terminal and run ls -l /media/nas then mount the sharp folder and run the same command, looking at permissions before and after the second mount. Alternately, try changing the mounts in fstab to the root level of /media rather than under the /media/nas subdirectory. My hunch is that the permissions for the mount points are being overridden when you mount the sharp point. –  douggro Jan 25 at 23:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.