0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOSでlocate

Last updated at Posted at 2025-09-08

locateのDBが更新できなくなった。MDMを乗り換えたあたりからか。原因は不明だけど解決したので記録しておきました。

macOS 15.6.1

このようにpassword変更プロンプトが出てきて、suにSorry!されるようになりました。

$ sudo /usr/libexec/locate.updatedb
Old password:
New password:
Retry new password:
su: Sorry!

/usr/libexec/locate.updatedb を1行ずつ手作業で実行して、解決策を見つけました。次のようにrootとnobodyのpasswordを設定したら動くようになりました。

$ sudo passwd root
$ sudo passwd nobody

ちなみに下記がnobodyのpasswordが求められる部分。おそらく私はMDMでパスワード管理されているのだと思う。nopassが許されないのかな。

su -fm nobody -c "$self"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?