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