User expiry

Hi

When a new user is created and their password is set to require changing at first login, is it possible to expire the account if they don't login whithin 10 days ?

Thanks

Nigel

I don't think so. You'll have to code this yourself.

Yes it's possible. If you have root access - once you create the account from the command line type:

smitty user

It will take you to the user menu. Arrow down to:
change / show characteristics of a user & press enter...

In that menu you can set the expiration date of the user as desired. There are ways to shell script this (which I haven't done yet)

Hope this helps - let us know how you make out

Thanks!

@linuxlearner17, I do not believe that's what the OP wants.

They want to expire the account IF the password is not changed (in 10 days).

Using those menus will expire the account, no matter what.

@purdym

I read it to mean once the user is created and if they don't login after 10 days then expire the account. I know when accounts are created in AIX they are created with the change password upon first login flag set. I believed he meant that once the account is created if they don't login in a certain amount of days disable it all together...

Apologies for the confusion!

@garwoon

Apologies if I misread what you were asking...