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:
@@ -46,15 +46,6 @@ sudo chown -R <username>:<username> /srv/samba
|
||||
sudo chmod -R 775 /srv/samba
|
||||
```
|
||||
|
||||
## Create Samba User
|
||||
|
||||
If the user does not already exist on Linux, create it first.
|
||||
|
||||
```bash
|
||||
sudo smbpasswd -a <username>
|
||||
sudo smbpasswd -e <username>
|
||||
```
|
||||
|
||||
## Validate Configuration
|
||||
|
||||
```bash
|
||||
@@ -74,6 +65,15 @@ sudo systemctl restart smbd
|
||||
sudo systemctl restart nmbd
|
||||
```
|
||||
|
||||
## Verify Services
|
||||
|
||||
```bash
|
||||
systemctl status smbd --no-pager
|
||||
systemctl status nmbd --no-pager
|
||||
```
|
||||
|
||||
Both services should be reported as **active (running)**.
|
||||
|
||||
## Verify Share
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user