chpasswd 中文man页面

系统
chpasswd 从系统的标准输入读入用户的名称和口令,并利用这些信息来更新系统上已存在的用户的口令。在没有用 -e 这个开关选项的情况下,口令将按明文的形式接收。如果使用了 -e 选项,口令将只能以加密的方式传递。

NAME

chpasswd - 成批更新用户的口令

总览

chpasswd [-e]

描述

chpasswd 从系统的标准输入读入用户的名称和口令,并利用这些信息来更新系统上已存在的用户的口令。在没有用 -e 这个开关选项的情况下,口令将按明文的形式接收。如果使用了 -e 选项,口令将只能以加密的方式传递。每行的具体格式如下所示:

               用户名新口令
 

用户名必须是系统上已存在的用户。输入的密码在必要时进行加密处理,如果口令文件具有时间特性,则同时更新。

此命令适用于大型的系统,在此类系统中,用户一般都是一次同时生成的,而用 adduser 和 passwd 口令来对其一一进行设置一般说往往比较慢。

注意事项

因为可以使用文件重定向进行输入,即:chpasswd < user&passwd-filename, 如果输入文件是按非加密方式传递的话,请对该文件进行适当的加密。

又见

passwd(1),useradd(8),newuser(8) 

#p#

NAME

chpasswd - update password file in batch

SYNOPSIS

chpasswd [-e]

DESCRIPTION

chpasswd reads a file of user name and password pairs from standard input and uses this information to update a group of existing users. Without the -e switch, the passwords are expected to be cleartext. With the -e switch, the passwords are expected to be in encrypted form. Each line is of the format

        user_name:password
 

The named user must exist. The supplied password will be encrypted as necessary, and the password age updated, if present.

This command is intended to be used in a large system environment where many accounts are created at a single time.

CAVEATS

The input file must be protected if it contains unencrypted passwords.

SEE ALSO

passwd(1), newusers(8), useradd(8)

AUTHOR

Julianne Frances Haugh (jockgrrl@ix.netcom.com)

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-16 10:59:16

pwconv中文man

2011-08-19 18:30:52

ipc中文man

2011-08-25 17:18:07

putc中文man

2011-08-15 13:53:19

stat中文man

2011-08-25 15:24:31

execlp中文man

2011-08-15 18:06:07

restore中文man

2011-08-15 15:45:04

xpdf中文man

2011-08-24 17:06:42

NOTIFY中文man

2011-08-15 14:42:28

uname中文man

2011-08-15 11:30:37

pwd中文man

2011-08-23 14:24:42

ping中文man

2011-08-15 11:01:45

2011-08-25 17:15:16

printf中文man

2011-08-25 16:44:46

ftrylockfil中文man

2011-08-23 17:24:11

userdel中文man
点赞
收藏

51CTO技术栈公众号