Samba Notes (and SMB)
-
Lists files that are open - smbstatus
-
Restart samba services (this will clear file locks): /etc/init.d/smbd restart
-
-
Consider using deadtime to set the timeout of file locks (my WiFi is dropping out once in a while leaving file locks...) http://www.samba.org/samba/docs/using_samba/ch11.html
-
-
List shares on a Windows "server" from Linux (technically I and IP are not necessary): smbclient -L windows-PC -I 192.168.81.10 -U windows-user
-
-
Mount a Windows SMB share with CIFS (which is the new way, older smbmount is deprecated):
-
mount -t cifs //hostname-or-ipaddress/sharename -o username='username',domain='domainname-or-workgroup' /mnt/mysamba
-
mount -t cifs -o username=server_user,password=secret //192.168.44.100/share /path_to/mount
-
See: http://opensuse.swerdna.org/susesambacifs.html
-
-
Samba 4 Active Directory Controller - https://jimshaver.net/2014/07/13/setting-up-an-active-directory-domain-controller-using-samba-4-on-ubuntu-14-04/
-
Samba 4 - "easy" AD ISO (customized Debian) - http://www.enterprisesamba.com/samba4app/
-
-
SMB v. 2 was introduced with Vista. No patch for XP.
-
SMB v.1 is disabled by default in recent Windows 10, can be re-enabled, but not recommended. Run optionalfeatures.exe. Find SMB / CIFS and enable.
tags: samba, linux, files, smb, mount