1827234 Members
2365 Online
109716 Solutions
New Discussion

Re: users accounts

 
zenus
Occasional Advisor

users accounts

I want to know all the accounts not used in hp-ux system

Bests regards
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: users accounts

Whatever ones aren't in /etc/passwd are never used.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: users accounts

Shalom,

The answer depends on how you authenticate. You can use a windows PDC for user authentication and have nothing on your system the system users.

Maybe you could re-phrase your question and make it easier for me to understand what you are trying to accomplish.

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
zenus
Occasional Advisor

Re: users accounts

is it possible to have all the users's accounts lists not used?
zenus
Occasional Advisor

Re: users accounts

is it possible to have all the users's accounts lists not used? in order to make an audit
Pete Randall
Outstanding Contributor

Re: users accounts

Seriously, some kind of a for loop invoking the finger command (which will show "never logged in" for the unused users) is probably a good start for you.


Pete

Pete
zenus
Occasional Advisor

Re: users accounts

there are users's accounts which were create and which are never used. I want to know them (make a trace)
Mark Ellzey
Valued Contributor

Re: users accounts

Zenus,

If you are refering to the system accounts such as bin, lp, etc, you don't need to worry about those. They are necessary for the operation of the OS and have not login rights anyway.

Don't delete them!

Regards,
Mark
Patrick Wallek
Honored Contributor

Re: users accounts

If your system is trusted, you can use:

# /usr/lbin/getprpw -m slogint
(wherre is the user name)

This will output a date and time. This date and time is the last time that the user successfully logged into the system.
TTr
Honored Contributor

Re: users accounts