refactor(samba): streamline install and configure recipes
Reorder and clarify Samba setup instructions across recipes. Remove redundant "Configure Samba" section from install. Consolidate "Create Samba User" in install recipe. Relocate service verification to post-restart in configure recipe. Correct 'smbd --version' command.
This commit is contained in:
@@ -12,7 +12,7 @@ sudo apt install -y samba
|
||||
## Verify Installation
|
||||
|
||||
```bash
|
||||
smbd --version
|
||||
sudo smbd --version
|
||||
```
|
||||
|
||||
Expected output:
|
||||
@@ -39,26 +39,6 @@ systemctl status nmbd --no-pager
|
||||
|
||||
Both services should be reported as **active (running)**.
|
||||
|
||||
## Configure Samba
|
||||
|
||||
Replace the default configuration.
|
||||
|
||||
```bash
|
||||
sudo cp smb.conf /etc/samba/smb.conf
|
||||
```
|
||||
|
||||
Validate the configuration.
|
||||
|
||||
```bash
|
||||
testparm
|
||||
```
|
||||
|
||||
Expected output:
|
||||
|
||||
```text
|
||||
Loaded services file OK.
|
||||
```
|
||||
|
||||
## Restart Samba
|
||||
|
||||
```bash
|
||||
@@ -82,7 +62,7 @@ sudo ss -tulpn | grep smb
|
||||
|
||||
Expected output should include ports **139** and **445**.
|
||||
|
||||
## Create Samba User (Optional)
|
||||
## Create Samba User
|
||||
|
||||
```bash
|
||||
sudo smbpasswd -a <username>
|
||||
|
||||
Reference in New Issue
Block a user