Project

General

Profile

Actions

Bug #48169

closed

/etc/sudoers.d/ceph-osd-smartctl file permissions don't conform to standards

Added by David Turner over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus, octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Ceph is creating this file with 0600 permissions. This causes commands and utilities that rely on the output of `visudo -c` to fail as the defaults for the mode it checks against is 0440.

the default file mode is 0440 (read‐able by owner and group, writable by none). The default mode may be changed via the “sudoers_mode” option to the sudoers Plugin line in the sudo.conf(5) file.

This looks like a quick PR to change the mode from 600 to 440 in a couple places. I've put together a PR showing what I'm assuming the fix for this problem would be.


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #48283: octopus: /etc/sudoers.d/ceph-osd-smartctl file permissions don't conform to standardsResolvedNathan CutlerActions
Copied to Ceph - Backport #48284: nautilus: /etc/sudoers.d/ceph-osd-smartctl file permissions don't conform to standardsResolvedNathan CutlerActions
Actions

Also available in: Atom PDF