• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

“sudo: /etc/sudoers is world writable” – How to correct the permissions of sudoers file

by admin

Question: How to correct /etc/sudoers file permission (e.g. of issue found).

$ sudo syscheck
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

You may encounters error as shown above if the sudoers file permissions are incorrect. Follow the steps below to correct the permissions.

1. Verify that sudoers file permission is correct:

# ls -l /etc/sudoers

2. The expected output:

-r--r-----. 1 root root 3822 Sep 12 08:53 /etc/sudoers

3. Changed the file permission if needed as root:

# chmod 440 /etc/sudoers

4. If step 2 is performed, verify the change that was made:

# ls -l /etc/sudoers

Filed Under: Linux

Some more articles you might also be interested in …

  1. Linux Command line Basics – Executing commands from the command line
  2. “az webapp” Command Examples (Manage Web Applications hosted in Azure Cloud Services)
  3. crontab error : “You (user) are not allowed to access to (crontab) because of pam configuration.”
  4. How to Install wine64-preloader software package in Ubuntu
  5. bedtools Command Examples (A swiss-army knife of tools for genomic-analysis tasks)
  6. tic: command not found
  7. nmcli agent Command Examples in Linux
  8. bspc Command Examples in Linux
  9. How to Disable/Enable services in Zimbra Mail Server
  10. vgcreate: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • gml2gv Command Examples
  • glow Command Examples
  • glib-compile-resources Command Examples
  • glances Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright