Skip to content
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

Cannot authenticate to Windows share using account with no password #9

Open
nlykkei opened this issue Feb 22, 2021 · 0 comments
Open

Comments

@nlykkei
Copy link

nlykkei commented Feb 22, 2021

When attempting to authenticate to Windows share using account with no password, I get the following error:

2021/02/22 15:26:35 cannot open smb://10.211.55.5/test_share: operation not permitted

In Windows, I've disabled Password protected sharing in Control Panel\Network and Internet\Network and Sharing Center\Advanced sharing settings, and everything works using e.g. smbclient and pysmb, but not libsmbclient-go.

I'm using cmd/smb/main.go as the SMB client.

Even by hardcoding the password as "" in main.go, I get the above error.

NOTE: If I set a password for my Windows account, then main.go works by using the specified username/password.

How can I use libsmbclient-go to authenticate to Windows shares using an account with no password?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant