Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

passwd(1)

getauthuid(3)

auth(5)

shexp(1)

Name

shexp − display password expiration information for a user

Syntax

shexp [−q] [username]

Description

The command shexp is used to display a user’s password expiration information. The specified username, or logname if no username is supplied, is converted to a UID by searching through the passwd file.  The UID is then used to look up the user’s entry in the Auth Data Base.  The password expiration information is then printed out in ctime(3) format.

% shexp
Expires Tue Dec  6 10:49:18 EST 1988

If the password has already expired the word Expires will be replaced with the word Expired. If password expiration is disabled for the particular user in question the output of shexp will be Never expires. 

Options

−qInstead of displaying the expiration date and time in ctime(3) format, shexp outputs it as three decimal numbers: the minimum password lifetime, the maximum password lifetime, and the password modification time. All three numbers are displayed as they are found in the auth database.

Restrictions

Only the super-user may obtain information about users with UIDs other than the real UID of the invoking process. 

Diagnostics

User not found in passwd data base. 
There is no entry in /etc/passwd for the specified username.

Cannot stat auth file. 
The auth database is missing (security features may not be enabled).

Insufficient privilege. 
An insufficiently privileged user is asking for information about a username with a UID different then their current real-UID. 

An exit value of 0 indicates a successful operation, any other exit status indicates an error. 

Files

/etc/auth.[pag,dir]
/etc/passwd

See Also

passwd(1), getauthuid(3), auth(5)
Security Guide for Users

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026