Hi guys, I have one FreeBSD server which will run Samba, and one windows client. I want the server to have two shares; each protected with their own password. So once i have connected the windows client to one share, when i click on the other a password-box should popup; with user-level security this does not work, Windows will use the same credentials as it used for the first share. So now i am trying share-level security. But how does it work? Documentation is lacking in my opinion; and google did not provide much help too. So i need: Security = share in my smb.conf. But what next? Given the two shares: [alpha] path=/alpha writable=yes [beta] path=/beta writable=yes I would expect i could put a "password = Jr23rJfd" in the share; since it's share-level security we shouldnt need to work with users. Some people on IRC said i should use smbpasswd -a, but that would just add the "root" user to the password database. How does Samba know to which share this password belongs? And one samba-user cannot contain two passwords so how do we create the next password? Why is documentation so unclear about this? If any of you guys could help; many thanks! - Veronica
Gerald (Jerry) Carter
2006-Dec-19 03:50 UTC
[Samba] Share-level security; how does it work?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fluffles wrote:> Hi guys, > > I have one FreeBSD server which will run Samba, and one windows client. > I want the server to have two shares; each protected with their own > password. So once i have connected the windows client to one share, when > i click on the other a password-box should popup; with user-level > security this does not work, Windows will use the same credentials as it > used for the first share. So now i am trying share-level security. > > But how does it work? Documentation is lacking in my opinion; and google > did not provide much help too. So i need:security = share has been deprecated. I'd recommend against it. cheers, jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFh2FXIR7qMdg1EfYRAp+gAKC+zMAHxyFdhau1pavmnpf1I9SG0QCg4Y5W xSLFT7lxaiqBPkaVUDfC1nQ=2XOe -----END PGP SIGNATURE-----