User expiry


 
Thread Tools Search this Thread
Operating Systems AIX User expiry
# 1  
Old 05-13-2011
Tools 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
# 2  
Old 05-13-2011
I don't think so. You'll have to code this yourself.
# 3  
Old 05-16-2011
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!
# 4  
Old 05-17-2011
@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.
# 5  
Old 05-17-2011
@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...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Java expiry information

Hi, I have a requirement to check the expiry date of Java software installed in linux servers. We are using the below Java java version "1.8.0_51" Java(TM) SE Runtime Environment (build 1.8.0_51-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode) I am not sure... (3 Replies)
Discussion started by: nextStep
3 Replies

2. Shell Programming and Scripting

Password expiry send to individual user

Hi Folks, I am having a script which will send out the password expiry email notification with just the username to a common group id, but I am looking for a change in like: the password expiry email notification should send to an individual user account with their email id including the... (1 Reply)
Discussion started by: gsiva
1 Replies

3. UNIX for Advanced & Expert Users

expiry date for files?

Hi, Is there any way i can give an expiry date for files that i create? For example, i would like to get a file deleted automatically after 60 days from the creation date. Is there any possibility for this in Unix? Thanks, RRVARMA (3 Replies)
Discussion started by: RRVARMA
3 Replies

4. UNIX for Dummies Questions & Answers

Find user password expiry date

Does anyone know a simple way to find out the expiry date of my UNIX user password? I do not have root access to the box. Surely there is a way to so this... (4 Replies)
Discussion started by: oztoma
4 Replies

5. Shell Programming and Scripting

expiry of a linux id?

Hi, Can anyone suggest, how or from where we can understand the expiry time of a linux id, whether login or ftp? My concern is like, i want to know when the ftpid configured on an automated system will expire, so that i can configure some notice or email mentioning that the particular id... (1 Reply)
Discussion started by: DILEEP410
1 Replies

6. HP-UX

Certificate Expiry Dates

Hi, we are having the installed cerificates in our unix server's. The certificates are in following format : cacert.pem,cert8.db,ois294.sem,CertGenCAKey.der,ss_keystore.jks So i want to know the Expiry date for these certificates. how to get the valid FROM to TO dates for these kind of... (1 Reply)
Discussion started by: srujana
1 Replies

7. Solaris

passwd expiry

any one can help me from where this command passwd -s root fetching from...? so that i can write the script for cheking root password expiry which are expiring before 2 days and sent a mail... Please give me the script if u have....! :b: Solaris any version... (2 Replies)
Discussion started by: bullz26
2 Replies

8. Solaris

Emailing about password expiry for a user

How to create a mechanism that e-mails user/admin before password expiry. Assume 7 days in advance. Thanks in advance for your great help. Regards, Awadhesh (4 Replies)
Discussion started by: Awadhesh
4 Replies

9. UNIX for Advanced & Expert Users

doubt regarding user password expiry in unix

I want to know the command through which we can know the expiry date of the password. I tried chage but it is not working on my system please provide necessary information I am not using root I need info on user level (2 Replies)
Discussion started by: irshad
2 Replies

10. UNIX for Advanced & Expert Users

password expiry

Hi, under SUN Unix, in which file the expiry date of a user password is indicated ? Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies
Login or Register to Ask a Question