Error: This command has to be run under the root user.
当我尝试以 root 用户身份在 Fedora 中安装时出现错误。以不同的方式尝试:
Sun May 20 20:18:57 kbsbng@tr
$ sudo yum install mod_ssl
Error: This command has to be run under the root user.
Sun May 20 20:19:00 kbsbng@tr
$ sudo bash
Sun May 20 20:19:03 root@tr
$ yum install mod_ssl
Error: This command has to be run under the root user.
Sun May 20 20:19:15 root@tr
$ su -
[root@tr ~]# yum install mod_ssl
Error: This command has to be run under the root user.
是否有任何安全设置导致此问题?我正在通过远程ssh
连接到机器来尝试上述所有命令。