Skip to content
Advertisement

Tag: irb

Ruby: how to access group info from /var/db/group.db

RHEL/CentOS 8.x, Ruby 2.5.5, irb 0.9.6 We have a specialized set up that keeps user and group information in /usr/local/etc/[user|group] and a custom Makefile to add that information to /var/db/[group|passwd].db accordingly. I am trying to get the list of groups a user belongs to, in Ruby, after login. I’m relatively new to the language, and have just read the documentation

Advertisement