Hi
I don’t know how to create a smb user and I don’t want to configure files
Can it be done from within luci?
I have tried adding users to the network shares template as follows
but to no avail, I can’t give them a password with smbpasswd in ssh because it doesn’t recognize the users kuku and luisa
This is my template smb config from luci
[global]
netbios name = |NAME|
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
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
valid users = kuku, luisa
Thanks
I have followed your advice and created the user, then I gave this user a password through smbpasswd -c.
However I still get a password error message when trying to connect to smb with FE file explorer.
The connection with samba is established but I get an error saying current password is not correct
Any suggestion re what can I do now?
Thanks
Ps. Do I need to set a mask for the shared files or directories?
I realize that I get the password error not when I enter in SMB but when I try to get to the next step ie. I see the samba server I click and I am asked for user password
I go through it and then I get a folder view with the name of the shared directory of the usb drive, which does not have any password.
When I get to get in there is when I get the password error
Please post all code, config, and log output within code boxes, as all three need to be monospaced.
The samba user, or the group the user is apart of, must own the directory and files within in order to access. You also should add the following to /etc/samba/smb.conf.template:
And yet, even though asked twice, and shown how to add code boxes, you again post config output outside of a code box...
As I mentioned earlier, code boxes are there for monospaced text for a reason, and one of the reasons is so that replies and threads are not cluttered by code outside of a code box since
non-monospaced fonts do not display monospaced output correctly and are not programmed to.
non-monospaced fonts make the output of monospaced content more difficult to read and follow
it leads to users who are trying to help to have to try and accurately parse inaccurate formatting & word wraps, of which will lead to inaccuracies in the posted content and the help received.
Since you appear determined to ignore the request, and clicking a link showing you how to add code boxes appears to be asking too much:
The Three Ways to Add a Code Box
Automatically:
Highlight output, then click the pre-formatted text button [ </> ] on the toolbar
Manually:(I prefer this way as it's faster)
Syntax Highlighed:
Three back ticks [ ``` ] on new line, output on next lines, three back ticks on new line OR
Three back ticks, whitespace, syntax [ ``` bash ] on new line, output on next lines, three back ticks on new line
No Syntax Highlighting:
Three back ticks, whitespace, "text" [ ``` text ] on new line, output on next lines, three back ticks on new line
Your smbpasswd file and template look ok to me, If you have an old user/password saved in Windows for that server you might try deleting them, but other than that I'm out of ideas unfortunately.
i can access the usb hard drive with ssh but the router/samba does not even show up in windows file explorer.
The router does appear in ios with a file explorer app but then i can not access the shared directory
When i enter the ip adress in the web browser i am redirected to the router administration page
2 and 3. I can not even see the router in windows explorer/network, so i cant access anything
Remove line 1, as root should not be a Samba user: smbpasswd -x root
/etc/config/samba: config samba
Change option workgroup 'WORKGROUP' to option workgroup 'lan'
where lan is the local domain name set by the router in /etc/config/dhcp
(value set for option domain)
The local domain should also be mirrored on Windows as the Wokgroup name the PC belongs to
Open an admin PowerShell terminal
[WinKey] + [R]
Type: powershell
[CTRL] + [SHIFT] + [ENTER]
cmd /c 'wmic computersystem where name="%computername%" call joindomainorworkgroup name="Workgroup-Name"'
Where Workgroup-Name is the local domain set by the router
Reboot: shutdown /r
/etc/config/samba: config sambashare
Change both mask values to 0755
Change create_mask to 0660
Change dir_mask to 0775
Change path = /mnt/sda1 to
an actual directory within the sda1 partition: path = /mnt/sda1/kuku
root owns the root of all mounts, as OpenWrt is a single user OS, so the share must be a directory under /mnt/sda1, and that share directory must be owned by the Samba user and/or the Samba user's group.
Once the above steps are done, issue the following commands:
@cbx200 I read your Private Message...looking over my previous notes, I only changed the following line from default:
#Change security = user to security = share
I also have this note:
Ports 137-139 are for NetBios/Name resolution. Without it you will have to access machines by IP address opposed to NetBIOS name. Example \\192.168.1.100\share_name opposed to \\my_file_server\share_name
So port 445 is sufficient if you can work with IP addresses only.
I also noticed that you renamed a section peliculas and specified a user named kuku.