look at user group linux code example Example: check user group console linux groups groups userName-Here