Certificates for samba share

As far as I understand Windows shares use the samba protocol? Is there any non-password version where you use some kind of key/certificate? Thinking of something like the authorized keys in Linux ssh.

What I want to have is the "net use z: \server\path" but without using a password.


This is only possible in two scenarios:

  • Domain environment: your computer and the file server must be members of the same domain (let's just skip domain trusts for sake of brevity) and you must be logged in to your computer with a domain user account; also, your domain user account needs proper access rights on the target file share.
  • Non-domain environment: your computer and the file server must be in the same workgroup and the file server must have a local user account with the same username and password as the one you are using on your computer; also, the local user account on the file server needs proper access rights on the target file share.

If no one of these contidions are met, you'll need to provide a username and a password; it's not possible to authenticate against Windows file shares using certificates or SSH keys.