删除其中的root
$ vim /etc/cockpit/disallowed-users # List of users which are not allowed to login to Cockpit # root
注意:在生产环境不建议