Operating System - HP-UX
1822197 Members
3587 Online
109640 Solutions
New Discussion юеВ

Re: showing active and inactive user accounts

 
SOLVED
Go to solution
Anthony_141
Regular Advisor

showing active and inactive user accounts

Our SOX auditors want us to generate lists of active users every month.

We're hoping that someone has done this already - so we're wondering how we can generate a report showing users with active accounts on our HP-UX 11.11 and 11.23 systems.

Note that the 11.23 system's are Trusted but the 11.11 systems are non-Trusted.

So, our question is:

Is there a way to script a report of users with active accounts for both Trusted and non-Trusted systems? (or 2 different scripts)?

Any help would be appreciated!
5 REPLIES 5
Tim Nelson
Honored Contributor

Re: showing active and inactive user accounts

Trusted is easy, non-trusted will be different.

getprpw is the command to use to review, last login, last pw change, etc... for trusted systems.

Using a mix of "logins -a" and the "last" command for each user on 11.11 servers is about your only way to see when they last accessed the server.


Best of luck to you.
Steven E. Protter
Exalted Contributor
Solution

Re: showing active and inactive user accounts

Shalom,

passwd -sa should be a good start.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: showing active and inactive user accounts

Anthony_141
Regular Advisor

Re: showing active and inactive user accounts

Thanks to all for your help!
Anthony_141
Regular Advisor

Re: showing active and inactive user accounts

Commands noted above did the trick. Note that I added sort to the "passwd -sa" to make it easier to find the users we wanted (passwd -sa|sort).