这个错误通常是由于用户的X服务器配置有问题导致的。要解决此问题,可以按照以下步骤进行操作:
确保您使用的是root用户或具有sudo权限的用户。
尝试创建/root/.Xauthority文件。您可以使用以下命令进行创建:
sudo touch /root/.Xauthority
sudo chown root:root /root/.Xauthority
sudo touch /root/.xinitrc
sudo chown root:root /root/.xinitrc
这些步骤通常可以解决CentOS 7.6上的/usr/bin/xauth报错问题。如果问题仍然存在,请确保您的X服务器配置正确,并且您的用户具有正确的权限来访问X服务器。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>