Differences

This shows you the differences between two versions of the page.

Link to this comparison view

windows_linux_cifs_share [2022/02/28 18:19]
warmachine created
windows_linux_cifs_share [2022/02/28 18:27] (current)
warmachine
Line 14: Line 14:
  
 **on the linux box:** **on the linux box:**
 +
 install CIFS : install CIFS :
 +
  <code>sudo apt-get install cifs-utils</code>  <code>sudo apt-get install cifs-utils</code>
  
 +make a directory to mount the windows share to:
 +
 +<code>mkdir /mnt/winshare</code>
 +
 +store the windows user credentials in a hdiden file:
 +
 +<code>nano ~/.smbcredentials</code>
 +<code>username=windowshareusername
 +password=windowssharepassword</code>
 +
 +control x to exit, y to save.
 +
 +as always, backup your fstab:
 +
 +<code>cp /etc/fstab /etc/fstab.bak</code>
 +
 +add the windows share to the fstab and test:
 +
 +<code> nano /etc/fstab</code>
 +<code>//windowshost/windowsfoldertoshare /mnt/winshare cifs credentials=/home/linuxsuername/.smbcredentials  0  0</code>
 +
 +control x to exit, y to save.
 +
 +test the mount:
 +
 +<code>mount -a</code>
  
 +if you get an error, check syntax and permissions. if not, check for the folder in your /mnt/winshare/. reboot, see if it mounts automatically.
Last modified: le 2022/02/28 18:19