(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
编辑密码对照...[ 查看全文 ]