Hello,
I have successfully setup a samba v2 share on my x86 router, which is accessible by my Android, iOS, Linux and Windows devices.
share name "nas" pointing to /mnt/ext_hdd
User A - nobody, no password, read only
User B - smb_admin, with password, read + write
User A is working fine on all devices.
User B is also working fine, except for windows clients they cannot login. Even if I set a blank password for user B.
I hope you guys can help me out here, below my config.
/etc/passwd
root:x:0:0:root:/root:/bin/ash
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false
smb_admin:*:1000:65534:smb_admin:/var:/bin/false
/etc/config/samba
config samba
option workgroup 'WORKGROUP'
option name 'OPENWRT-ROUTER'
option description 'OpenWrt SMB Server'
option homes '0'
config sambashare
option path '/mnt/ext_hdd'
option browseable 'yes'
option guest_ok 'no'
option read_only 'no'
option users 'smb_admin'
option name 'nas_a'
option create_mask '0700'
option dir_mask '0700'
config sambashare
option browseable 'yes'
option name 'nas'
option path '/mnt/ext_hdd'
option read_only 'yes'
option guest_ok 'no'
option create_mask '0700'
option dir_mask '0700'
option users 'nobody'
/etc/samba/smb.conf.template
[global]
netbios name = |NAME|
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|
bind interfaces only = yes
deadtime = 30
enable core files = no
encrypt passwords = true
invalid users = root
local master = yes
map to guest = Never
max protocol = SMB2
min protocol = SMB2
min receivefile size = 16384
null passwords = yes
passdb backend = smbpasswd
security = user
smb passwd file = /etc/samba/smbpasswd
use sendfile = no
veto files = System Volume Information/$RECYCLE.BIN
/etc/samba/smbpasswd
nobody:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:31D6CFE0D16AE931B73C59D7E0C089C0:[U ]:LCT-00000001:
smb_admin:1000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:31D6CFE0D16AE931B73C59D7E0C089C0:[U ]:LCT-00000001:
I currently have a nas folder for nobody and a nas_a folder for smb_admin, to test things out.
Goal is to only have the nas folder with r/w access for smb_admin