i trying retrieve list of users not present in particular group.
we trying validate application user credentials through unix aix server , user should present in particular group. now, need list of users not in group (for our testing various test scenarios).
i tried below command list users in group.
"lsgroup -a users groupname"
please me how use not ! operator above command or let me know if there other way users not in group.
--suriya
the easiest way string couple of commands. following example list users not in specific group.
lsuser -a groups | grep -v $group |awk '{print $1}'|sort
Comments
Post a Comment