Create account that expires in 3 days

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Create account that expires in 3 days
# 8  
Old 08-27-2011
chage -l <username>

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Create another root account

Hi I would like to create another root account, for example root2. I added a new user named root2 and set it's uid and gid ( in /etc/passwd ) to 0. Then I logged in ( account root2 ) and the server asked to change the password, so I changed. And the problem happend. The password of both root... (15 Replies)
Discussion started by: bobochacha29
15 Replies

2. Red Hat

how to create hidden account in centos

hi everybody, iam using 32bit centos 6.2 on my machine, and i want to create hidden user 'test' , i mean to say while iam starting my centos at GUI mode, at that time that username 'test' should not appear at list of users, only i can use that username is command line. logging in through... (1 Reply)
Discussion started by: paruhang
1 Replies

3. Solaris

Help me create new user account

I want create user. That user should be login to any server without asking password. How? tell me in detail. :wall: (3 Replies)
Discussion started by: Navkreddy
3 Replies

4. Solaris

Create sft account in unix

How to create sftp account in UNIX end. Anyone guide me on this. (2 Replies)
Discussion started by: vijill
2 Replies

5. UNIX for Dummies Questions & Answers

Create a unix account

Hi, Please could some advise how to create a unix account, from the root account. thanks you (2 Replies)
Discussion started by: venhart
2 Replies

6. UNIX for Dummies Questions & Answers

Change Account to not lock account if password expires

I have access to 15+ UNIX boxes at work, and I do not consistently log onto all of them over time. When I do try to access one I havent been on in awhile, my account is locked as the password has expired. I need to request to the UNIX SA's that the password expiration is 90 days and that if it... (1 Reply)
Discussion started by: stringzz
1 Replies

7. UNIX for Dummies Questions & Answers

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,... (1 Reply)
Discussion started by: LordJezo
1 Replies

8. UNIX for Dummies Questions & Answers

Create POP 3 Account via Shell

This may be so simple that I am overlooking it somewhere, but search as I may, I cannot find an answer anywhere! I am running a Linux box with sendmail and many different virtual domains. I cannot however, figure out how to setup a pop3 account for a specific domain. For example, I have a... (0 Replies)
Discussion started by: kermite
0 Replies

9. UNIX for Dummies Questions & Answers

How to create an account on UNIX-server

How can i create an account on my UNIX-server? 1. The files, can't be deleted by that person. (or better: he can only delete his own upped files, or can delete files, but can't see mine) 2. He can upload files. 3. I can delete and see everything. Hope you guys can help me. B.T.W. nice... (1 Reply)
Discussion started by: SEC
1 Replies
Login or Register to Ask a Question
SHADOW(5)							File Formats Manual							 SHADOW(5)

shadow - encrypted password file DESCRIPTION
shadow contains the encrypted password information for user's accounts and optional the password aging information. Included is Login name Encrypted password Days since Jan 1, 1970 that password was last changed Days before password may be changed Days after which password must be changed Days before password is to expire that user is warned Days after password expires that account is disabled Days since Jan 1, 1970 that account is disabled A reserved field The password field must be filled. The encryped password consists of 13 to 24 characters from the 64 character alphabet a thru z, A thru Z, 0 thru 9, . and /. Refer to crypt(3) for details on how this string is interpreted. The date of the last password change is given as the number of days since Jan 1, 1970. The password may not be changed again until the proper number of days have passed, and must be changed after the maximum number of days. If the minimum number of days required is greater than the maximum number of day allowed, this password may not be changed by the user. An account is considered to be inactive and is disabled if the password is not changed within the specified number of days after the pass- word expires. An account will also be disabled on the specified day regardless of other password expiration information. This information supercedes any password or password age information present in /etc/passwd. This file must not be readable by regular users if password security is to be maintained. FILES
/etc/passwd - user account information /etc/shadow - encrypted user passwords SEE ALSO
chage(1), login(1), passwd(1), su(1), passwd(5), pwconv(8), pwunconv(8), sulogin(8) AUTHOR
Julianne Frances Haugh ( SHADOW(5)