- Login with root privilege
- # vi /etc/sudoers
- # Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
- # Defaults requiretty
- # Refuse to run if unable to disable echo on the tty. This setting should also be changed in order to be able to use sudo without a tty. See requiretty above.
- Defaults visiblepw
- ## Allows people in group wheel to run all commands
- # %wheel ALL=(ALL) ALL
- YourAccount ALL=(ALL) ALL
- save the change
【Linux】 设置使用 sudo
最新推荐文章于 2022-07-29 17:40:49 发布