加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-05-23 23:09:17 所属栏目:Linux 来源:互联网
导读:上下文:在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. 

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读