[Samba] Unable to add AD users to local groups

Robert Martel r.martel at csuohio.edu
Thu Nov 17 19:32:16 UTC 2016

On 11/16/2016 04:34 PM, Rowland Penny via samba wrote:
> Provided that the group urbanweb exists in /etc/group and your users
> are shown by getent passwd or id, then you could try the unix tools
> i.e. usermod -G urbanweb ADDOMAIN\\1001362
> Rowland

Thank you for the response.

the matching UNIX group exists.  Been using local groups on Samba for years.

# getent passwd "ADDOMAIN\\1001362"
1001362:*:2091888:2000513:Robert M Martel:/home/1001362:/usr/bin/bash

wbinfo returns useful information

# wbinfo -i 1001362
1001362:*:2091888:2000513:Robert M Martel:/home/1001362:/usr/bin/bash

I can "su" to an AD user without a problem.

I can access shared folders as that user, I just cant add anyone to a 
samba local group.  My test Solaris 10 machine running same version of 
samba does not exhibit this problem.

usermod said the user did not exist - but I want to add user to Samba 
local group, not the UNIX group in /etc/group.

#  usermod -G urbanweb ADDOMAIN\\1001362
UX: usermod: ERROR: ADDOMAIN\1001362 is not a local user.


Robert M. Martel                 I met someone who looks a lot like you
System Administrator             She does the things you do
Levin College of Urban Affairs   But she is an IBM
Cleveland State University                           -Jeff Lynne
(216) 687-2214
r.martel at csuohio.edu

More information about the samba mailing list