Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:samba [2020/02/20 18:24] – [Permanent Mount] tmadelinux:samba [2020/09/24 16:12] – [Mount Samba] tmade
Line 21: Line 21:
 ==== Autostart Service ==== ==== Autostart Service ====
   chkconfig smb on && chkconfig nmb on                  #Add service to autostart in defined runlevel   chkconfig smb on && chkconfig nmb on                  #Add service to autostart in defined runlevel
 +  systemctl is-enabled smb && systemctl is-enabled nmb  #Add service to autostart on systemd systems
 or or
   insserv nmb                                           #Add service to autostart in defined runlevel   insserv nmb                                           #Add service to autostart in defined runlevel
Line 84: Line 85:
   smbpasswd -d login           #Disable Samba user   smbpasswd -d login           #Disable Samba user
   smbpasswd -e login           #Reenable Samba user   smbpasswd -e login           #Reenable Samba user
 +  pdbedit -L                   #show samba users
  
 ==== Access Commands ==== ==== Access Commands ====
Line 102: Line 104:
   mount -t cifs -o lfs //IP/c$/folder /mnt/backup/ -o username=Administrator   mount -t cifs -o lfs //IP/c$/folder /mnt/backup/ -o username=Administrator
   mount -t cifs -o vers=3.0 //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp          #Mount Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required!   mount -t cifs -o vers=3.0 //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp          #Mount Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required!
-  mount -t cifs //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp                      #Mount Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required!+  mount -t cifs //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp                      #Mount >= SLES12/ Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required!
      
 Linux to Linux: Linux to Linux:
linux/samba.txt · Last modified: 2020/09/25 12:03 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki