os/user: panic: user: unknown userid 501
when call user.LookupId("501") on Mac OS where 501 is the UserID of the admin
#36246
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
#
501
is the admin user of macand I can get user information with command
dscacheutil -q user
uu, err := user.LookupId("501")
if err != nil {
return nil, err
}
What did you expect to see?
current user name
What did you see instead?
panic: user: unknown userid 501
The text was updated successfully, but these errors were encountered: