【原创】sudo:  -User-&…

来源:互联网 发布:卖衣服的淘宝店 编辑:程序博客网 时间:2024/06/10 03:54
[zhangzhipeng@localhost ~]$ sudo su
[sudo] password for zhangzhipeng:
zhangzhipeng is not in the sudoers file. This incident will be reported.

[zhangzhipeng@localhost ~]$ su
Password:
[root@localhost zhangzhipeng]#
[root@localhost zhangzhipeng]# vi /etc/sudoers
在sudoers末尾添加一行 zhangzhipengALL=(ALL) ALL
:wq! 保存退出
[zhangzhipeng@localhost ~]$ sudo su
[sudo] password for zhangzhipeng:
[root@localhost zhangzhipeng]# exit

0 0
原创粉丝点击