Re: Account maintenance utilites for Solaris
From: --==[bman]==-- (bmynars_at_verizon.net)
Date: 07/28/04
- Next message: Neil W Rickert: "Re: Account maintenance utilites for Solaris"
- Previous message: Krishna Tyner: "New: Sun Java Workstations"
- Next in thread: Neil W Rickert: "Re: Account maintenance utilites for Solaris"
- Reply: Neil W Rickert: "Re: Account maintenance utilites for Solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Jul 2004 02:17:25 GMT
Hi Erik,
Yes. Thanks. passwd in combination with 'finger' gave me roughly the
information I wanted to get. I still came up short with things last:
1. last unsuccessfully logon attempt
2. last unsuccessfully password change attempt
3. tty device user was connecting from
But I was able to cover all the the client's requirements called for. :-)
Erik C.J. Laan wrote:
> --==[bman]==-- wrote:
>
>>Let me explain what I mean. Currently we are in the process of making
>>our systems compliant with SOX (Sarbane/Oxley) requirements and some of
>>those requirements are to ensure that:
>>
>> 1. If a new account is created and a user does not login within 7
>>days, such an account is locked
>> 2. In case of our company, lock an account that was inactive for 45
>>or more days
>> 3. Remove an account that was inactive for x number of days.
>>
>>I have written a suite of shell scripts for HP-UX and everything has
>>been covered. I was approached, then, to help our SUN group to do the
>>same except some of the tools I have on HPUX are not on SUN for obvious
>>reasons in the way the handle accounts. HPUX has its 'trusted' mode
>>with strong C2 and other niceties and SUN uses PAM instead.
>>
>>My question is:
>> What SUN's native tool I can use to query an account and obtain the
>>following information:
>> - when account was last accessed successfully
>> - when account was last accessed unsuccessfully
>> - when account password was last successfully changed
>> - when account password was last unsuccessfully changed
>>
>>and finally, if possible at all
>> - what was the 'tty' device used last by the account
>>
>>
>>I was looking at passwd and logins but it's still not exactly what I am
>>looking for. On Linux systems, I have 'chage' command which gives me
>>pretty much all I need in PAM environment. Is there any equivalent of
>>this on SUN?
>
>
> Maybe you've already found this, but the passwd commando on Solaris has
> a -s option that can show you some account and password settings. The
> last-changed field (see also man shadow) is in days since 1/1/1970.
>
> HTH(at least somewhat), Erik
--
__ _
/ / (_)___ __ ___ __
/ / / / __ \/ / / / |/_/
/ /___/ / / / / /_/ /> <
/_____/_/_/ /_/\__,_/_/|_| is what you make of it.
- Next message: Neil W Rickert: "Re: Account maintenance utilites for Solaris"
- Previous message: Krishna Tyner: "New: Sun Java Workstations"
- Next in thread: Neil W Rickert: "Re: Account maintenance utilites for Solaris"
- Reply: Neil W Rickert: "Re: Account maintenance utilites for Solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|