[solved]1.10.0 smb password won't work

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

ysy
Posts: 56
Joined: Sat Oct 28, 2017 12:24 pm
Location: Hong Kong !!

[solved]1.10.0 smb password won't work

Post 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
Last edited by ysy on Mon Nov 13, 2017 11:18 am, edited 3 times in total.

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: 1.10.0 smb password won't work

Post by Lantis »

What is your settings used and resting method?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ysy
Posts: 56
Joined: Sat Oct 28, 2017 12:24 pm
Location: Hong Kong !!

Re: 1.10.0 smb password won't work

Post 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.

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: 1.10.0 smb password won't work

Post 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?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ysy
Posts: 56
Joined: Sat Oct 28, 2017 12:24 pm
Location: Hong Kong !!

Re: 1.10.0 smb password won't work

Post 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.

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: 1.10.0 smb password won't work

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ysy
Posts: 56
Joined: Sat Oct 28, 2017 12:24 pm
Location: Hong Kong !!

Re: 1.10.0 smb password won't work

Post by ysy »

it works!

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: 1.10.0 smb password won't work

Post by Lantis »

https://github.com/ericpaulbishop/gargoyle/pull/680

Believe i have all behaviour fixed now.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: 1.10.0 smb password won't work

Post by Lantis »

I just realised I never told you what file to find that fix in.
Nice detective work! 8-)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ysy
Posts: 56
Joined: Sat Oct 28, 2017 12:24 pm
Location: Hong Kong !!

Re: 1.10.0 smb password won't work

Post by ysy »

thanks again for everything! ;)

Post Reply