13,420
edits
Changes
no edit summary
<ol><li value="4">Append (add) the following parameter to the '''home section''' so that only your user account can access that share:</li></ol>
valid users = <yourSenecaID>
<ol><li value="5">Use Create a Samba account and password for yourSenecaID by issuing the following command:<br>'''smbpasswd-a <yourSenecaID>''' command to create a samba account for yourself</li></ol> {{Admon/tip|Changing Existing Samba Account Passwords|If you need to change a user's existing Samba account password, you can issue the following command as root: '''smbpasswd username'''.}} <ol><li value="6">Use the '''smbpasswd''' command to create a samba account for yourself</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''' (It will show you a list of all available shares.)</li></ol>