I ran into troubles installing samba server. I didn't know if I should user <code>security = user</code> or <code>security = share</code>. Default was <code>user</code> (as well as most docs) but all docs mentioned <code>smbpasswd</code> utility to create new users, which was not provided by portage. Using <code>share</code> I could use smbclient to login but was unable to mount CIFS partitions. Finally, I figured out <code>security=share</code> was deprecated, so I duckducked "gentoo smbpassword" and found I had to use <code>pdbedit</code> rather than <code>smbpasswd</code>. Now it works fine.