Make an account inactive after 90 days.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Make an account inactive after 90 days.
# 1  
Old 03-23-2007
Make an account inactive after 90 days.

Is this possible?

Say I create an account today and in 90 days I want it to be turned off.

Is this sort of thing possible using the built in components of a Unix system?

(Using Solaris 9)

I see things about password expires, but what if the person changes his password on the 89th day, wouldn't that then set it again for another 90 days?
LordJezo
# 2  
Old 03-23-2007
Code:
passwd -l {username}

for solaris, you can schedule this job in cron.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Simultaneously try to execute commands after connecting to remote account to one account

I have made password less connection to my remote account. and i tried to execute commands at a time. but i am unable to execute the commands. ssh $ACCOUNT_DETAILS@$HOST_DETAILS cd ~/JEE/*/logs/ (1 Reply)
Discussion started by: kishored005
1 Replies

2. UNIX for Dummies Questions & Answers

How to make each login shell history independent for same account?

Hello All, Many developers in our company use same application account to log in Linux Box for code development, how can i redirect my log in shell history to a different file to avoid history being shown to others or accidentally execute the same command which i or others executed? Thank you. (4 Replies)
Discussion started by: Ariean
4 Replies

3. Shell Programming and Scripting

Create account that expires in 3 days

I was hoping that somebody could help me out with this. I just deployed a new FTP server and I have a script that creates the new account. How would I go about having it expire 3 days after after creation? useradd -s /bin/false -m -p $pass $username (7 Replies)
Discussion started by: binary-ninja
7 Replies

4. AIX

How to list Inactive user account in AIX 5.3?

Hello, I have a situation, where I ask for to get a list of all inactive users (expire or locked in last 41 days). I looked into /etc/shadow (no such file in my server). I referred some old threads but not found useful information. I'm using AIX 5.3 .... I have total 1641 users in server. ... (5 Replies)
Discussion started by: sumit30
5 Replies

5. Shell Programming and Scripting

how i can make one ip access to ftp account and deny others

HI I want to make only one IP can access to ftp acount in cpanel or by shell can any body help me ? (1 Reply)
Discussion started by: elkadrey
1 Replies

6. Solaris

make an sftp account

Hi All, My application is connecting to a no of sites to get or put files. one script is using sftp user1@host1 to log into the account to put some files over there.But some other scripts are connecting to some other sites using ftp host2 user user2 passwd inside the script.But I... (1 Reply)
Discussion started by: megh
1 Replies

7. Solaris

List all inactive users who has not logged on since last 90 days

I need actuall script which List all inactive users who has not logged on since last 90 days Thanks in advance. Di! (17 Replies)
Discussion started by: haridham
17 Replies

8. UNIX for Dummies Questions & Answers

List all inactive users who has not logged on since last 90 days

Hi, Can I get a script to list out all the users, who has not logged on since last 90 days. Last command in not working due due to /var/adm/wtmpx is more than 2 GB. Thanks in advance. Regards, Roni (10 Replies)
Discussion started by: manasranjanpand
10 Replies

9. Linux

How to make a tool as 30-days evalution copy

Hi All, I am very curious to know that how to make a product/tool as evalution copy(trail version for 30days). I want to know this implemention process in linux(the tool is in Linux). If anybody have any scripts/articles/ideas please pass them to me. Please help me. Thanks in Advace,... (0 Replies)
Discussion started by: uday123
0 Replies
Login or Register to Ask a Question