[Samba] force re-authentication when accessing different shares
Rowland Penny
rpenny at samba.org
Mon Jan 21 15:00:43 UTC 2019
On Mon, 21 Jan 2019 15:24:53 +0100
Harald Glanzer via samba <samba at lists.samba.org> wrote:
> hello & thx for your fast response!
>
> i need a way to create samba shares without creating system user
> accounts:
>
> - add users via smbpasswd with unique password
> - no need for a corresponding useraccount in /etc/passwd
You will need to have your users shown by 'getent passwd', the OS must
know your users.
> - access to the corresponding shares should be independent from any
> domain (i.e. the share should be accessable
> via windows client)
Then Samba will need to run as a standalone server
>
> to come around the useraccount-restriction (as samba is getting
> information via getpwnam_r()) i think a nss module for database
> 'passwd' is necessary. i am starting to think that my implementation
> of _nss_<sourcename>_getpwnam_r() is wrong
>
> nevertheless, if you can think of any other solution without the need
> of interfacing with getpwnam - plz let me know!
>
I think you need to look into how Samba use the idmap backends
Rowland
More information about the samba
mailing list