====== Samba ====== Samba is the standard Windows interoperability suite of programs for Linux and Unix. Samba implements the CIFS network protocol to work with changes Microsoft has made in their Windows networking platform. CIFS is the extension of the SMB protocol. The in-kernel CIFS filesystem is generally the preferred method for mounting SMB/CIFS shares on Linux. CIFS protocol is strictly port 445. Samba does still support SMB and an example where this is useful may be if sharing with older Windows operating systems still using NetBIOS that will want to connect to the Samba server via port 137, 138, 139. Samba Daemons: * **smbd** The smbd daemon provides the file and print services to SMB clients, such as Windows 95/98, Windows NT, Windows for Workgroups or LanManager. The configuration file for this daemon is described in smb.conf. * **nmbd** The nmbd daemon provides NetBIOS nameservice and browsing support. The configuration file for this daemon is described in smb.conf. * **winbindd** winbindd is a daemon that is used for integrating authentication and the user database into unix. https://www.samba.org/samba/ ---- [[Ubuntu:Samba:Active Directory User Management|Active Directory User Management]] [[Ubuntu:Samba:Check Samba is running|Check Samba is running]] [[Ubuntu:Samba:Configure Samba Active Directory Domain Controller|Configure Samba Active Directory Domain Controller]] [[Ubuntu:Samba:Configure a restricted share directory|Configure a restricted share directory]] [[Ubuntu:Samba:Install CIFS Utils|Install CIFS Utils]] [[Ubuntu:Samba:Install Samba|Install Samba]] [[Ubuntu:Samba:Join an existing Windows Active Directory Domain|Join an existing Windows Active Directory Domain]] [[Ubuntu:Samba:Join a Windows Active Directory Domain with Samba Winbind|Join a Windows Active Directory Domain with Samba Winbind]] [[Ubuntu:Samba:Mount a Share|Mount a Share]] [[Ubuntu:Samba:Mount a Windows Share|Mount a Windows Share]] [[Ubuntu:Samba:Optimize Samba|Optimize Samba]] [[Ubuntu:Samba:Resolve rlimit_max below minimum Windows limit|Resolve rlimit_max below minimum Windows limit]] [[Ubuntu:Samba:Samba Configuration|Samba Configuration]] [[Ubuntu:Samba:Samba Configuration Detailed|Samba Configuration Detailed]] [[Ubuntu:Samba:Samba Configuration Printer|Samba Configuration Printer]] [[Ubuntu:Samba:SMB Protocol Versions|SMB Protocol Versions]] [[Ubuntu:Samba:Test nmbd|Test nmbd]] [[Ubuntu:Samba:Test Samba’s ability to authenticate users|Test Samba’s ability to authenticate users]] [[Ubuntu:Samba:Verify Samba configuration settings|Verify Samba configuration settings]] ---- ===== TODO ===== How can I log what files are accessed what is done with those files and by whom? You need to use at least samba-2.2.7a and use the audit.so module. The samba source code has what you need. Check out the information in ~samba/examples/VFS/audit.c and in the README file in that directory.