Hi, I'm getting super weird behavior from samba and OpenWrt.
I have USB stick plugged into my router and auto-mounting and all that works fine.
I've installed samba, added users, but basically I can't connect to the folder with any of the created users.
If I change the password with 'smbpasswd -a <username>' I can't connect anymore and it always returns 'invalid credentials' error. Now I'm at the point where I can only connect to the share if I use user 'nobody' and password '123'. If I change this password to anything else (with smbpasswd -a nobody), I can't connect anymore. Adding new users/passwords doesn't work either.
Guest login doesn't seem to work anymore, but worked at first.
Any suggestions? Should I just try a complete firmware reset or am I missing something here?
Here are my configs:
/etc/passwd file:
Code:
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
mozart:*:65535:65534:mozart/var:/bin/false
/etc/samba/smb.conf:
Code:
[global]
netbios name = OpenWrt
display charset = UTF-8
interfaces = 127.0.0.1/8 lo 192.168.1.1/24 br-lan
server string = OpenWrt
unix charset = UTF-8
workgroup = WORKGROUP
browseable = yes
deadtime = 30
domain master = yes
encrypt passwords = true
enable core files = no
guest account = nobody
guest ok = yes
invalid users = root
local master = yes
load printers = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
obey pam restrictions = yes
os level = 20
passdb backend = smbpasswd
preferred master = yes
printable = no
security = user
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY
syslog = 2
use sendfile = yes
writeable = yes
[share]
path = /mnt/sda1
valid users = nobody,mozart
read only = no
guest ok = no
create mask = 0700
directory mask = 0700
/etc/config/samba:
Code:
config samba
option name 'OpenWrt'
option workgroup 'WORKGROUP'
option description 'OpenWrt'
option homes '0'
config sambashare
option name 'share'
option path '/mnt/sda1'
option read_only 'no'
option create_mask '0700'
option dir_mask '0700'
option users 'nobody,mozart'
option guest_ok 'no'
Any help apprecieated