實驗室有一台本來跑 Debian 的 Server
上面的Service要轉成 FreeBSD
轉換的第一天就發現一個大問題
密碼檔不相同
Debian是用 /etc/shadow ,但是 FreeBSD 是用 /etc/master.passwd
兩個檔案的內容不一樣,請問一下有沒有程式可以互轉的?
版主: 阿信
$ pwunconv
user_a:$1$亂碼:1001:1001::0:0:User &:/home/user_a:/bin/sh
user_a:$1$亂碼:12928:0:99999:7:::
name User's login name.
password User's encrypted password.
uid User's id.
gid User's login group id.
class User's login class.
change Password change time.
expire Account expiration time.
gecos General information about the user.
home_dir User's home directory.
shell User's login shell.
Login name
Encrypted password
Days since Jan 1, 1970 that password was last changed
Days before password may be changed
Days after which password must be changed
Days before password is to expire that user is warned
Days after password expires that account is disabled
Days since Jan 1, 1970 that account is disabled
A reserved field
pwd_mkdb -p /etc/master.passwd
請參考這個giive 寫:1. 關於步驟一,根據 /etc/shadow 這個檔案名字,Debian 應該是 shadow過的檔案,
所以我還需要去找將 shadow過的檔案 unshadow的辦法 ( 未完成)
正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客