要将用户添加到Linux的sudoer列表中,可以通过以下步骤完成:
以root用户登录到Linux系统。
打开终端窗口,并运行以下命令来编辑sudoers文件:
sudo visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
username ALL=(ALL) ALL
现在,用户已被添加到Linux的sudoer列表中,并可以使用sudo命令来以root权限执行特权操作。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>