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
linux:samba [2020/09/24 09:57] – [Configure Users] tmadelinux:samba [2020/09/25 12:03] (current) – [Configure 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 restart smb && systemctl restart nmb+  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 57: Line 57:
   directory mask = 0755   directory mask = 0755
   read only = Yes   read only = Yes
-  valid users = user1 user2+  valid users = user1 user2 root
   write list = root                             #Just root has write rights    write list = root                             #Just root has write rights
  
Line 104: 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