SAMBA is a Windows AD and SMB/CIFS fileserver for UNIX. To use this service you need to edit its configuration file /etc/samba/smb.conf. Structure of this file is similar to windows ini-files:
So, let's edit our configuration file, open it in your favorite text editor and let's go.
Write here your workgroup, this group will be visible to your windows clients:
Don't forget to specify networks that can use the server:
Now let's specify some share for our windows friends:
Here section name is the name of shared resource (what clients see); comment is a description of the share; path is the full path to the shared directory on your samba server. All other options (and more) are described in the samba documentation.
Check rights for directory in "path = shared_directory_path"
It's time to start the service.
Let's check the server is working now:
That's all. You can see in this output name of the shared resource (tmp) and its description (Temporary data).
Sometimes you may want to run windows name service, just start nmbd service like we did it with smbd:
Another simple configuration:
and the result on a windows computer, scan the network:
here we see the dilos server:
and the only shared resource from the configuration above (guest):
create a folder on the shared resource:
Now let's downlad something real from the Internet:
so, the file is local now:
copy it to the shared resource:
See the properties of the file:
Now, let's copy it to the desktop: