sudoers : working for one user, but not on another

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Delaney martin
    Senior Member
    • Jun 2022
    • 187

    sudoers : working for one user, but not on another

    VPS Hosting


    Hi, I am on Ubuntu 22.04, the user btrbk, located in /etc/sudoers.d/btrbk, which works fine, but the user dev, located in /etc/sudoers.d/dev, most of which is a subset of that for btrbk, but all of which is failing.

    Thanks in advance for suggestions!
  • Ryaan J.
    Senior Member
    • Apr 2022
    • 174

    #2


    Run to check file permissions: ls -l /etc/sudoers.d/

    Ensure that your dev folder file has the correct permissions:

    -r--r----- 1 root root 1096 Feb 8 2022 btrbk

    -r--r----- 1 root root 1059 Jan 2 2023 dev


    If the dev has incorrect permissions, fix it:

    sudo chmod 440 /etc/sudoers.d/dev

    sudo chown root:root /etc/sudoers.d/dev

    Comment

    Working...
    X