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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. Apache HTTP server – most commonly used configuration directives
  2. RHEL / CentOS : How to rebuild LVM from Archive (metadata backups)
  3. retroarch Command Examples in Linux
  4. bluetoothctl Command Examples in Linux
  5. How to Install gnome-session-wayland software package in Ubuntu
  6. pgrep: command not found
  7. calibredb: Tool to manipulate the your e-book database
  8. prlimit Command Examples in Linux
  9. iperf: command not found
  10. nmcli: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • cf: Command-line tool to manage apps and services on Cloud Foundry
  • certutil: Manage keys and certificates in both NSS databases and other NSS tokens
  • cdk: A CLI for AWS Cloud Development Kit (CDK)
  • cd: Change the current working directory

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright