[Samba] Computer accounts belonging to groups, using winbind on file server
jmhunter1 at gmail.com
Sun Sep 11 18:03:05 UTC 2016
Some time ago I reluctantly moved DC functionality off my file server and
onto a separate machine, due to the well-known challenges using the same
machine as both a file server and a DC. This went mostly fine, with one
exception - I have one piece of functionality that worked before, but I
still don't have working now.
I use wpkg for software distribution, having all relevant computer accounts
be a member of a group (lets' call it sw-dist) and setting the ownership of
my /data/wpkg directory on the server appropriately so that all members of
that group (i.e. all relevant computer accounts) can access the files - see
below. I am using rfc2307 attributes to specify UIDs and GIDs where I can.
This worked just fine when the file server was also a DC (I was using sssd
at the time for user/group resolution on the machine) but I can't work out
how to get it working now.
Normal user accounts work fine, but if I try to get information on a
computer account, I can't:
[root at fileserver ~]# wbinfo -i "computer$"
failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND
Could not get info for user computer$
This is probably explained by me not seeing the option to allocate a UNIX
UID / GID to a computer account in ADUC, of course - it shows me different
options instead and doesn't have the box to specify UID/GID etc.
Nothing shows up in 'net cache list' on the file server, either, for this
[root at fileserver ~]# net cache list | grep -i computer
The group itself can be resolved just fine, even though the computer
accounts can't - and it shows that the computer accounts are definitely
members of the group in question:
[root at fileserver ~]# wbinfo --group-info sw-dist
All of this inevitably leads to the key directories in question not being
accessible by the computers who need them. When the computer account
connects to the file server, its group memberships don't really seem to
work. I suspect that sssd had different behaviour to winbind in this regard.
Has anybody else successfully served out files to a computer account
belonging to a specific group, using samba and winbind? I don't really see
how I can practically have computer accounts as a member of a group if I'm
[root at fileserver ~]# getfacl /data/wpkg
getfacl: Removing leading '/' from absolute path names
# file: data/wpkg
# owner: root
# group: sw-dist
# flags: -s-
"If we knew what it was we were doing, it would not be called research,
- Albert Einstein
More information about the samba