当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > RedHat6.0大量建帐号的方法

Unix/Linux
vi的命令
如何判断Zend Optimizer安装成功
Linux常用的日志文件和常用命令
linux如何修改主机名
linux如何删除非空文件夹|linux怎么删除非空文件夹
gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpect
vsftpd 配置例子
vsftpd 配置
vsftpd如何配置虚拟用户:PAM + PgSQL + FreeBSD-4
vsftp中文说明
VSFTP配置实例
vsftpd 配置(中)
怎么使用户能访问ftp,但不能远程登录
httpd: Could not determine the servers fully qualified domain name, using 127.0.
测试apache是否安装成功
apache 80端口无法打开|连接
make_sock: could not bind to address 0.0.0.0:443
kernel-headers下载
kernel-headers-2.2.1-4
找不到config.inc.php 没有config.inc.php这个文件

Unix/Linux 中的 RedHat6.0大量建帐号的方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 54 ::
收藏到网摘: n/a

(Copyright 1999 OLS3 All rights reserved.)

一. 使用内建的工具 newusers 及 chpasswd

先编辑帐号档,每一列须按密码档的格式书写.

(请善用文书编辑程式的拷贝功能来大量产生)

例: 一个帐号档名为 new_alist

stu001::600:600:stu:/home/stu001:/bin/bash
stu002::601:601:stu:/home/stu002:/bin/bash
stu003::602:602:stu:/home/stu003:/bin/bash
stu004::603:603:stu:/home/stu004:/bin/bash
stu005::604:604:stu:/home/stu005:/bin/bash
stu006::605:605:stu:/home/stu006:/bin/bash


建帐号:

newusers < new_alist


执行 pwunconv


编辑密码对照档:

例: 建一个密码对照档, 档名为 new_plist

stu001:密码
stu002:密码
stu003:密码
stu004:密码
stu005:密码
stu006:密码


建密码:

chpasswd < new_plist


执行 pwconv

二. 使用大量建帐号的工具程式: cmpwd

目前已开放下载测试http://linux.tnc.edu.tw/dl/cmpwd-1_0.tar.gz