linux – 为什么“ps”输出没有解析我的进程的uid?

linux – 为什么“ps”输出没有解析我的进程的uid?,第1张

概述上下文:在ubuntu Linux 2.6.24-22-xen#1 SMP x86_64 GNU / Linux上 我通过init.d脚本启动一个守护进程,但在“ps”输出中,它以数字形式显示守护进程的用户.例如 1000 17560 1 1 11:04 ? 00:00:09 /usr/lib/jvm/java-6-sun/bin/java -server -jar /h 上下文:在ubuntu Linux 2.6.24-22-xen#1 SMP x86_64 GNU / linux上

我通过init.d脚本启动一个守护进程,但在“ps”输出中,它以数字形式显示守护进程的用户.例如

1000  17560  1  1 11:04 ?  00:00:09 /usr/lib/jvm/java-6-sun/bin/java -server         -jar /home/superduperadmin/server/daemon.jar

1000是映射到/ etc / passwd中的superduperadmin.

为什么是这样 ?是因为superduperadmin太长了吗?

解决方法 是的,这是因为它太长了……

从ps(1) man page …

euser  EUSER  effective user name. This will be the textual user ID,if it can be obtained and the fIEld wIDth permits,or               a decimal representation otherwise. The n option can be               used to force the decimal representation. 
总结

以上是内存溢出为你收集整理的linux – 为什么“ps”输出没有解析我的进程的uid?全部内容,希望文章能够帮你解决linux – 为什么“ps”输出没有解析我的进程的uid?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1043750.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存