DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Administering user accounts

Locking inactive accounts

To set a limit on inactivity when creating an account, use the command:

useradd -f n login_name

where n is the maximum number of days allowed between uses of a login. To change the inactivity limit on an existing account, substitute the usermod(1M) command for useradd(1M).

To set a default value used for all new accounts, set the INACT parameter in /etc/default/useradd file using the System Defaults Manager or the defadm(1M) command:

defadm useradd INACT=n


Next topic: Creating a temporary account
Previous topic: Controlling account expiration

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004