User Tools

Site Tools


systems:media_server:setup_smb_samba_shares

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
systems:media_server:setup_smb_samba_shares [2025/05/30 16:52] – created petersystems:media_server:setup_smb_samba_shares [2025/05/30 17:06] (current) – [Create a Samba User] peter
Line 44: Line 44:
  
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Test the Samba Configuration =====
 +
 +<code bash>
 +testparm
 +</code>
  
 ---- ----
Line 57: Line 65:
 <WRAP info> <WRAP info>
 **NOTE:**  Follow the prompts to create a password for the Samba user. **NOTE:**  Follow the prompts to create a password for the Samba user.
 +
 +Samba does not use the system account password, which is why it needs its own password.
 +
 +  * **-a** - This flag adds the existing linux user to the Samba user database.
 +    * This command searches for the username in the Unix user database and adds it to the Samba user database.
 +    * If not found, then the “smbpasswd” command will create as well as add the user to the Samba group.
 +
 +
 +
 </WRAP> </WRAP>
  
Line 67: Line 84:
 <code bash> <code bash>
 sudo systemctl restart smbd sudo systemctl restart smbd
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Remember to update any firewall rules to allow Samba traffic
 +</WRAP>
 +
 +
 +----
 +
 +===== Check the status of the service to confirm that Samba is working fine =====
 +
 +<code bash>
 +sudo systemctl status smbd
 </code> </code>
  
systems/media_server/setup_smb_samba_shares.1748623939.txt.gz · Last modified: 2025/05/30 16:52 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki