Operating System - HP-UX
1827707 Members
2723 Online
109967 Solutions
New Discussion

When does an account created

 
yc_2
Regular Advisor

When does an account created

Hi,

How to check when an account was created ?


YC
5 REPLIES 5
KapilRaj
Honored Contributor

Re: When does an account created

no idea but ,

try samlog. You can do a grep on that.

kaps
Nothing is impossible
Satish Y
Trusted Contributor

Re: When does an account created

1) grep user /etc/passwd
2) grep user /etc/group
3) check whether user's auth file is present for e.g. user name is lee then
/tcb/files/auth/l/lee file should be present and u remove encrypted password and give new passwd from cmd line
4) check whether home directory is there, if not create the directory
5) Try to login with the user id.

Cheers...
Satish.
Difference between good and the best is only a little effort
Michael Tully
Honored Contributor

Re: When does an account created

This depends on if your system is trusted or not. You can as suggested find it in the user database if it exists. If it does not you may find in the samlog or OLDsamlog. If the user has never changed their $HOME/.profile or $HOME/.exrc etc the date stamp on the file should tell you.

HTH
Michael
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: When does an account created

Hello,
Try the command logins |grep "new account".


Thanks.
G Manikandan
Ravi_8
Honored Contributor

Re: When does an account created

Hi,
check the /etc/passwd file if the created userid exist then account is created else no.
never give up