Active / Non Active users ?

Hey,

I have few Questions :

  1. How to Check/Find who all are the users accessing the server using their id ?

  2. How to Check who is the active user or non active user (whose id exists but the access privileges has been removed) ?

I am presently using AIX5.3 as a server.
Please suggest the needful.

Thanks a lot in advance.
Varun Gupta:b:

For the first question : use who or finger and you'll see who's logged. For the second - how is the access policy organized - controlled by which application or audit control in your case ? We can't be aware of the policy your organization is using or have applied on your servers.

Hey,

Thanks for the reply.
I wanted to know who all has the access to the server to login as a user.
List of users who has logged in ever to the server, how to get the list of those ?
I knew how to check all the current logged in users ( as you said : finger , who ).

Who all has access to the server you can controll with the /etc/passwd and the /etc/shadow together.

Just take all the user from /etc/passwd and look in the shadow which one is expired or locked and you have your list.

cheers
gnom