Visudo permissions

visudo -c command returns this:

[...]
/etc/sudoers.d/20_nethserver_openvpn: bad permissions, should be mode 0440
/etc/sudoers.d/20_nethserver_sssd: parsed OK
/etc/sudoers.d/20_nethserver_subscription: bad permissions, should be mode 0440
/etc/sudoers.d/20_nethserver_suricata: bad permissions, should be mode 0440
[...]

We have to open a bug and correct that?

/cc: @davidep @giacomo

3 Likes

I’d open a bug if the file is writable by non-root users. Here I think the warning wants to say: remove the writable bit also for the file owner (namely root) so he remembers to not use vi and calls visudo instead.

I think PRs are enough in this case. The cosmetic fix will be available with the next packages release. No hurry.

However feel free to open a bug if you’re ready to fix them! Surely it’s not a bad idea :wink:

1 Like

Yes, you are right. Files are not editable by non-root users. I think PR is enough.
Thanks

1 Like

Hi Federico thank you for sending the patches!

1 Like