[Solved] Problem with NIS group

Brief description of the problem

Error message when I click on NFS shares from the Weu-UI when one is owned by a NIS group.

Detailed step by step instructions to reproduce the problem

I have activated NIS on the Web-UI. No problem with NIS groups on command line (ls, chgrp).

Web-UI screenshot

‘getgrgid(): gid not found: 203’

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception yield File "/opt/rockstor/src/rockstor/storageadmin/views/user.py", line 106, in get_queryset return combined_users() File "/opt/rockstor/src/rockstor/storageadmin/views/ug_helpers.py", line 36, in combined_users gname = get_groups(uo.gid).keys()[0] File "/opt/rockstor/src/rockstor/system/users.py", line 89, in get_groups entry = grp.getgrgid(g) KeyError: 'getgrgid(): gid not found: 203'

Hello @frantz,

Looks like there is no group with gid (groupID) of 203.

What happens if you do the following from the cli:

getent group “group name”

Replace “group name” with the name of the NIS group that should be mapped to gid 203.

getent group tech


I’ve updated to version 3.9.2-42 and now it’s ok.

Sorry for the inconvenience.