Solutions for userisnotinsudoersfile when sudo is used

Source: Internet
Author: User
When sudo is used, userisnotinsudoersfile is used in Linux. this error is often reported when sudo is used by common users, for example: [oracle @ DBA2fd] $ sudops-ef | grepdbw [sudo] passwordfororacle: oracleis... when sudo is used, the user is not in sudoers file solution in the Linux operating system. when a common user uses sudo, this error is often reported, for example: [oracle @ DBA2 fd] $ sudo ps-ef | grep dbw [sudo] password for oracle: oracle is not in the sudoers file. this incident will be reported. [oracle @ DBA2 fd] $ error is reported because the user oracle is not in the sudo configuration file, and the oracle User has no permission Use sudo; solution: Use the root user to modify the/ete/sudoer file attribute as root, and add oracle ALL under the root ALL row (similar to the root row) [root @ DBA2 etc] # chmod u + w sudoers [root @ DBA2 etc] # vi sudoers add oracle ALL = (ALL) ALL to change the sudoer attribute back to the original value: [root @ DBA2 etc] # chmod u-w sudoers [root @ DBA2 etc] # ll sudoers-r -- r ----- 1 root 3402 Sep 4 sudoers try sudo again, available; [oracle @ DBA2 ~] $ Sudo ps-ef | grep dbw [sudo] password for oracle: oracle 3140 1 0? 00:00:06 ora_dbw0_orcl2oracle 19299 17065 0 00:00:00 pts/2 grep dbw
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.