[Samba] "groups" command not working as expected
chrisa at acs-info.co.uk
Wed Aug 28 09:35:26 MDT 2013
Update on this.
It appears that the groups command is working, it takes a while to filter
through for some reason (like, about 15 minutes). Any ideas why it should
be so slow to update?
On 28 August 2013 16:17, Chris Alavoine <chrisa at acs-info.co.uk> wrote:
> Hi all,
> I can't seem to figure this one out.
> I have a test rig Samba 4 VM up and running nicely. Have imported my old
> Samba 3 directory and am using nslcd to get users and groups back to *nix.
> I have a perl login script which generates on-the-fly .bat scripts per
> user as they login using the root preexec and postexec commands in my
> smb.conf (which worked out of the box with Samba 4 surprisingly).
> My current issue is that I use the "groups user.name" command to list
> what groups that user is a member of. This is then parsed into my batch
> script and the users and mapped drives accordingly.
> The groups command appeared to be working ok, but I've just noticed that
> any changes I make to existing or new users aren't passed to the groups
> command. getent group and getent passwd still work ok but neither of these
> can list a users' groups in the manner that I need.
> Can anyone suggest an alternative method or a fix for the groups problem?
> Thanks in advance.
> ACS (Alavoine Computer Services Ltd)
> Chris Alavoine
> mob +44 (0)7724 710 730
ACS (Alavoine Computer Services Ltd)
mob +44 (0)7724 710 730
More information about the samba