Accessing smb v2 and v3 shares with ShareView
Chris Gransden (337) 1207 posts |
v0.03 arriving shortly. In the mean time the download is back to v0.01. |
Grahame Parish (436) 481 posts |
I’ve tried a few variations, such as leaving the workgroup/domain parameter empty in users/txt and using the domain\username format for the user part, but still no luck so far. |
Chris Gransden (337) 1207 posts |
New version available (v0.03) here. |
Paul Sprangers (346) 524 posts |
I know it’s still alpha, but I surely would like to understand why ShareView can’t contact my Windows11 PC. When I do a On the PC side, I’ve disabled SMBv1 support. When I re-enable it, I can share everything with LanMan, so I suppose that the sharing things shouldn’t be the problem, should they? |
Chris Gransden (337) 1207 posts |
Sounds like when you had SMBv1 enabled it allowed guest access. You just need a local user to log on with. Then you can do,
Then give access to that user for the required shares. |
Chris Gransden (337) 1207 posts |
There’s another updated version (v0.04) available here. New in this version, Allows single file/folder deletes. |
Paul Sprangers (346) 524 posts |
With a space after the username, I get a ‘Wrong URL format’ error, and without the space I get a “STATUS_LOGON_FAILURE”. |
Chris Gransden (337) 1207 posts |
No space after username. I had to put it in otherwise the formatting on the forum went wrong. STATUS_LOGIN_FAILURE means the password is incorrect in the user/txt file for that user. |
Paul Sprangers (346) 524 posts |
It’s the same password (and the same user) that is used by LanMan. Apologise for being so annoying, but I’m wandering in the dark. |
Stuart Swales (8827) 1357 posts |
Paul, on your Windows 11 system could you try (in a Command Prompt)
|
Chris Gransden (337) 1207 posts |
You could trying resetting the password on W11 for that user or create a new user and use that. |
Steve Pampling (1551) 8170 posts |
At a Windows administrator command prompt:
Then, to help him know what to reproduce for testing, let Chris know the output, which should be something like this
|
Alan Adams (2486) 1149 posts |
Isn’t one significant difference between SMB1 and SMB2 the encryption of the password? |
Paul Sprangers (346) 524 posts |
Thank you Stuart. I taught me that there’s a difference between my user name in the Users directory on the C drive, and the name with which I logon. Moreover, my Microsoft account has its own user name. But whatever name I enter, I always get the same result (Status is ‘Disconnected’). Strangely, on LanMan I always get a connection with my logon user name (the one that is displayed when I switch the PC on), and the Microsoft password. But that doesn’t work for ShareView, or smb-share-enum, nor any of the combinations that I tried.
I’ve done that, but to no avail. |
Paul Sprangers (346) 524 posts |
When I do that, I get the following output that differs from yours at some points:
|
Paul Sprangers (346) 524 posts |
I actually don’t think so, because when I enable SMB1, I have to disable password encryption, otherwise LanMan refuses to connect. But then again, I’m wandering in the dark. Even more mysterious: I no longer can do a *smb-share-enum in a TaskWindow! When I do, I get the error: File ‘smb-share-enum’ not found. Now I’m wandering in even more darkness… |
Chris Gransden (337) 1207 posts |
I compared your output for Get-SMBServerConfiguration to mine and they are the same.
If you copy smb-share-enum into the !Boot.Library folder it will always be found.
You hadn’t previously mentioned this. Are you using v0.04? It will show the actual error message on the screen. If you go back and mount the share as smbv1 from RISC OS. Then run powershell as admin and type the command, get-smbsession | select-object -property * It will show the user the session is connected as. |
Paul Sprangers (346) 524 posts |
Surely, I’m doing things wrong again, but this is the output, after having established a LanMan98 connection through SMBv1 from my 4té2:
|
Paul Sprangers (346) 524 posts |
I should add that ‘Toegang geweigerd’ means ‘Access denied’ |
Stuart Swales (8827) 1357 posts |
You need to run the powershell as Administrator, Paul |
Paul Sprangers (346) 524 posts |
Stone me, I thought that I had the Administrator version of the powershell on my task bar. But you’re right. It appears that I’m logged on as a guest, and that it doesn’t matter what I enter after ‘User name:’ in the LanMan window. Here’s the proper output:
|
Paul Sprangers (346) 524 posts |
Trying to logon with ShareView and every combination of user names and passwords that I can think of, I always get a STATUS_LOGON_FAILURE. This is with version 0.04. |
Stuart Swales (8827) 1357 posts |
Ignore the one in C:\Users – that’s just some garbled crap that Windows invented to go along with your long Microsoft account name. I’d create a local user with a simple name like pauls (as in ye olden days, and you shouldn’t even need to log on as that) and add that user to the share. Then use that username on your remote clients. |
Paul Sprangers (346) 524 posts |
That’s it! Thank you, Stuart. I finally managed to get access to Windows through ShareView. I can’t say that all the secrets of file sharing are now clear to me – and they probably will never be – but this big little mystery is solved now. Many thanks again! |
Chris Gransden (337) 1207 posts |
Another new version available (v0.05) here. New in this version, It’s now possible to create a folder in the current folder. |