Jump to content

How to mount a smb share Ubuntu server


brent
 Share

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=username
password=password
domain=example.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

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...