-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
users.conf can't work multiple users Wrong password #28
Comments
I have the same issue |
Try adding a newline at the end of the users.conf file. If this resolves the issue, feel free to reach out to me again. |
You can delete and recreate the container, then share the detailed logs with me again. 在users.conf的最后一行加个回车,再删除容器重新创建容器试试,还有问题的话,发我个log看看吧。 |
Same issue here, when my users.conf don't break all samba, it just won't allow me to log in "wrong password"
logs :
|
@KintonHiryuu |
I did all my test with the new line at the end as you stated in your first reply, if i wasn't doing it, the last user wasn't taken any way so i had no choice. |
Does this setting samba:1000:samba:1001:Samba work? Can you log in using samba:Samba? Also, how did you destroy the container and rebuild it? |
iirc samba:1000:samba:1001:Samba didnt work, but I'll setup a test server after some sleep for this (utc+2, it's 5am here) so i can be sure And for how did i rebuild the container, I'm using portainer since like i said I'm quite new and it's convenient to simply click the rebuilt button it gives me, i don't know how exactly porting handle it, but i can assure it deletes the whole container and make a new one like it's never been installed I'll not install it and do it manually on the test server, just to be 100% sure |
ok, test done, with rebuilding each times (deleting and recreating the container with the same env & volumes) when users.conf contains
when users.conf contains 2 users >
it create user/group samba, create group user, and user When removing the new line, same as above but i was able to login with
Since i was at it, i tested with ; at the end of lines just in case, both Added a third user,
i'm also starting to suspect windows of doing wierd.....things, but i can't explain any of them i'm not familiar with samba a/o windows caching enough to be sure what's going on hope it can somehow be usefull ? if you need more just ask i'll stay looking around |
@KintonHiryuu |
@KintonHiryuu |
You can delete and recreate the container, then share the detailed logs with me again. 在users.conf的最后一行加个回车,再删除容器重新创建容器试试,还有问题的话,发我个log看看吧。 I did it, but the problem remains |
The users.conf file in the compressed archive you provided does not contain the users 'WinPVE' and 'QNAP', but they are present in your log. Is there any hidden information, or what’s going on? |
I finally found the root cause of this issue: 1.smb.conf and users.conf should be LF files, but if they are CRLF files, the previous bash script would treat the \r before the \n at the end of the line as part of the password. I have added logic to remove the \r character in the latest code, and it is now working properly. However, it is still recommended to use the LF format. 2.Some users have users.conf files that don't have a newline or a blank line at the end, causing the last line's configuration to be unrecognized. This issue was fixed in the last commit, and now all content can be correctly recognized. Many thanks to @100730088 @tanghulu0608 @KintonHiryuu for conducting the tests and pinpointing the issue, which ultimately led to the successful resolution of the problem. |
@KintonHiryuu try the newest docker. |
Can't wait to, but I'm on trip so I'll do on next week, thanks a lot |
like:
Use Admin Samba to log in, prompting that the password is incorrect.
I used it Change the password to 123, can log in.
The text was updated successfully, but these errors were encountered: