Questions? Feedback? powered by Olark live chat software
Author Avatar

Mount Windows or cifs Share on Linux

Written by: on 03 January 2013 03:21 PM 03 January 2013 03:21 PM

Get the detail procedure to mount a Windows or cifs share on a Linux account. Visit us to know more!

Things you need to know first:

Your VPS Name: e.g.

Your Username: e.g. vpsyourvps

Your Password

The Share Location: e.g. //

1. To mount a Windows or cifs share on a Linux account first install cifs utilities


yum install cifs-utils nano


aptitude install smbfs


apt-get install smbfs

2. Create a mount point

mkdir -p /mnt/sanspace

3. Mount the shared drive

mount -t cifs // -w -o username=YOURUSERNAME,password=YOURPASSWORD /mnt/sanspace

4. Access the shared space

cd /mnt/sanspace

ls -ls

5. To make the mount point automount across reboots

nano /etc/fstab
pico /etc/fstab

Add the following line:

// /mnt/sanspace cifs username=YOURUSERNAME,password=YOURPASSWORD 0 0

If iptables is running you will also need to open an iptables port:

iptables -I INPUT -p tcp -m tcp --dport 110 -j ACCEPT
service iptables save

(0 vote(s))
Not helpful