User accounts · macOS process
opendirectoryd on Mac: what it is, why it uses high CPU, and the network or Dropbox cause behind it
opendirectoryd is the directory services daemon: every time macOS needs to know who a user is, which groups they belong to, or whether a password is right, it asks opendirectoryd. On a home Mac it answers from the local account database and sits at 0 percent. It climbs when something asks thousands of times a second, which on the Apple Community threads below came from a company Active Directory binding that could not reach its server, a stuck network automount, and a Dropbox folder full of broken symlinks. Do not quit it: it runs as root, relaunches instantly, and logins depend on it. Fix the thing asking.
- What it is
- Apple's directory services daemon at /usr/libexec/opendirectoryd. It serves user, group and password lookups for the local Mac and any bound network directory.
- Normal
- 0 to 1 percent, a short blip when you log in, unlock, or change a sharing setting.
- Not normal
- 40 to 100 percent sustained. Something is looking up users or file ownership in a loop, usually over the network.
- Safe to quit?
- No. Root-owned, relaunches, and quitting can stall a login or unlock in progress.
- The one safe fix
- Find the asker: a corporate directory, a network share, or a sync folder. Disconnect it and watch opendirectoryd drop.
On this page10 sections
What opendirectoryd does
Every file on your Mac has an owner and a group, every process runs as a user, and every login and unlock checks a password. The lookups behind all of that go through one daemon, opendirectoryd. It replaced the older DirectoryService in Lion and it is the front door to the local account database under /var/db/dslocal, plus any network directory the Mac has been bound to: Active Directory at a company, LDAP or Open Directory at a school, or an identity provider through a management profile.
On a Mac that has never been bound to anything, it is a small, local, cached service. A lookup takes microseconds and the daemon idles. On a managed Mac it is also a network client, which is where the trouble starts: a directory server that is slow, unreachable or on the far side of a VPN turns every lookup into a wait, and some software asks for ownership information on every file it touches. The Finder listing a folder, a backup walking a tree, or a sync client checking permissions can generate thousands of lookups, and if each one goes out to a server that does not answer, opendirectoryd is busy retrying.
Why opendirectoryd is using CPU right now
Something is asking it a lot. The threads cover most of the causes:
- A corporate directory binding that cannot reach its server. A work Mac at home, on hotel Wi-Fi, or with the VPN off still tries to talk to Active Directory. A 2015 Apple Community thread reported 100 percent CPU tied to AD site configuration. Connecting the VPN, or asking IT to check the binding, is the fix.
- A stuck network automount. A share listed in
auto_masteror mounted from a server that went away keeps opendirectoryd andautomountdbusy together. One 2017 thread showed 50 percent CPU with automountd next to it. - Broken symlinks in a sync folder. The 2016 thread quoted below ended with a Dropbox folder full of broken symlinks: Dropbox asked about each one, over and over, and only while Wi-Fi was on. Deleting the dead links fixed it.
- A backup, indexer or antivirus walking the disk. Each file's owner is checked. Normal while the walk runs, over when it finishes.
- Sharing turned on with many connections. File Sharing, Screen Sharing and Remote Login authenticate every connection through opendirectoryd. A guest or a script hammering a share shows up here.
- A macOS bug after an update. Rare, with a flood of reports at once. Fixed in a point release.
What normal looks like
The number to compare is opendirectoryd at idle, with no login, unlock or file transfer happening:
The physical symptoms are a hot MacBook with the fan on and nothing open, which is exactly how the 2019 thread describes it, and the Finder taking seconds to list a folder or to show the Get Info window, because each file's owner is a lookup that is waiting. If the Mac is also slow to log in or to wake from sleep, that is the same wait on the same server, and it points firmly at a network directory rather than anything local.
Is it safe to quit opendirectoryd?
No. opendirectoryd runs as root under launchd, so it relaunches the moment it stops, and the retry loop that was loading it resumes with the new copy. The downside is real while it is gone: any login, unlock, sudo prompt or file permission check in flight at that instant fails, and on a managed Mac a restart of the daemon can briefly disconnect you from the directory. There is no setting to turn it off and there should not be; the local account database is what lets you log in at all.
What is safe is removing the reason it is busy. On a home Mac that means the sync folder, the stale network share, or the sharing service. On a work Mac it means the VPN, or IT. Both bring the daemon back to idle without touching it.
It is not malware. The binary is at /usr/libexec/opendirectoryd on the sealed system volume, it has been part of macOS since Lion, and it talks only to servers the Mac has been explicitly bound to.
What to do, in order
- Check whether the Mac is managed
System Settings, General, Device Management. A profile from an employer or school means a directory binding is likely, and the fix is step 2. Users & Groups, Network Account Server shows a bound directory on older setups.
- Connect the VPN, or get off the network
If the Mac is bound to a company directory, connect the VPN and watch opendirectoryd drop. If you are not working, turn Wi-Fi off for a minute: if the load disappears, it was retrying a server it cannot reach, and IT can adjust the binding so it stops trying when away.
- Disconnect stale network shares
In the Finder sidebar, eject any server you are not actively using. If a share reconnects on its own at every login, remove it from Login Items under System Settings, General, Login Items & Extensions.
- Pause the sync client
Pause Dropbox, OneDrive, Google Drive or whichever sync tool you run, and watch for a minute. If opendirectoryd calms down, the 2016 pattern applies: look in that folder for aliases or symlinks pointing at things that no longer exist, and delete them. Resume sync.
- Turn off sharing services you do not use
System Settings, General, Sharing. Each enabled service accepts connections that are authenticated through opendirectoryd. Turn off the ones you do not need, especially Remote Login and File Sharing on a laptop that travels.
- Restart, then update macOS
A restart clears a wedged lookup cache and resets the directory connection. If the load returns with no directory, no shares and no sync running, it is a macOS bug: System Settings, General, Software Update, and a report to Apple Support if it survives the update.
When to worry
Worry when the load survives all of the above on a Mac that is not managed, has no network shares and no sync client, because that is the one case that is not yours to fix and it needs a macOS update or Apple Support. Worry sooner on a managed Mac if logins take more than a few seconds or the Mac stalls at the login screen: that is the directory lookup timing out, and IT can fix the binding or the site configuration so the Mac stops waiting on a server it cannot reach.
Do not worry about brief spikes at login, unlock, or when a backup starts. Those are the daemon doing its job for a few seconds. Safe to Quit tracks opendirectoryd over hours and shows whether its load is tied to the network coming and going, to a sync client, or to nothing visible, which answers most of the question before you open System Settings.
Look up another process
opendirectoryd often moves with sharingd on a Mac with sharing on, and with cloudd or a sync client when a folder is the cause. Type any name from Activity Monitor to get the plain-English version and the verdict.
What people hit, in their words
“I opened up Activity Monitor and discovered that 'opendirectoryd' is hogging my CPU.”
“It turned out to be a bunch of broken symlinks within Dropbox.”
“opendirectoryd was only causing problems when my wifi was on and dropbox was running.”
A short walkthrough of opendirectoryd
What Is opendirectoryd, and Why Is It Running on My Mac? by All4tech. A two-minute overview of what the daemon does and why it shows up in Activity Monitor. The steps above cover the fixes it does not.
Questions people ask
What is opendirectoryd on Mac?
opendirectoryd is the macOS directory services daemon. It answers every question about users, groups and passwords: who owns a file, which groups you belong to, whether a login password is correct. On a home Mac it reads the local account database. On a managed Mac it also talks to Active Directory, LDAP or Open Directory. It runs as root from /usr/libexec/opendirectoryd and has been part of macOS since Lion.
Why is opendirectoryd using high CPU on my Mac?
Because something is asking for user or ownership lookups in a loop that never resolves. The usual causes are a corporate directory binding that cannot reach its server when you are off the VPN, a stuck network automount, and a sync folder with broken symlinks that the sync client keeps asking about. Turning Wi-Fi off for a minute, pausing sync, or connecting the VPN tells you which one it is.
Can I quit or disable opendirectoryd?
No. It runs as root under launchd and relaunches within a second, and any login, unlock or permission check happening at that instant fails. There is no setting to disable it because logging in depends on it. The daemon is never the problem; the server or folder it keeps asking about is. Remove that and opendirectoryd goes back to idle by itself.
Is opendirectoryd a virus or spyware?
No. It is Apple's, lives on the sealed system volume at /usr/libexec/opendirectoryd, and only communicates with directory servers the Mac has been deliberately bound to, usually by an employer or school. If you want to know whether your Mac is bound to anything, look at System Settings, General, Device Management, and at Users & Groups for a network account server.
Why is my work Mac slow to log in or unlock?
Because the login or unlock is waiting on a directory server it cannot reach. A Mac bound to Active Directory checks with the server at login, and away from the office or with the VPN off that check times out before it falls back to cached credentials. The same wait shows up as opendirectoryd CPU. IT can set the binding to prefer the cached account when the server is unreachable.
Sources and further reading
- opendirectoryd hogging CPU Apple Support Community, Jul 2019. The hot MacBook report quoted above.
- The opendirectoryd process has very high cpu Apple Support Community, 2016. The Dropbox broken-symlink finding.
- opendirectoryd using 100% CPU Apple Support Community, 2015. The Active Directory site configuration case.
- opendirectoryd at 50% CPU with automountd Apple Support Community, 2017. The stuck automount case.
- What is opendirectoryd and why does it use 40% CPU? Super User. The 40 percent report.
- Open Directory Apple Developer Forums tag for the framework behind the daemon.