A week ago I upgraded to Lion from Snow Leopard. I want to use the locate command, but the locate database has not been built yet. So I tried running
sudo launchctl -w /System/Library/LaunchDaemons/com.apple.locate.plist
The plist file only points to /usr/libexec/locate.updatedb and I keep getting the following error in syslog
su: pam_acct_mgmt: error in service module
When I try running locate.updatedb directly I get the same error in syslog.
I could handle not using locate, but what bugs me the most is that I don't know what's causing the issue.