User Tools

Site Tools


Sidebar

linux:mount_samba

Mount SAMBA folder

Install cifs package : Red Hat,CentOS, Fedora

 [root@server]# yum install cifs-utils 

Debian,Ubuntu

 [root@server]# apt-get install cifs 

Example mount samba share folder from linux to linux where is :

  • Unordered List Itemserver_ip ; 192.168.1.100
  • Unordered List Itemuser_name is samba login username
  • Unordered List Itempassword is samba user password
 [root@server]# mount -t cifs //192.168.1.100/share /mnt/share -ouser=user_name,pass=password 

or for CentOS 7, Red Hat 7:

 [root@server]# mount.cifs //192.168.1.100/share /mnt/share -ouser=user_name,pass=password 

To automate mounting add this line to /etc/fstab file :

 //192.168.1.100/share    /mnt/share   cifs   username=user_name,password=password   0 0 
linux/mount_samba.txt · Last modified: 2015/10/02 14:29 (external edit)