linux 加用户到 sudo
[docker@iZuf6gl8wxyasxnj79v1g2Z ~]$ sudo service docker start
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for docker:
docker is not in the sudoers file. This incident will be reported.
- 登录root,编辑文件,加用户docker到sudo文件
[root@iZuf6gl8wxyasxnj79v1g2Z docker]# visudo
docker ALL=(ALL) ALL
具体位置,截图如下

image.png
本文标题:linux 加用户到 sudo
本文链接:https://www.haomeiwen.com/subject/rdodnxtx.html
网友评论