So I've had a little play but can't get it to work... this is what I did.
In telnet:
Code:
smbpasswd -a settop
<entered a password>
<retyped the password>
Password changed for user settop
So nothing untoward there but not sure if there is anyway to check if it's actually done something?!
I then loaded up mod/etc/smb.conf and added in a new share at the bottom which I've called Media2. I saved the file and then restarted the Samba service via webif.
This is the full /mod/etc/smb.conf file. Scroll to the bottom to find the additional Meda2 share I created.
Code:
[global]
coding system = utf8
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
guest account = root
guest ok = yes
security = share
encrypt passwords = yes
null passwords = yes
server string = Samba HDR-Fox-T2
workgroup = WORKGROUP
netbios name = %h
client code page=850
character set = iso8859-1
case sensitive = yes
preserve case = yes
short preserve case = yes
interfaces = %h/24
hosts allow = 10.0.0.0/255.0.0.0 192.168.0.0/255.255.0.0 172.16.0.0/255.240.0.0 127.0.0.0/255.0.0.0
# The directories under /media are auto-generated and added to the included
# file. Any additional shares which are not under /media should be added
# to this file (/mod/etc/smb.conf).
include = /mod/etc/smb-hotplug.conf
# Retained for compatibility - this may appear as a small disk on the client
[Media]
comment = Media
path = /media
public = yes
writable = yes
browsable = yes
create mask = 0644
directory mask = 0755
hide dot files = no
[Media2]
comment = Media2
path = /media/My Music
public = yes
writable = yes
guest ok = no
browsable = yes
create mask = 0644
directory mask = 0755
hide dot files = no
valid users = settop
On my android (8) phone using X-plore I then tried to connect using the username 'settop' with a password. I could see 'Media2' in the share list but could not access it. I then tried removing the 'valid uses' line, saved, restarted the Samba service via webif and I found that I could then access the share Media2.
So it doesn't seem as if the user 'settop' is working properly / as expected.
I then also tried resetting the settop password to blank (by just pressing enter when prompted), the message: 'Password changed for user settop' appeared again so I assume it worked. However, again that made no difference to accessing the share Media2 when trying to access it and leaving the password field empty in either X-plore or Windows.
The windows PC did prompt for a username and password so at least that was a sign that it was expecting some credentials to be entered but it wouldn't accept the password whether it was blank or not.
Any thoughts? What have I missed out doing?
Thanks
Rodp
ps can someone explain what the 'hosts allow' line does / controls?