Skip to content

fix: use gpasswd instead of removed groupmems for local groups - #282

Open
jakub-vavra-cz wants to merge 1 commit into
SSSD:masterfrom
jakub-vavra-cz:groupmems
Open

jakub-vavra-cz wants to merge 1 commit into
SSSD:masterfrom
jakub-vavra-cz:groupmems

Conversation

@jakub-vavra-cz

Copy link
Copy Markdown
Contributor

groupmems was dropped from recent Fedora; manage /etc/group membership with gpasswd -a/-d for users and gpasswd -M for nested group members.

Assisted-by: Cursor

groupmems was dropped from recent Fedora; manage /etc/group membership
with gpasswd -a/-d for users and gpasswd -M for nested group members.

Assisted-by: Cursor
@alexey-tikhonov

Copy link
Copy Markdown
Member

A note for reviewer: please make sure it works on C8S

@thalman thalman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also re-base please.

group = self._name
if isinstance(member, LocalGroup):
return (
f"current=$(getent group '{group}' | cut -d: -f4); "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you for readability sake use f""" here instead multiple lines?

group = self._name
if isinstance(member, LocalGroup):
return (
f"current=$(getent group '{group}' | cut -d: -f4); "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants