ログインしてさらにmixiを楽しもう

コメントを投稿して情報交換!
更新通知を受け取って、最新情報をゲット!

iPhone3G/touch jailbreak中級編コミュのpasswdコマンドを使ったら壊れちゃった!とき…

  • mixiチェック
  • このエントリーをはてなブックマークに追加
BSD Systemが不完全なようで…passwdコマンドを実行すると、
/etc/passwdおよび/etc/master.passwdファイルを壊してしまう
ことにより引き起こされる問題のようです

やっちゃうと、
勝手にリブートして、後は永遠とSpringBoardがクラッシュし続ける状態。
ひたすら Edit Home Screen
電源切ってもゾンビのように立ち上がるぅぅぅぅ…orz
表示が英語に…見たことが無いアイコンが…(iPhoneのやつ??)

sshではいって、パスワード設定ファイルを手書きで直しちゃいましょう。


壊れちゃった、/etc/passwdの例
*** 1,15 ****
#
! # 4.3BSD-compatable User Database
! #
! # Note that this file is not consulted for login.
! # It only exisits for compatability with 4.3BSD utilities.
! #
! # This file is automatically re-written by various system utilities.
! # Do not edit this file. Changes will be lost.
! #
! nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
root:*:0:0:System Administrator:/var/root:/bin/sh
! mobile:/smx7MYTQIi2M:0:0::0:0:Mobile User:/var/mobile:/bin/sh
! daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false
! unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false
_securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false


オリジナル(本来あるべき)/etc/passwd
--- 1,19 ----
+ ##
+ # User Database
+ #
+ # Note that this file is consulted when the system is running in single-user
+ # mode. At other times this information is handled by one or more of:
+ # lookupd DirectoryServices
+ # By default, lookupd gets information from NetInfo, so this file will
+ # not be consulted unless you have changed lookupd's configuration.
+ # This file is used while in single user mode.
#
! # To use this file for normal authentication, you may enable it with
! # /Applications/Utilities/Directory Access.
! ##
! nobody:*:-2:-2:Unprivileged User:/:/usr/bin/false
root:*:0:0:System Administrator:/var/root:/bin/sh
! mobile:*:0:0:Mobile User:/var/mobile:/bin/sh
! daemon:*:1:1:System Services:/var/root:/usr/bin/false
! unknown:*:99:99:Unknown User:/var/empty:/usr/bin/false
_securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false


壊れちゃった、/etc/master.passwd

# unless you have changed lookupd's configuration.
##
nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
! root:XXXXXXXXXXX:0:0::0:0:System Administrator:/var/root:/bin/sh
! mobile:/smx7MYTQIi2M:501:501::0:0:Mobile User:/var/mobile:/bin/sh
daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false
unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false
_securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false


本来の/etc/master.passwd

# unless you have changed lookupd's configuration.
##
nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
! root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh
! mobile:/smx7MYTQIi2M:0:0::0:0:Mobile User:/var/mobile:/bin/sh
daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false
unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false
_securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false

!(びっくりまーく)の行が、壊れたものとオリジナルとで異なっている部分。
nobody, mobile, daemon, unknownの行がこわれているようなので、そこを直しましょう。

クラッシュが止まった!

そこから強制終了、リセットでiTunesで復元。

元に戻して、再jailbreakしました。

コメント(0)

mixiユーザー
ログインしてコメントしよう!

iPhone3G/touch jailbreak中級編 更新情報

iPhone3G/touch jailbreak中級編のメンバーはこんなコミュニティにも参加しています

星印の数は、共通して参加しているメンバーが多いほど増えます。

人気コミュニティランキング