1. 将某个用户x添加到sudoer列表中
root 权限
visudo
在
## Allow root to run any commands anywhere root ALL=(ALL) ALL
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
之后添加 x ALL=(ALL) ALL
wq保存退出即可
2.退出ssh登陆
exit