Many networks have the advantage of Windows “Active Directory” and Local Domains, an important priority within the company if. Most of the Windows shares using the solution “WORKGROUP“, the default choice when creating a shared network (to share files or printers). The majority of users have the idea that the WORKGROUP is something that can be accessed only by Windows. Not so and we will prove in this article with the help of a small program command line for linux: Samba.
For simplicity we will see how to access the shares with Ubuntu, but once installed the Samba process is the same for any distribution.
We install Samba
Open the terminal and usually we use the repository system to automatically install packages:
sudo apt-get install samba smbfs
Install the two packages and probably some dependence.
Edit the file “
/etc/samba/smb.conf” and look for the following line:
workgroup = WORKGROUP
All we have to do is change “WORKGROUP” in the name of our Workgroup (whether we are using the name WORKGROUP as the default in Windows that let). Apply the changes save and restart Samba with this command:
sudo / etc / init.d / smbd restart
Now the Linux machine is able to show all the computers in the same workgroup, and it is possible (come in ambiente Windows) share directories with other users. Operation is simple using Nautilus (right click on a directory, select “Sharing Options”). This will allow us to easily share a directory, over that set of permissions on it (what's not too easy to do in Windows).