printable = no
create mask = 0765
*<ol><li="3">Now add a parameter to the global section that will limit access to the share so that only machines in your virtual network and those in the lab room will be able to access it.*</li><li>Add a parameter to the home section so that only your user account can access that share.*</li><li>Create a Samba password for user <learnid> with the command :<br>'''smbpasswd -a <learnid>*'''</li><li>If you need to, you can change a user's password by using the command :<br>'''smbpasswd <username>*'''</li><li>Confirm the user you created has been added using the following command :<br>'''pdbedit -L -v*'''</li></li>Test and review your configuration with the command :<br>'''testparm*'''</li><li>You can now start your Samba server (smb.service) and ensure it will start at boot. *</li><li>Modify the firewall on VM2 to allow samba traffic.*</li><li>Test if you have a connection with the command :<br>'''smbclient -U <learnid> -L vm2'''</li></ol>
*It will show you a list of all available shares.