Open a terminal for the user nologin

Yesterday, I set zabbix-agent and found zabbix user agent on a machine and can not read the file information. I wanted to jump zabbix users, and later failed, found in / etc / passwd in, is set to zabbix

zabbix:x:800:799:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin

You can not use this user.

 

So, if you want to jump to the user, we need to:

sudo -u zabbix bash

To its open a terminal.

And then, I investigation by the layers directory, this final read access to the file gives users zabbix. For details, please refer to my other blog post:

linux ACL access control

Guess you like

Origin www.cnblogs.com/young233/p/12020194.html