func getGroupInfo(nameOrID string) (*Group, error) {
	cmd := exec.Command("getent", "group", nameOrID)
	data, err := cmd.Output()
	if err != nil {
		return nil, fmt.Errorf("Group with name/ID %s does not exist", nameOrID)
	}
	return parseGetentGroupOutput(string(data))
}
getGroupInfo returns group info by name or id
package system
import (
	"fmt"
	"os/exec"
	"strconv"
	"strings"
	"pkg.re/essentialkaos/ek.v12/strutil"
)
func IsUserExist(name string) bool {
	cmd := exec.Command("getent", "passwd", name)
	return cmd.Run() == nil
}
func IsGroupExist(name string) bool {
	cmd := exec.Command("getent", "group", name)
	return cmd.Run() == nil
}
func getUserInfo(nameOrID string) (*User, error) {
	cmd := exec.Command("getent", "passwd", nameOrID)
	data, err := cmd.Output()
	if err != nil {
		return nil, fmt.Errorf("User with name/ID %s does not exist", nameOrID)
	}
	return parseGetentPasswdOutput(string(data))
}