Page 1 of 2

[solved]1.10.0 smb password won't work

Posted: Wed Nov 01, 2017 9:25 am
by ysy
Hi all,

It seems that password protected smb/cifs shares CAN be accessed by all users.

-----log-----
Wed Nov 1 21:20:08 2017 daemon.err uhttpd[1784]: tr: short write
Wed Nov 1 21:20:08 2017 daemon.err uhttpd[1784]: tr: short write
Wed Nov 1 21:20:10 2017 auth.info passwd: Password for test changed by root
Wed Nov 1 21:20:12 2017 user.err syslog: error starting threads: errno 89 (Function not implemented)
Wed Nov 1 21:20:12 2017 daemon.err uhttpd[1784]: Command failed: Not found
Wed Nov 1 21:20:12 2017 user.err syslog: error starting threads: errno 89 (Function not implemented)
Wed Nov 1 21:20:12 2017 daemon.err uhttpd[1784]: Command failed: Not found

Re: 1.10.0 smb password won't work

Posted: Wed Nov 01, 2017 3:50 pm
by Lantis
What is your settings used and resting method?

Re: 1.10.0 smb password won't work

Posted: Wed Nov 01, 2017 9:03 pm
by ysy
1) create user 'test' with 4 digit password
2) create Subdirectory '/test', Share Name 'test', Share Type: cifs only, no Anonymous Access, Users With Access: 'test'
3) add and save
4) create test.txt with WinSCP. any user can access test.txt freely without entering password.

Re: 1.10.0 smb password won't work

Posted: Fri Nov 03, 2017 8:44 pm
by Lantis
I have tested this exactly as you have stated.

I observed the correct behaviour under Ubuntu.
I observed the correct behaviour under Windows AFTER rebooting.

Are you sure that this isn’t your client misbehaving rather than Gargoyle?

Re: 1.10.0 smb password won't work

Posted: Tue Nov 07, 2017 9:09 am
by ysy
Hi Lantis,

I conducted further test as follows: changed two smb shares with new passwords and tried accessing them, the first share did ask for passcode this time. But funny thing is, once I entered the correct password for share1, share2 that is protected by a different new password can be access straight away.

Re: 1.10.0 smb password won't work

Posted: Sat Nov 11, 2017 1:52 am
by Lantis
Uncomment out the line beginning with

Code: Select all

[ -n “$all_user_list” ]
Then reapply your share settings. This should fix the behaviour you are seeing, but destroys guest access.
I’m still looking into an all round solution.

Re: 1.10.0 smb password won't work

Posted: Sat Nov 11, 2017 4:11 am
by ysy
it works!

Re: 1.10.0 smb password won't work

Posted: Sat Nov 11, 2017 6:48 am
by Lantis
https://github.com/ericpaulbishop/gargoyle/pull/680

Believe i have all behaviour fixed now.

Re: 1.10.0 smb password won't work

Posted: Sat Nov 11, 2017 6:55 pm
by Lantis
I just realised I never told you what file to find that fix in.
Nice detective work! 8-)

Re: 1.10.0 smb password won't work

Posted: Mon Nov 13, 2017 5:35 am
by ysy
thanks again for everything! ;)