From 2200fa1483f4a2ad0d5ce63d483f8b8fd707e72c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Dec 2025 13:42:08 +0000 Subject: [PATCH] Add instructions for additional Samba shares after setup After configuring the Primary share, the script now displays: - How to edit /etc/samba/smb.conf with nano - Example share configuration block - How to restart smbd/nmbd services - How to verify with testparm --- ubuntu-post-install.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/ubuntu-post-install.sh b/ubuntu-post-install.sh index ad5845b..754b667 100644 --- a/ubuntu-post-install.sh +++ b/ubuntu-post-install.sh @@ -634,6 +634,35 @@ SAMBA_CONFIG echo " Share name: Primary" echo " Path: $ACTUAL_HOME/drives/primary" echo " Access: \\\\$(hostname)\\Primary (Windows) or smb://$(hostname)/Primary (Mac/Linux)" + echo "" + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" + echo "ADDING MORE SAMBA SHARES" + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" + echo "" + echo "To add another share, edit the Samba config file:" + echo "" + echo " sudo nano /etc/samba/smb.conf" + echo "" + echo "Add a new section at the end:" + echo "" + echo " [ShareName]" + echo " comment = Description of share" + echo " path = /path/to/folder" + echo " browseable = yes" + echo " read only = no" + echo " writable = yes" + echo " valid users = $ACTUAL_USER" + echo " create mask = 0775" + echo " directory mask = 0775" + echo "" + echo "Save (Ctrl+O, Enter) and exit (Ctrl+X), then restart Samba:" + echo "" + echo " sudo systemctl restart smbd nmbd" + echo "" + echo "Verify the share is active:" + echo "" + echo " testparm -s" + echo "" else echo "✗ Samba installation failed, skipping configuration" fi