Jump to content
Sign in to follow this  
brent

How to mount a smb share Ubuntu server

Recommended Posts

To mount a windows share on Ubuntu Server:

1. Share the folder on your windows box 

2. Create a mount point in /mnt:

sudo mkdir /mnt/windows-share

3. Install CIFS-UTILS

sudo apt-get install cifs-utils

4. Create a credential file for the windows share.  **(You can name the credential file anything you want)**

sudo nano /etc/cifs-credentials

5.

username=brent
password=Sp23rty5%
domain=kc-linux.com

 

6. On your Ubuntu server open the file:

sudo nano /etc/fstab

edit the file with your information

//WIN_SHARE_IP/share_name  /mnt/win_share  cifs  credentials=/etc/win-credentials,file_mode=0755,dir_mode=0755 0       0

7. Run to mount the share:

sudo mount -a

 

Create Symlink in Linux

8. Create a shortcut to your new mounted file share: (Article here)

Terminal way (the link will appear in the folder the terminal points to):

ln -s /folderorfile/link/will/point/to /name/of/the/link

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...