Page 1 of 1

ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 28 Mar 2022, 11:17
by fcd47308
Good morning everyone!

I wanted to have a password when accesing my share (an atatched usb drive) using samba over my network

I followed the guide in the faq section, that is I I nstalled thw authorisation module, assigned a password, rebooterd the player and replaced the following lines in the ORIGINAL settings file as follows

for
security=share
guest account=root
guest only = yes

I put
security=user
guest ok=No
force user=root

I try to access the share from a windows 10 machine on which I installed through additional features support for smb1 and I am getting the message while trying to logon that the network credentials are wrong, that is windows 10 is not accepting root and passwork, complaining that either user or password are wrong
Any suggestions?

ASUS O!Play R1 (amp_r13)
NoGui
Bootcode 23

Re: ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 29 Mar 2022, 21:17
by Virtual
and the meaning of the password in the home network?
ps windows-10 evil

Re: ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 30 Mar 2022, 19:46
by fcd47308
(cut) overquoting! Forum rules 4.19!

Thank you very much for replying

You see, I have very poor neighbours (they are anyway poorer than I am....) and I have allowed them access to Internet through my router, since they cannot afford to pay for Internet.

That's whay I asked for password support. since I store also family photos, documents etc on this share. I trust those people, but I believe control is better.

Do you think its possible? If not, then I will simply dettach the usb drive!

ASUS O!Play R1 (amp_r13)
NoGui
Bootcode 23

Re: ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 30 Mar 2022, 23:19
by Virtual
yes it is possible, but!
IMHO you should think about DMZ on the router, it's safer than letting neighbors into the local network

Re: ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 31 Mar 2022, 08:19
by fcd47308
Is it possible by just editing the settings file? If yes, can you suggest?

ASUS O!Play R1 (amp_r13)
NoGui
Bootcode 23

Re: ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 31 Mar 2022, 23:43
by Virtual
yes it is possible
1.
исправить файл: /usr/local/etc/mos/etc/init/S12samba (закомментировать строку)
#guest ok=yes
Снимок экрана от 2022-04-01 00-41-34.png
Снимок экрана от 2022-04-01 00-41-34.png (37.8 KiB) Viewed 26254 times

2. назначить пароль SAMBA USER root и перезапустить службу
Снимок экрана от 2022-04-01 00-39-57.png
Снимок экрана от 2022-04-01 00-39-57.png (42.11 KiB) Viewed 26254 times

Re: ASSIGN PASSWORD TO ACCESS SAMBA SHARE

PostPosted: 03 Apr 2022, 10:04
by fcd47308
I followed your guide and it worked out of the box.

Thank you very much for your time and effort!!

ASUS O!Play R1 (amp_r13)
NoGui
Bootcode 23