整批改mail 帳號

回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

整批改mail 帳號

文章 yehlu »

http://www.hmes.kh.edu.tw/~jona/redhat/ ... ccount.htm

二、批次更改學生帳號的密碼
2.1 用 qe 將 student.txt 的最後一個欄位 user id 全部刪除
  student.txt 的格式為:username:password

2.2 批次更改學生在 Linux 上的密碼
  chpasswd 是系統內一個批次更改密碼的指令

chpasswd < /tmp/student.txt  或 /usr/bin/chpasswd < /tmp/student.txt

     
     student.txt 所在位置仍為 /tmp

SQL
select mail,"m",mail,"y",substr(birth,6,2),"m",substr(birth,9,2) from user where vacate = 0 and mail <> '0' and mail <> ''
回覆文章

回到「Linux」