Linux 大量建制帳號

<td bgcolor="#fffff1">
  <table width="479" style="table-layout: fixed; height: 86px">
    <tr>
      <td>
        <span class="postbody"><a title="http://phorum.study-area.org/viewtopic.php?t=27276" href="http://phorum.study-area.org/viewtopic.php?t=27276">http://phorum.study-area.org/viewtopic.php?t=27276</a> <a title="http://linux.vbird.org/linux_basic/0410accountmanager.php#manual_amount" href="http://linux.vbird.org/linux_basic/0410accountmanager.php#manual_amount"> http://linux.vbird.org/linux_basic/0410accountmanager.php#manual_amount</a></span>
      </td>
    </tr>
  </table>
</td>

for line in cat account.txt do account=echo $line | cut -d : -f 1 passwd=echo $line | cut -d : -f 2 useradd -m $account echo $account:$passwd | chpasswd done account.txt 格式: account:password


See also