llxyzlll
作者llxyzlll·2011-02-16 09:18
其它·某银行

分别在HP-UNIX和IBM-AIX下锁定/解锁用户

字数 2290阅读 9716评论 0赞 0
在HP-UNIX下锁定用户:

# passwd -l wzk

测试:

# telnet 127.0.0.1
Trying...
Connected to 127.0.0.1.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX hptest B.11.23 U ia64 (te)

login: wzk
Password:
Login incorrect
login:

解锁(实际上就是为该用户设置空口令):

# passwd -d wzk

测试:

# telnet 127.0.0.1
Trying...
Connected to 127.0.0.1.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX hptest B.11.23 U ia64 (te)

login: wzk
Please wait...checking for disk quotas
(c)Copyright 1983-2003 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2003 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.

                  RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.


                  Hewlett-Packard Company
                  3000 Hanover Street
                  Palo Alto, CA 94304 U.S.A.

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
$

在AIX下锁定用户:

# chuser account_locked=true test88

测试:

# su - test88
$ su - test88
test88's Password:
3004-301 Your account has been locked; please see the system administrator.

3004-501 Cannot su to "test88" : No permission.
$

解锁:

# chuser account_locked=false test88

测试:

# su - test88
$ su - test88
test88's Password:
$

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

X社区推广