[Samba] configuring Shares, Users with Samba 4.0.5 as an AD DC
man at ulrichschneider.de
Mon May 20 03:52:38 MDT 2013
Getting the error message ... raised the following question ... is it
not possible to run samba as an avtive directory domain controller and
use winbind/wbinfo at the same time?
uli at uli-sd30v10:/data$ sudo /usr/local/samba/sbin/samba -i -M single
samba version 4.0.5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2012
At this time the 'samba' binary should only be used for either:
'server role = active directory domain controller' or to access the
ntvfs file server with 'server services = +smb' or the rpc proxy with
'dcerpc endpoint servers = remote'
You should start smbd/nmbd/winbindd instead for domain member and
standalone file server tasks
uli at uli-sd30v10:/data$
Am 20.05.2013 10:50, schrieb Pekka L.J. Jalkanen:
> Hi Thierry,
> that command is called "wbinfo". For details, run "wbinfo --help". Some
> examples below:
> To find the Windows sid of an uid, run:
> "wbinfo -U 3000000" (or any other uid).
> That sid can in turn be used to find the username:
> "wbinfo -s S-1-5-32-544"
> So if you want to combine the whole thing into one, just run:
> "wbinfo -s `wbinfo -U 3000000`"
> Which should output something like:
> "BUILTIN\Administrators 4"
> The number following the username just tells how many Windows users or
> groups are represented by that uid, if I'm understanding it correctly.
> For reversed direction (to get the uid from username), try:
> "wbinfo -S `wbinfo -n Administrator`"
> Although in most cases you should be able to just run "getent passwd
> username" to find the uid, whether the account is a windows account or not.
> Pekka L.J. Jalkanen
> On 20.5.2013 11:16, Thierry Gonon wrote:
>> Hello Ulrich,
>> It's simply the uid (user id) that are given by samba.
>> You should have a command to find who ius which number, but I don't know it yet (I'm new to samba too !!)
>> Thierry Gonon
>> Archéologue - Administrateur Systèmes et Réseaux
>> Responsable Informatique
>> Chronoterre Archéologie
>> ----- Mail original -----
>> De: "Ulrich Schneider" <man at ulrichschneider.de>
>> À: samba at lists.samba.org
>> Envoyé: Lundi 20 Mai 2013 10:03:25
>> Objet: Re: [Samba] configuring Shares, Users with Samba 4.0.5 as an AD DC
>> I created two folders as different win users in a samba share.
>> 1. Folder is testadmin created as user Domain Administrator
>> 2. Folder is testschueler2 created as user schueler2
>> ls -la
>> drwxrwxr-x+ 2 3000000 users 4096 Mai 20 09:57 testadmin
>> drwxrwxr-x+ 2 3000026 users 4096 Mai 20 09:59 testschueler2
>> What`s that number starting wird 3... and how do I know that this number
>> belongs to wich user?
More information about the samba