Jan Dusatko
Cadet
- Joined
- Jul 12, 2013
- Messages
- 7
I would like to use flat database, similar to old "domain" structure (without any LDAP/DNS). Creating the configuration and allowed extended attributes allow me to change rights for users, however I cannot see any group except local for the client computer. The same configuration I often use in regular smb.conf file on FreeBSD and Linuxes.
When I digging deeper, I found that no group_mapping.tdb has been created. There are only secrets.tdb in /usr/local/etc/samba directory.
Because this file not exists, I tried to manually create synchronization. Extracting from /etc/group groups between GID 1000 and 65533 and use the syntax:
net groupmap add ntgroup={GID_NAME} unixgroup={GID_NAME} rid=GID type=d
show me finally the group name in the explorer security tab . Attached some from well-known group (Domain Admins and so on ...) works nice. Currently, this script has been started after each restart of FreeNAS. Could someone can help me how can I make it persistent?
Regards
Jan
When I digging deeper, I found that no group_mapping.tdb has been created. There are only secrets.tdb in /usr/local/etc/samba directory.
Because this file not exists, I tried to manually create synchronization. Extracting from /etc/group groups between GID 1000 and 65533 and use the syntax:
net groupmap add ntgroup={GID_NAME} unixgroup={GID_NAME} rid=GID type=d
show me finally the group name in the explorer security tab . Attached some from well-known group (Domain Admins and so on ...) works nice. Currently, this script has been started after each restart of FreeNAS. Could someone can help me how can I make it persistent?
Regards
Jan