Start a shell.
Open the configuration file /etc/samba/smb.conf as root.
Use the following command:
sudo vi /etc/samba/smb.conf
• To enable editing, press the I key.
• In the section [global], add the following entry:
usershare max shares = 100
Save and exit the editor.
Sharing directories is now enabled on your computer.