oracle is not in the sudoers file
在Linux作業系統中,以普通使用者使用sudo時,常常會出現這個報錯,如:
[oracle@dbahaoyuan ~]$ sudo ifconfig
[sudo] password for oracle:
oracle is not in the sudoers file. This incident will be reported.
[oracle@dbahaoyuan ~]$
報錯給出原因是使用者oracle不在sudo的配置檔案中,oracle使用者無法使用sudo;
首先:
以root使用者修改/ete/sudoer,在root ALL=(ALL) ALL 行下新增 oracle ALL=(ALL) ALL
[root@dbahaoyuan etc]# chmod u+w sudoers
[root@DBA2 etc]# vi sudoers
新增 oracle ALL=(ALL) ALL
將sudoer屬性改回原值:
[root@dbahaoyuan etc]# chmod u-w sudoers
[root@dbahaoyuan etc]# ll sudoers
-r--r----- 1 root root 3402 AUG 1 11:39 sudoers
再試試sudo的命令,可以使用了;
[oracle@dbahaoyuan ~]$ sudo ifconfig
[sudo] password for oracle:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30031456/viewspace-1425947/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Ubuntu技巧之 is not in the sudoers file解決方法Ubuntu
- linux解決“XXX is not in the sudoers file”錯誤Linux
- 解決ubuntu系統“XXX is not in the sudoers file”錯誤Ubuntu
- Authentication failure 以及xxx is not in the sudoers file 問題的解決辦法AI
- xxx is not in the sudoers file.This incident will be reported.的解決方法IDE
- ubuntu sudoers配置錯誤Ubuntu
- Oracle ASM File DirectoryOracleASM
- oracle utl_fileOracle
- Oracle EBS ATTACHMENT with fileOracle
- OMF (Oracle Managed File)Oracle
- Oracle Password File 理解Oracle
- 【sudo】配置sudoers實現oracle使用者以root身份執行命令Oracle
- oracle query output in excel fileOracleExcel
- Oracle Dump Redo Log FileOracle
- etc/sudoers沒有這個檔案
- Oracle:db file scattered readOracle
- Oracle ASM Cluster File Systems (ACOracleASM
- [Oracle Script] check File I/OOracle
- Oracle ACFS ( ASM Cluster File System )OracleASM
- 打補丁報錯 File in patch is not a known Oracle Applications fileOracleAPP
- 2Gb - File limits in Oracle(轉)MITOracle
- oracle監聽開啟trace fileOracle
- Oracle之 等待事件log file sync + log file parallel write (awr優化)Oracle事件Parallel優化
- Oracle db file parallel write 和 log file parallel write 等待事件 說明OracleParallel事件
- Oracle - UTL_FILE包之詳解Oracle
- Oracle ASM How many allocation units per fileOracleASM
- Unload data to a flat file from Oracle databaseOracleDatabase
- oracle重建control file的操作Oracle
- [Shell] monitor oracle alert.log file and sendmailOracleAI
- Oracle EBS log file (R12.1.3)Oracle
- Using Create directory & UTL_FILE in OracleOracle
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- oracle10g 資料檔案頭data file header(file header)OracleHeader
- Oracle 18.3 Resize operation completed for file#Oracle
- Oracle - ORA-09817: Write to audit file failedOracleAI
- Oracle 12C xtts and dbms_file_transferOracleTTS
- Oracle utl_file_dir引數詳解Oracle
- Oracle utl_file_dir引數解釋Oracle