`
happyqing
  • 浏览: 3183944 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

阅读更多

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

解决方法如下:   
1>、进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。   
2>、添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。   
3>、编辑/etc/sudoers文件。也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,
找到这一行:"root ALL=(ALL) ALL"在起下面添加"xxx ALL=(ALL) ALL"(这里的xxx是你的用户名),
然后保存(就是先摁一下Esc键,然后输入":wq")退出。   
4>、撤销文件的写权限。也就是输入命令"chmod u-w /etc/sudoers"。   
至此,问题解决。
转载他人的    仅供参考

 

[oracle@dev ]$ su root
口令:
[root@dev ]# chmod u+w /etc/sudoers
[root@dev ]# vim /etc/sudoers
[root@dev ]# chmod u-w /etc/sudoers
[root@dev ]# su oracle

 

sudo_百度百科

http://baike.baidu.com/view/1138183.htm

 

 

分享到:
评论

相关推荐

    xxx is not in the sudoers file解决方法

    用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。

    linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法.pdf

    当你尝试使用`sudo`时遇到"xxx is not in the sudoers file. This incident will be reported."的错误信息,这意味着你的用户名没有在sudoers配置文件中被授权使用sudo权限。以下是如何解决这个问题的详细步骤: 1....

    linux系统使用sudo命令报xxx is not in the sudoers file.This incident will be reported.的解决方法.docx

    ...

    linux不能使用sudo命令解决方案

    解决 "username is not in the sudoers file" 的问题需要将当前用户添加到 sudoers 文件中,步骤包括查找 sudoers 配置文件、更改权限、编辑 sudoers 文件、保存并退出编辑器、恢复权限等。通过掌握 sudo 命令的使用...

    Linux给普通用户加超级用户权限的方法

    问题假设用户名为:ali如果用户名没有超级用户权限,当输入 sudo + 命令 时, 系统提示: 代码如下:ali is not in the sudoers file. This incident will be reported.解决1. 进入超级用户模式。即输入”su”,系统...

    ubuntu系统中有关sudoers文件访问错误的解决方法

    首先,备份当前的`sudoers`文件,然后从`/usr/share/doc/sudo/examples`目录下的`sudoers.dist`文件恢复默认设置。但请注意,这会丢失所有自定义的sudo规则。 5. **更新系统**:在修复后,别忘了更新系统以获取任何...

    ansible-sudoers:在类似Debian的系统中管理sudoers和sudoers.d的角色

    在类似Debian的系统中管理sudoers和sudoers.d。 要求 没有任何 变数 sudoers_sudoers : /etc/sudoers文件声明 sudoers_sudoers.defaults :[默认:请参见defaults/main.yml ]:默认配置选项 sudoers_sudoers.host_...

    Mac sudoers.dmg

    最新Mac OS --sudo 工具,安装以后,Mac 可以执行sudo命令

    解决 用户不在 sudoers 文件中 的问题

    当尝试使用`sudo`时收到“用户不在 sudoers 文件中”的错误提示,这意味着当前的用户没有在系统授权文件 `/etc/sudoers` 中被赋予使用`sudo`的权限。以下将详细解释如何解决这个问题,并介绍一些相关的Linux用户管理...

    Centos7.6下设置Oracle定时自动备份和sudo设置.docx

    Centos7.6 下 Oracle 定时自动备份和 sudo 设置 本文将详细介绍 Centos7.6 下 Oracle 定时自动备份和 sudo 设置的过程。该过程包括编写数据库备份脚本文件、设置定时、sudo 设置等多个方面。 编写数据库备份脚本...

    Centos7.6下Oracle开启归档日志和Rman恢复.docx

    在CentOS中,通过编辑`/etc/sudoers`文件,可以添加如下行来允许Oracle用户执行root权限的命令: ``` Oracle ALL=(ALL) ALL Oracle ALL=/usr/sbin/shutdown -r now ``` 2. 登录到Oracle数据库作为`sys`用户,...

    Ansible-ansible-sudoers.zip

    Ansible-ansible-sudoers.zip,控制默认/etc/sudoers文件和包含的文件/目录的配置。,ansible是一个简单而强大的自动化引擎。它用于帮助配置管理、应用程序部署和任务自动化。

    struts2标签史上最详细的struts2标签介绍

    Struts2是一个强大的Java web应用程序框架,它极大地简化了MVC(模型-视图-控制器)架构的实现。Struts2的核心就是它的标签库,它提供了丰富的标签来帮助开发者更高效地构建用户界面。以下是对Struts2标签的史上最...

    CentOS7静默安装oracle11g.docx

    11. 最后,为了方便Oracle用户执行sudo命令,编辑`/etc/sudoers`文件,允许`oracle`用户无密码执行特定命令。这一步通常不是必需的,但根据具体需求可能需要。 在完成以上步骤后,您已经为Oracle 11g的安装做好了...

    libz.so.1+libz.so.1.2.11 centos rocky原始文件2024

    sudo: unable to load /usr/libexec/sudo/sudoers.so: libz.so.1: cannot open shared object file: No such file or directory sudo: fatal error, unable to load plugins 等解决方法具体查看...

    030101配置用户使用sudo无需密码

    #2....( %wheel ALL=(ALL) NOPASSWD: ALL) 三、/etc/sudoers文件解释 ...## the root user, without needing the root password. ##该文件允许特定用户像root用户一样使用各种各样的命令,而不需要root用户的密码

    RedHat6.5下安装Oracle11g详细过程.doc

    在Red Hat Enterprise Linux 6.5 (RHEL6.5)环境下安装Oracle 11g是一项需要仔细规划和执行的任务,因为Oracle数据库软件对操作系统有特定的要求。以下是一些关键步骤和注意事项: 首先,为了安装Oracle 11g,你需要...

    ubuntu16下安装oracle11g

    - 将oracle用户设置为可以使用sudo命令,编辑/etc/sudoers文件,添加oracle用户的相关配置。 7. 设置Oracle用户环境变量: Oracle用户登录后需要配置环境变量以使用Oracle数据库。在oracle用户的.bash_profile中...

    sudoers文件编辑和使用

    sudoers 文件编辑和使用 sudoers 文件是 Unix 系统中一个非常重要的文件,它控制着用户对 root 权限的访问。今天,我们将深入探讨 sudoers 文件的编辑和使用。 一、sudo 简介 sudo 是 Unix 系统中一个非常重要的...

Global site tag (gtag.js) - Google Analytics