Hi All, We're migrating our environment to AD. The question we have is about the users in /etc/passwd. Our users are in the TDB and /etc/passwd. What is the best way to purge the users from /etc/passwd? If we remove them manually, the user info cannot be enumerated using getent passwd. Any suggestions/ Thanks, RT
Have you set up winbind and nsswitch.conf? https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member#Testing_the_Winbindd_Connectivity https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC Kris Lou klou at themusiclink.net On Thu, Aug 9, 2018 at 7:06 PM, Rob Thoman via samba <samba at lists.samba.org> wrote:> Hi All, > > We're migrating our environment to AD. The question we have is about the > users in /etc/passwd. Our users are in the TDB and /etc/passwd. What is the > best way to purge the users from /etc/passwd? If we remove them manually, > the user info cannot be enumerated using getent passwd. > > Any suggestions/ > > Thanks, > > RT > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Hi Kris, passwd: files winbind group: files winbind RT On Fri, Aug 10, 2018 at 3:04 PM, Kris Lou via samba <samba at lists.samba.org> wrote:> Have you set up winbind and nsswitch.conf? > > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_ > Domain_Member#Testing_the_Winbindd_Connectivity > https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC > > > Kris Lou > klou at themusiclink.net > > On Thu, Aug 9, 2018 at 7:06 PM, Rob Thoman via samba < > samba at lists.samba.org> > wrote: > > > Hi All, > > > > We're migrating our environment to AD. The question we have is about the > > users in /etc/passwd. Our users are in the TDB and /etc/passwd. What is > the > > best way to purge the users from /etc/passwd? If we remove them manually, > > the user info cannot be enumerated using getent passwd. > > > > Any suggestions/ > > > > Thanks, > > > > RT > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On Fri, 10 Aug 2018 12:06:10 +1000 Rob Thoman via samba <samba at lists.samba.org> wrote:> Hi All, > > We're migrating our environment to AD. The question we have is about > the users in /etc/passwd. Our users are in the TDB and /etc/passwd. > What is the best way to purge the users from /etc/passwd? If we > remove them manually, the user info cannot be enumerated using getent > passwd. > > Any suggestions/ > > Thanks, > > RTThis all depends on just where /etc/passwd is, if it is on a DC, then you really shouldn't use this as a fileserver, you can, but it isn't recommended ;-) If it is a Unix domain member, then it should work. Either way, it is probably just a matter of setting up libnss correctly. Rowland