Samba is a free software re-implementation of the SMB/CIFS networking protocol, and was originally developed by Andrew Tridgell. Samba provides file and print services for various Microsoft Windows clients and can integrate with a Microsoft Windows Server domain, either as a Domain Controller (DC) or as a domain member. As of version 4, it supports Active Directory and Microsoft Windows NT domains.
Installation
apt-get
1. Install samba
sudo apt-get updatesudo apt-get install samba2. Start Stop Restart Status
sudo service smbd startsudo service smbd startsudo service smbd restartsudo service smbd status
Configuration
Click here to expand...
1. In the smb.conf add this to the very end of the file:
[<folder_name>]path = /path/to/shared/directoryvalid users = <user_name>read only = no2. restart smbd server
sudo service smbd restart3. check smbd.conf for syntax errors
testparm
Commands
Click here to expand...
1. Set a password for your user in Samba
sudo smbpasswd -a <user_name>