Comment 6 for bug 1312362

Revision history for this message
Michael Paul (wurmschleuder) wrote :

Affected by this bug also, I found this workaround for Ubuntu 14.04:

As user who needs to access the server, do this:

Step 1
create folders in your home directory which then serve as mountpoints. For each share, you need one folder.
example: /home/user/myshare_on_NAS

Step 2
Next, create a text file that contains your credentials that are needed to access your shares on the server, name it something like ".mynascred" Edit this file, it should then look like this:
username=myusername_for_server
password=mypassword_for_server
Save, then make sure no one except you can access that file (right-click, properties->permissions)

Step 3
make sure, the package cifs-utils is installed

Step 4
with root permissions, edit /etc/fstab to add your shares:
//ip-of-server/share /home/user/myshare_on_NAS cifs noauto,users,credentials=/home/user/.mynascred 0 0

This is all. Log off and back, then you should be able to access your shares using at least Ubuntu/Xubuntu standard filemanager. No additional mount commands or scripts are required with Ubuntu 14.04 (this might be different with older versions)

Hope that helps somehow,
Michael