Mount Windows or cifs Share on Linux
Written by:
Will Kruss
on
31 May 2016 04:15 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. vps.yourvpsname.com Your Username: e.g. vpsyourvps Your Password The Share Location: e.g. //sanspace.controlmyvps.com.au/VPS.YOURVPS.COM 1. To mount a Windows or cifs share on a Linux account first install cifs utilities CentOS yum install cifs-utils nano Ubuntu/Debian aptitude install smbfs OR apt-get install smbfs 2. Create a mount point mkdir -p /mnt/sanspace 3. Mount the shared drive mount -t cifs //sanspace.controlmyvps.com.au/VPS.YOURVPS.COM -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 Add the following line: //sanspace.controlmyvps.com.au/VPS.YOURVPS.COM /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 | |
|