Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a windows file server with an address like this:


How can I access it from Linux?

On a Ubuntu 14.04 I tried to access this through nautilus, but it crashed. Here is the crash report:


share|improve this question
Please give us some more information. What Linux are you running? Do you have a graphical interface? Have you tried opening the file browser (just clicking on any directory) and checking the network section? Also, we expect users to first try and solve their issue themselves before posting here. Did you try any of the several thousand results you get when copy/pasting your question's title into a search engine? How did they fail? – terdon Jul 8 '14 at 12:56

Assuming a recent Linux, do this:

$ mount -t cifs //bioinf-filesrv2.mycompany.fr/cluster15 /mnt

Which will mount it at /mnt. You will need sufficient privilege (or be root).

If you need to add credentials, try:

$ mount -t cifs -o username=myuser,password=mypass //bioinf-filesrv2.mycompany.fr/cluster15 /mnt

You may need to install a package from your distro's repository called cifs-utils but, hopefully, it would already be there as part of the standard install.

share|improve this answer
IIRC CIFS requires the whacks on the UNC to go the other way (//bioinf-filesrv2.mycompany.fr/cluster15 etc). – Bratchley Jul 8 '14 at 13:06
They do indeed. sorry I just pasted from the OP. I've updated the answer. – starfry Jul 8 '14 at 13:08
It is secure to put password on the command line? – qed Jul 8 '14 at 13:23
Only as secure as where the command-line is. If you're putting them in a script then they are as secure as the permissions in that script. There is an alternative which is to use a credentials file. This is described here. – starfry Jul 8 '14 at 15:11

I'd suggest adding it to your /etc/fstab, so it's online as soon as you boot. Mine has a (long) line reading:

//    /media/mount_point    cifs    uid=1000,guid=1000,rw,credentials=/etc/cifspasswd    0    0
  • The first field is the address and share name.
  • The second field is the mount point on your system (the folder must exist).
  • cifs is the type of the file system for any Windows share.
  • uid=1000,guid=1000,rw means that anyone on the system can access this share
  • credentials=/etc/cifspasswd means that that credentials found in /etc/cifspasswd will be used to authenticate access to the share on the Windows server.

This credential file should contain the username and password necessary for accessing the Windows share, i.e.


As /etc/fstab is (usually) readable by other users of the system, you can create the file as root and chmod go-=rwx to remove access for other users, to protect your password.

Caveat If you boot your system and the server isn't available, Linux will wait a bit during the boot sequence before giving up.

share|improve this answer

In Ubuntu click alt+f2.

Type smb://bioinf-filesrv2.mycompany.fr/cluster15. Enter.

See the new mount in Nautilus.

Source: http://www.howtogeek.com/howto/29167/3-easy-ways-to-connect-to-windows-shared-folders-from-linux/

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.