Take rabbitmq as an example, let's see what user he uses to run! Is it root or an ordinary user, or an ordinary privileged user!
root@taskgen_rabbitmq_host:/proc/1# ps -eo pid,user,group,euser,egroup,cmd
PID USER GROUP EUSER EGROUP CMD
1 rabbitmq rabbitmq rabbitmq rabbitmq /bin/sh /opt/rabbitmq/sbin/rabbitmq-server
21 rabbitmq rabbitmq rabbitmq rabbitmq /usr/local/lib/erlang/erts-12.2/bin/beam.smp -W w -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -sbwt none -sbwtdcpu none -sbwtdio none -B i -- -root /usr/local/lib/erlang -progname erl -- -home /var/lib/rabb
29 rabbitmq rabbitmq rabbitmq rabbitmq erl_child_setup 1048576
163 rabbitmq rabbitmq rabbitmq rabbitmq /usr/local/lib/erlang/erts-12.2/bin/epmd -daemon
294 rabbitmq rabbitmq rabbitmq rabbitmq inet_gethost 4
295 rabbitmq rabbitmq rabbitmq rabbitmq inet_gethost 4
7288 root root root root bash
7458 root root root root ps -eo pid,user,group,euser,egroup,cmd
We can see that user
is rabbitmq
, is this rabbitmq
privileged?
root@taskgen_rabbitmq_host:/proc/1# awk -F: '$3==0 {print $1}' /etc/passwd
root
As you can see, there is only one privileged user, namely root
, rabbitmq
without privileges
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。