OpenWrt One - Knowledge share

  • Setup guest writeable SMB share on internal M.2 SSD.

Not sure if the right or most direct method, so please correct. Was just working from bits of info scattered around the place.

Installed the M.2 then fired up the One.
Installed: 2fsprogs, luci-app-samba4 & block-mount via LuCI.
Logged into the One via SSH, ran commands mentioned here OpenWrt One - Setup, Install, and Discussion - #22 by cpswan :

mkfs.ext4 /dev/nvme0n1
mkdir -p /mnt/nvme
mount /dev/nvmen01 /mnt/nvme

Then lost some time messing about and ended up remounting via LuCI's Mount Points.
Also struggled to see menu options for some of the installed packages. Reboot sorted that.

Created the samba share pointing at mounted path, allowed guest etc.
Was now getting warnings when trying to browse from Windows about insecure guest logons. Updated group policy: Computer Configuration\Administrative Templates\Network\Lanman Workstation\Enable insecure guest logons to enabled. Also think this regkey tweak would have also worked: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\AllowInsecureGuestAuth = 1.

Could now browse the share with 'nobody' username but couldn't write / create files or folders.
Created sub dir and recreated samba share after running following.

mkdir /mnt/nvme/data
chown -R nobody /mnt/nvme/data

Was now able to write and create.

Happy with what I've got currently. I'd be interested to see any responses of how I should have done it.

1 Like