[Samba] samba4 PDC, smbstatus provides no info

Rowland Penny rowlandpenny at googlemail.com
Wed Nov 19 03:38:43 MST 2014

On 18/11/14 14:41, Jakub Kulesza wrote:
> guys, thank you for pointing that out. I'll guess that I'll need to cut the
> file serving functions to a different virtual machine. No problem there.
> Already did that when moving from gentoo samba 3.6 ntdomain to ubuntu samba
> 4.1 ADdomain.
> If it will solve the issue I will not get back to you :D.
> Another thing - since it's the winbind that is the problematic bit:
> - do I also need to have sysvol share on a different box?


> - will just cutting winbind from nsswitch.conf do the trick? I do not
> really need mapping username's to UIDs within my linux box.

You only need winbind on a DC if you want your users to actually log 
into the DC.

> - next question that I wanted to post is the problem with creating user
> home directories. If I create a new user in MMC and create his/hers home
> directory, it gets created in the proper destination but with wrong owner:
> the owner is root.

How are you creating the users home dir, if you are doing this on the 
Samba AD DC by the root user, then yes, they will be owned by root, 
because that is who is creating them. You would need to 'chown' them, 
i.e. if your user is called fred and is a member of the Domain User 
group and his home dir is in /home, then 'chown fred:Domain\ Users 

There is another way of doing this, automatically. When you set up your 
new member server  (full instructions are available on the wiki), 
investigate 'pam_mkhomedir' i.e. google it :-)
This will create the users homedir the first time they connect to it and 
with the correct ownership.


>   Can this be related? I have no problems with profile
> dirs, since those are created by the logged users themselves (automatically
> by the windows OS), for the home dirs I've created a hacky script that runs
> from crontab and chowns the directories :D
> 2014-11-18 15:06 GMT+01:00 Rowland Penny <rowlandpenny at googlemail.com>:
>> On 18/11/14 13:57, mots wrote:
>>> AW: [Samba] samba4 PDC, smbstatus provides no info
>>>      -----Ursprüngliche Nachricht-----
>>>> Von:Rowland Penny <rowlandpenny at googlemail.com  <mailto:rowlandpenny@
>>> googlemail.com>>
>>>> Gesendet: Die 18 November 2014 10:44
>>>> An:samba at lists.samba.org  <mailto:samba at lists.samba.org>
>>>> Betreff: Re: [Samba] samba4 PDC, smbstatus provides no info
>>>> OK, two things pop out at me, you seem to be using the AD DC as a
>>>> fileserver, this is not recommended
>>>> Rowland
>>> Why is this not recommended? I haven't found anything about it in the
>>> documentation.
>>> mots
>>>> --
>>>> To unsubscribe from this list go to the following URL and read the
>>>> instructions:https://lists.samba.org/mailman/options/samba
>> See here: https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO#Introduction
>> Rowland
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list