给用户添加sudo权限

  • 切换到root模式,编辑etc/sudoers
[hadoop@localhost /]$ su root
Password:
ABRT has detected 1 problem(s). For more info run: abrt-cli list
[root@localhost /]# ls -l|grep sud
[root@localhost /]# cd /etc
[root@localhost etc]# find . |grep sudoers
./sudoers
./sudoers.d
[root@localhost etc]# nano sudoers
[root@localhost etc]#


欢迎关注我的公众号:小秋的博客 CSDN博客:https://blog.csdn.net/xiaoqiu_cr github:https://github.com/crr121 联系邮箱:rongchen633@gmail.com 有什么问题可以给我留言噢~
原文地址:https://www.cnblogs.com/flyingcr/p/10327050.html