Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong sudoers.d file permissions #5441

Closed
fmunteanu opened this issue Apr 17, 2022 · 1 comment
Closed

Wrong sudoers.d file permissions #5441

fmunteanu opened this issue Apr 17, 2022 · 1 comment

Comments

@fmunteanu
Copy link

Creating a bug report/issue

Required Information

# cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=3
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
# echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0
# uname -a
Linux chaos.local 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
# echo $G_HW_MODEL_NAME
RPi 4 Model B (aarch64)

Steps to reproduce

# visudo -c
/etc/sudoers: parsed OK
/etc/sudoers.d/010_at-export: parsed OK
/etc/sudoers.d/README: parsed OK
/etc/sudoers.d/dietpi: bad permissions, should be mode 0440
/etc/sudoers.d/pihole: parsed OK

Fix

# chmod 0440 /etc/sudoers.d/dietpi
@MichaIng MichaIng added this to the v8.4 milestone Apr 17, 2022
MichaIng added a commit that referenced this issue Apr 21, 2022
- Security | Access permissions for /etc/sudoers.d/dietpi have been hardened to comply with best practice. Many thanks to @fmunteanu for reporting this issue: #5441
@MichaIng
Copy link
Owner

Many thanks for your report. Fixed with: 97d1d68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants