0

I have unix users authenticating to an PDC (via winbind) and want to have the primary group of those users a local unix group (e.g. www-data).

users have the group "domain users" with gid 10006 (as the gid winbind mapping)

idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum groups = yes
winbind enum users = yes
winbind use default domain = yes
winbind nested groups = yes

but want that the primary group is 33 for all users (www-data)

how to achieve that?

dr gonzo
  • 1
  • 1

3 Answers3

1

Assign the group to users on the pdc in this way

sudo usermod -g www-data foo_user
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
0

Not what you are exactly asking but may be you could use Identity Management for Unix on your AD and then use ACL (setfacl) on you linux machine to allow access to the filesystem.

0

You should review this post as it mostly solved consistent uid/gid mapping for me

Configure Winbind to get User Info from Windows

rjmoggach
  • 953
  • 1
  • 7
  • 11