반응형

RHEL9 부터 초기설치 후 보안강화로 SSH등 외부에서 OS root User로 Login을 차단 했다.

 

RHEL 10에서 Web Console을 OS root User로 Login 할 수 있는 설정 하는 방법이다.

--Disallowed List에서 OS root User 제거
[root@rhel10nm ~]#
[root@rhel10nm ~]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@rhel10nm ~]#
[root@rhel10nm ~]# more /etc/cockpit/disallowed-users
# List of users which are not allowed to login to Cockpit
root
[root@rhel10nm ~]#
[root@rhel10nm ~]# vi /etc/cockpit/disallowed-users
[root@rhel10nm ~]#
[root@rhel10nm ~]# more /etc/cockpit/disallowed-users
# List of users which are not allowed to login to Cockpit
#root
[root@rhel10nm ~]#
--Web Console Restart
[root@rhel10nm ~]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@rhel10nm ~]#
[root@rhel10nm ~]# systemctl restart cockpit.socket
[root@rhel10nm ~]#

 

반응형

+ Recent posts