One of my user's processes shows up with the uid (numeric) rather than the user (alpha) on the ps command. The /etc/passwd file shows:
theuser:x:500:501:The user:/home/theuser:/bin/bash
But, 'ps -ef' shows the uid:
500 9041 8864 0 11:20 pts/1 00:00:00 ps -ef
Allother active users show the user. Ideas?
Frank M. Ramaekers Jr.
Systems Programmer
MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Co.
Phone: (254)761-6649
1200 Wooded Acres Dr.
Fax: (254)741-5777
Waco, Texas 76701
---------------------------------------- This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at PrivacyAct@ailife.com.
---------------------------------------- This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at PrivacyAct@ailife.com.
Frank M. Ramaekers wrote:
One of my user's processes shows up with the uid (numeric) rather than the user (alpha) on the ps command. The /etc/passwd file shows:
theuser:x:500:501:The user:/home/theuser:/bin/bash
But, 'ps -ef' shows the uid:
500 9041 8864 0 11:20 pts/1 00:00:00 ps -ef
Allother active users show the user. Ideas?
The username is probably more than 8 characters
James Pearson
That's what it was...didn't realize that.
Thanks!
Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE & RHCE American Income Life Insurance Co. Phone: (254)761-6649 1200 Wooded Acres Dr. Fax: (254)741-5777 Waco, Texas 76701
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of James Pearson Sent: Friday, June 15, 2007 11:56 AM To: CentOS mailing list Subject: Re: [CentOS] process show uid not user
Frank M. Ramaekers wrote:
One of my user's processes shows up with the uid (numeric) rather
than
the user (alpha) on the ps command. The /etc/passwd file shows:
theuser:x:500:501:The user:/home/theuser:/bin/bash
But, 'ps -ef' shows the uid:
500 9041 8864 0 11:20 pts/1 00:00:00 ps -ef
Allother active users show the user. Ideas?
The username is probably more than 8 characters
James Pearson
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
---------------------------------------- This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at PrivacyAct@ailife.com.
---------------------------------------- This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at PrivacyAct@ailife.com.
James Pearson wrote:
Frank M. Ramaekers wrote:
One of my user's processes shows up with the uid (numeric) rather than the user (alpha) on the ps command. The /etc/passwd file shows:
theuser:x:500:501:The user:/home/theuser:/bin/bash
But, 'ps -ef' shows the uid:
500 9041 8864 0 11:20 pts/1 00:00:00 ps -ef
Allother active users show the user. Ideas?
The username is probably more than 8 characters
You can work round this by doing something like:
ps -e -o user:15,pid,ppid,c,stime,tname,time,cmd
this will give a similar output to 'ps -ef' - but with more characters for the username - you might want to play with that number
You can also set the environment variable:
PS_FORMAT=user:15,pid,ppid,c,stime,tname,time,cmd
and then just run 'ps -e'
James Pearson