在CentOS 7中,可以通過以下兩種方法進入root用戶:
su -
然后輸入root用戶的密碼即可進入root用戶。
sudo su -
然后輸入當前用戶的密碼,再輸入root用戶的密碼即可進入root用戶。
注意:在使用sudo命令時,需要當前用戶有sudo權限。