Hello,
OPSI 4.0.4.
It is best pratcice for Debian-based systems to create a new file in /etc/sudoers.d instead of patching /etc/sudoers.
Best regards,
Stanislav
opsi-setup: sudoers should go to /etc/sudoers.d
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: opsi-setup: sudoers should go to /etc/sudoers.d
Hello Stanislav,
thanks for your input.
I have created an internal ticket for this so it will be approached in future versions. As we are in good progress finishing the release for opsi 4.0.5 this change will probably not be included in this release.
With kind regards
Niko
thanks for your input.
I have created an internal ticket for this so it will be approached in future versions. As we are in good progress finishing the release for opsi 4.0.5 this change will probably not be included in this release.
With kind regards
Niko
Code: Alles auswählen
import OPSI
Re: opsi-setup: sudoers should go to /etc/sudoers.d
Hello Niko,
It's more cosmetic change, so no issue here.
Thank you!
Best regards,
Stanislav German-Evtushenko
It's more cosmetic change, so no issue here.
Thank you!
Best regards,
Stanislav German-Evtushenko
Re: opsi-setup: sudoers should go to /etc/sudoers.d
You would have to patch /etc/sudoers:
Because its not included by default.
Without knowing what is in there...
Thats not a good idea.
I would recommend to use /etc/opsi/sudoers.
That should also be much more maintainable.
Code: Alles auswählen
+includedir /etc/sudoers.d
Without knowing what is in there...
Thats not a good idea.
I would recommend to use /etc/opsi/sudoers.
That should also be much more maintainable.
Code: Alles auswählen
+include /etc/opsi/sudoers
Re: opsi-setup: sudoers should go to /etc/sudoers.d
Hello,
Best regards,
Stanislav German-Evtushenko
It has been included for a long time already. The earilest Ubuntu version what I can be sure about is 10.04 already contains the following directive:Because its not included by default.
Code: Alles auswählen
#includedir /etc/sudoers.d
Stanislav German-Evtushenko
Re: opsi-setup: sudoers should go to /etc/sudoers.d
Oh yes you are right. I looked that up.
I thought that the line is a comment. But the manpage says that this actually is the syntax.
Included since 31 Aug 2009
I thought that the line is a comment. But the manpage says that this actually is the syntax.
Included since 31 Aug 2009
Code: Alles auswählen
sudo (1.7.2p1-1) unstable; urgency=low
* new upstream version
* add support for /etc/sudoers.d using #includedir in default sudoers,
which I think is also a good solution to the request for a crontab-like
API requested in March of 2001, closes: #539994, #271813, #89743
* move init.d script from using rcS.d to rc[0-6].d, closes: #542924
-- Bdale Garbee <bdale@gag.com> Mon, 31 Aug 2009 14:09:32 -0600