HP Servicecontrol Manager 3.0 Troubleshooting Guide

Operating System and Networking Issues
Problems With getpwnam()/uid()
Chapter 2
18
Problems With getpwnam()/uid()
Symptom Your login user name is a valid SCM user, but you are no longer considered a valid user.
Execution of any SCM commands fails with the error:
The name ‘?’ does not represent a user in this system.
Verification Verify that you are still a HP-UX or Linux user.
Execute the id(1)command. If it returns an empty string for the user name, then
your HP-UX or Linux login name has been removed or is no longer accessible.
•Execute:
ypcat passwd | grep
login
or
grep
login
/etc/passwd
If no passwd line is found, you are no longer considered an HP-UX or Linux user.
Fix If you are using NIS, verify that /etc/passwd still contains the +::0:0::: entry at the
end of the file. If not, try restoring this line. Determine if this fixes the problem by
running the verification commands again.
If your HP-UX user login is missing, log in as root and add the user back using the
System Administration Manager tool, SAM. If your Linux user login is missing, log in as
root and add the user back using the useradd(8) command.