/etc/passwd中为什么有shutdown、sync、halt用户?

 

[root@kylinos-server ~]# grep -v nologin /etc/passwd

root:x:0:0:root:/root:/bin/bash

sync:x:5:0:sync:/sbin:/bin/sync

shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown

halt:x:7:0:halt:/sbin:/sbin/halt

 

[root@kylinos-server ~]# egrep '(shut|sync|halt)' /etc/shadow

sync:*:18357:0:99999:7:::

shutdown:*:18357:0:99999:7:::

halt:*:18357:0:99999:7:::

你可能感兴趣的:(linux系统管理工具,服务器,linux)