想用網頁修改系統密碼

本區專門提供 Mac OS X 使用者交換使用心得

版主: ross_ttbryanchangdigdogchester

回覆文章
內容
發表人
eliotjs
新生訓練中
文章: 15
註冊時間: 12/26/2001 1:01 am
來自: Taiwan
聯繫:

想用網頁修改系統密碼

#1 文章 eliotjs »

現在使用OS X server 架站與Mail server

想寫一個利用網頁來讓使用者自行修改系統密碼
而不是用Terminal 模式下的 passwd 指令

想請教大家如何著手

Thanks

Eliot
fddi1
留言破百
文章: 188
註冊時間: 05/03/2001 1:01 am
來自: USA/Seattle, WA
聯繫:

想用網頁修改系統密碼

#2 文章 fddi1 »

If the user is in MacOS X, "passwd" won't work. Since all the information is stored in NetInfo. Not quite sure how you can extract information out of NetInfo, but you may want to take a look at the NetInfo guide from Apple.
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

想用網頁修改系統密碼

#3 文章 bryanchang »

you can use nicl or niutil to do so.
fddi1
留言破百
文章: 188
註冊時間: 05/03/2001 1:01 am
來自: USA/Seattle, WA
聯繫:

想用網頁修改系統密碼

#4 文章 fddi1 »

And I would also consider the security of the setup. Assuming you are writing a perl script to make the system calls of the utilities Bryan mentioned above, I would add some SSL layer to make the link more secure.
eliotjs
新生訓練中
文章: 15
註冊時間: 12/26/2001 1:01 am
來自: Taiwan
聯繫:

想用網頁修改系統密碼

#5 文章 eliotjs »

收到

謝謝大家

Eliot
頭像
ulysses
討論區管理員
文章: 2475
註冊時間: 05/18/2001 1:01 am
來自: Forgotten Realm
聯繫:

想用網頁修改系統密碼

#6 文章 ulysses »

我提供一下在 RedHat 下的玩法,就是把指令寫進 CRON 中讓他下一分鐘執行的時候自己改密碼。CRON 是 ROOT 權限所以不會發生 nobody 權限不足的問題。
回覆文章