SOLVED Directory group membership not working

francisaugusto

Contributor
Joined
Nov 16, 2018
Messages
153
Hi,
I am running FreeIPA and TrueNAS Scale. Users and groups are shown using getent, but when I use `id user`, then only the user primary group is shown with the gid and groups attribute.
Is there any problem with the mapping? I am using the default
Code:
map group member uniqueMember

But I am not sure what is wrong here.
 

francisaugusto

Contributor
Joined
Nov 16, 2018
Messages
153
I wonder if it has anything to do with the fact that the nscd.service is failing:
Code:
Feb 26 18:56:37 freenas.med-lo nscd[1581512]: 1581512 /var/run/nscd/socket: No such file or directory
Feb 26 18:56:37 freenas.med-lo nscd[1581510]: child exited with status 1
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Control process exited, code=exited, status=1/FAILURE
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Failed with result 'exit-code'.
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Scheduled restart job, restart counter is at 4.
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 /var/run/nscd/nscd.pid: No such file or directory
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring file `/etc/passwd` (1)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring directory `/etc` (2)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring file `/etc/group` (3)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring directory `/etc` (2)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring file `/etc/hosts` (4)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring directory `/etc` (2)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring file `/etc/resolv.conf` (5)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring directory `/etc` (2)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring file `/etc/services` (6)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 monitoring directory `/etc` (2)
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 disabled inotify-based monitoring for file `/etc/netgroup': No such file or directory
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 stat failed for file `/etc/netgroup'; will try again later: No such file or directory
Feb 26 18:56:37 freenas.med-lo nscd[1581514]: 1581514 /var/run/nscd/socket: No such file or directory
Feb 26 18:56:37 freenas.med-lo nscd[1581513]: child exited with status 1
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Control process exited, code=exited, status=1/FAILURE
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Failed with result 'exit-code'.
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Scheduled restart job, restart counter is at 5.
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Start request repeated too quickly.
Feb 26 18:56:37 freenas.med-lo systemd[1]: nscd.service: Failed with result 'exit-code'.
 

francisaugusto

Contributor
Joined
Nov 16, 2018
Messages
153
I removed a map for group, choose RFC2307BIS and used "accounts", and not the "compat" tree, and it worked. Now group membership is showing, though I don't know if nscd had anything to do with it with my previsionary fix (I created a missing folder that it was complaining about and crashing - /var/run/nscd).
 
Top