zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    day35-python-网络编程
    oc-继承(inherit) 方法重写 继承与组合
    oc-self关键字
    oc-类方法
    oc-封装 get set方法
    oc-匿名对象
    oc-函数命名
    oc-函数,方法,类
    解决"authentication token manipulation error"
    让tomcat自动定位到项目
  • 原文地址:https://www.cnblogs.com/orcl-2018/p/10678308.html
Copyright © 2011-2022 走看看