oracle is not in the sudoers file. This incident will be reported.

报错:

[oracle@edgzrip1-PROD1 data]$ sudo vi /etc/fstab

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.

Password:
oracle is not in the sudoers file. This incident will be reported.

 

解决:

1、root超级用户登录OS

2、vi /etc/sudousers

找到root    ALL=(ALL)       ALL这一行,并且添加一行,如:oracle

oracle  ALL=(ALL)       ALL

3、保存文件

4、修改/etc/sudousers文件权限

chmod 0440 /etc/sudousers

5、再次执行sudo vi /etc/fstab

[oracle@edgzrip1-PROD1 data]$ sudo vi /etc/fstab
Password:---输入root管理员密码

LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs size=2G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0

7、至此oracle用户可以使用root管理员权限

 

2019-4-9 17:16

posted @ 2019-04-09 17:16  orcl  阅读(617)  评论(0编辑  收藏  举报