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/02/20 18:24] – [Permanent Mount] 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 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 56: 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 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.1582219459.txt.gz · Last modified: 2020/02/20 18:24 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