[Samba] Samba local user without /etc/passwd

Rowland Penny rowlandpenny241155 at gmail.com
Thu Jul 9 11:19:14 UTC 2015


On 09/07/15 11:15, Gionatan Danti wrote:
> On 09/07/15 10:34, Rowland Penny wrote:
>>
>> A bit lost here, if you are using samba as an AD client, you cannot have
>> a local user with the same name as an AD user. Users are either 'local'
>> or 'domain', I do not really understand your concept of a 'virtual' 
>> user.
>>
>> Rowland
>>
>
> In short: while my samba server is connected to the AD domain, I would 
> also like to have some local (non domain) user for other tasks.
>
> It is my understanding that for a local samba user I _need_ to create 
> the relative unix user (using useradd) and then use the samba-provided 
> tool smbpasswd. I simply wonder if it is possible to create local 
> users using _only_ smbpasswd (or equivalent), without messing with the 
> real local unix user table stored in "/etc/passwd" (hence the world 
> "virtual).
>
> Regards.
>

No, with an AD domain, a local user is just that, a local user, you *do 
not* add them to AD, so if you require local users, just add them with 
'useradd', do nothing else.

There are *no* local samba users with AD.

Rowland




More information about the samba mailing list