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:
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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.
I'd suggest adding it to your
/etc/fstab, so it's online as soon as you boot. Mine has a (long) line reading:
//188.8.131.52/share_name/ /media/mount_point cifs uid=1000,guid=1000,rw,credentials=/etc/cifspasswd 0 0
cifsis the type of the file system for any Windows share.
uid=1000,guid=1000,rwmeans that anyone on the system can access this share
credentials=/etc/cifspasswdmeans that that credentials found in
/etc/cifspasswdwill 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.
/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.
In Ubuntu click alt+f2.
See the new mount in Nautilus.