![主机名更改错误](https://linux22.com/image/1090485/%E4%B8%BB%E6%9C%BA%E5%90%8D%E6%9B%B4%E6%94%B9%E9%94%99%E8%AF%AF.png)
我有一个属于 sudo 组的用户。当我尝试更改主机名时,我收到此错误mesg: ttyname failed: Inappropriate ioctl for device
,同样,当我尝试重新启动时,我也收到此错误
Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to start reboot.target: Interactive authentication required.
See system logs and 'systemctl status reboot.target' for details.