linux_wiki:cifs_windows_shares

Differences

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

Link to this comparison view

linux_wiki:cifs_windows_shares [2015/12/29 22:02]
billdozor
linux_wiki:cifs_windows_shares [2019/05/25 23:50]
Line 1: Line 1:
-====== CIFS Windows Shares ====== 
- 
-**General Information** 
- 
-Mounting CIFS (Windows Shares) on Linux.  
- 
-**Checklist** 
-  * Distro: Enterprise Linux 6 
-  * CIFS share is already present on remote server. 
- 
----- 
- 
-===== Install/Prep ===== 
- 
-  - Install Packages<code bash>yum install -y cifs-utils samba-client</code> 
-   - List remote shares<code bash>smbclient -L <remote-cifs-server></code> 
-   - Create local directory structure to mount the shares in<code bash>mkdir -p /data/shared/<win-share-name></code> 
-   - Create root ssh directory if it does not exist<code bash>mkdir /root/.ssh 
-chmod 700 /root/.ssh</code> 
-   - Create the CIFS credentials file<code>touch /root/.ssh/.<win-share-name> 
-chmod 600 /root/.ssh/.<win-share-name></code> 
-   - Edit the credentials file, add share's user/pass/domain<code>vim /root/.ssh/.<win-share-name> 
- 
-username=<user> 
-password=<password_here> 
-domain=<domain></code> 
-  - Create persistent CIFS mount in /etc/fstab<code bash>vim /etc/fstab 
-//<remote-cifs-server>/<sharename> /data/shared/<win-share-name>  cifs  auto,credentials=/root/.ssh/.<win-share-name>,_netdev,uid=<user>,gid=<users>,rw  0 0</code> 
-  - Mount the share<code bash>mount -a</code> 
- 
----- 
  
  • linux_wiki/cifs_windows_shares.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)