checklogin *
search cancel

checklogin *

book

Article ID: 203728

calendar_today

Updated On:

Products

CA Virtual Privilege Manager CA Privileged Identity Management Endpoint (PIM)

Issue/Introduction

Kindly share the commands to check the user status using checklogin

 

we need to check all the OS users in single command normally for single user we will use below command like wise we need to check all user by single command

AC> checklogin <user>
(<host>)
Login by USER <user> to host <host> is GRANTED
Stage: UACC check for Class of unprotected resource

AC>

Environment

Release : 12.8

Component : CA ControlMinder

Resolution

There is no built in command to do this, and, as you have probably discovered, wildcards do not work with checklogin.

However, here is an example of how you can do this in bash:

selang -c "su *" | sed -n "s/Data for USER '\(.*\)'$/\1/p" | while read U; do selang -c "checklogin $U"; done

 

The command lists all the users, extracts the user name from the output and then executes checklogin against the user.