# SMB

### Editing SMB shares on linux

1 - Open the config file at ` /etc/samba/smb.conf`

2 - Edit the SMB file

```
[ShareName]
    path = /path/to/share
    browseable = yes
    writable = yes
    valid users = user1, user2
```

3 - Save &amp; restart smbd

```bash
 sudo systemctl restart smbd
```


### SMB Share options

`browsable = yes/no` Whether the share should be listed when clients request a list of shares.

`Guest ok = yes/no` guests can access without a password, set `read only` to `yes` to just be guest read only `guest ok = yes`

### Editing SMB Users

<div class="c-item" id="bkmrk-creating-an-smb-user"><div class="c-item-body">Creating an SMB user `sudo smbpasswd -a new_username`</div><div class="c-item-body">Listing all SMB users `pdbedit -L `</div><div class="c-item-body">Changing an SMB user's password `sudo smbpasswd username`</div></div><div id="bkmrk-">  
</div><div id="bkmrk--1">  
</div>