Skip to content

Commit

Permalink
containerlab: Change not in user group hint to user usermod instead o…
Browse files Browse the repository at this point in the history
…f gpasswd
  • Loading branch information
vista- committed Jan 17, 2025
1 parent 30815ca commit 69b654e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func checkAndGetRootPrivs(_ *cobra.Command, _ []string) error {
}

if !slices.Contains(effUserGroupIDs, clabGroup.Gid) {
return fmt.Errorf("user '%v' is not part of containerlab admin group 'clab_admins' (GID %v), which is required to execute this command.\nTo add yourself to this group, run the following command:\n\t$ sudo gpasswd -a %v clab_admins",
return fmt.Errorf("user '%v' is not part of containerlab admin group 'clab_admins' (GID %v), which is required to execute this command.\nTo add yourself to this group, run the following command:\n\t$ sudo usermod -aG clab_admins %v",
currentEffUser.Username, clabGroup.Gid, currentEffUser.Username)
}

Expand Down

0 comments on commit 69b654e

Please sign in to comment.