Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


autofs_smb_fedora_26

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
autofs_smb_fedora_26 [2017/09/09 08:08] – [Fedora 26 - autofs SMB v3] adminautofs_smb_fedora_26 [2017/09/09 08:11] – [Fedora 26 - autofs SMB v3] admin
Line 21: Line 21:
 # Add autofs map (append) # Add autofs map (append)
 sudo tee -a /etc/auto.${nashostname} <<EOF sudo tee -a /etc/auto.${nashostname} <<EOF
-${nasshare}    -fstype=cifs,rw,noperm,vers=3.0,   ://${nashostname}/${nasshare}+${nasshare}    -fstype=cifs,rw,noperm,vers=3.0,credentials=/etc/.smbcred.txt   ://${nashostname}/${nasshare}
 EOF EOF
 </code> </code>
-  * Enable and start autofs:<code>sudo systemctl enable autofs --now</code> 
   * Configure credentials for auto mounting. Be careful when storing credentials in plain text.<code>   * Configure credentials for auto mounting. Be careful when storing credentials in plain text.<code>
-credentials=/etc/smbcred.txt +sudo vi /etc/.smbcred.txt  
 + 
 +username=value 
 +password=value 
 +domain=value
 </code> </code>
 +  * Enable and start autofs:<code>sudo systemctl enable autofs --now</code>
 +
  
  
autofs_smb_fedora_26.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1