Operating System - HP-UX
1753939 Members
9129 Online
108811 Solutions
New Discussion юеВ

Re: username not shown in ps -ef output

 
SOLVED
Go to solution
johnsonpk
Honored Contributor

Re: username not shown in ps -ef output

Check the integrity of passwd file by running pwck

Also post the permission of /etc/passwd and contents of /etc/nsswitch.conf file
NDO
Super Advisor

Re: username not shown in ps -ef output

Hi, All

For some reason everthing is back to normal, that is before I run the pwck comand which the output is:mpecu007[389] /tmp # pwck > /tmp/pwck.out

smbnull:*:101:101:DO NOT USE OR DELETE - needed by Samba:/home/smbnull:/sbin/sh
Login directory not found

postgres:*:378:20:PostgresSQL,,,:/usr/local/pgsql:/usr/bin/sh
Login directory not found
.........................................

The paswwd file is not encrypted, please find attached the file.

But I'm a bit nervous because now everthing is fine, ps -ef it does show the username, and the whoami comand shows me root.
Please can you give me some hints.

Fernando
Dennis Handly
Acclaimed Contributor

Re: username not shown in ps -ef output

>the whoami com and shows me root.

Did you su from root?
NDO
Super Advisor

Re: username not shown in ps -ef output

Yes, I was root.

Fernando
James R. Ferguson
Acclaimed Contributor

Re: username not shown in ps -ef output

Hi (again):

You have yet to verify that the permissions of your '/etc/passwd' file are "-r--r--r--".

Regards!

...JRF...
NDO
Super Advisor

Re: username not shown in ps -ef output

Hi all!

Thank you very for your contributions, I appreciate your help, but now I'm gonna have to close this thread and assign some points to all you.

Thank you

Bye

Fernando
NDO
Super Advisor

Re: username not shown in ps -ef output

thank you all

Fernando
James R. Ferguson
Acclaimed Contributor

Re: username not shown in ps -ef output

Hi (again) Fernando:

> but now I'm gonna have to close this thread and assign some points to all you.

That's very nice, but more importantly exactly *what* caused your problem?

Regards!

...JRF...