summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Sudo.hs
AgeCommit message (Collapse)Author
2018-10-14make sure that /etc/sudoers includes sudoers.dJoey Hess
Otherwise there's the risk that propellor's change in how it sets up sudoers locks an admin out, because they had a modified sudoers file that never got upgraded to include sudoers.d.
2018-08-20Sudo.enabledFor: Write to /etc/sudoers.d/000users rather than to /etc/sudoersJoey Hess
(Any old lines it wrote to /etc/sudoers will be removed.) This fixes a potential ordering problem; the property used to append the line to /etc/sudoers, but that would override more specific lines in the include directory. By putting it in a file that is included first, it'll come before all includes, without needing to parse the sudoers file in order to put it before the includedir line. Note that, if there is a more specific line for the user in /etc/sudoers before the includedir, it will be overridden by the line in /etc/sudoers.d/000users. But, this is not a behavior change from before, when the line was appended to the end. This commit was sponsored by Jeff Goeke-Smith on Patreon.
2018-08-20Added Sudo.sudoersDFile property.Joey Hess
This commit was sponsored by Ewen McNeill on Patreon.
2018-08-20comment typoJoey Hess
2017-07-17Propellor.Property.Sudo.enabledFor: Made revertableJoey Hess
(minor API change) This commit was sponsored by Henrik Riomar on Patreon.
2016-03-26more portedJoey Hess
2015-10-10propellor spinJoey Hess
2015-04-22API change: Added User and Group newtypes, and Properties that used to use ↵Joey Hess
the type UserName = String were changed to use them. Note that UserName is kept and PrivData still uses it in its sum type. This is to avoid breaking PrivData serialization.
2015-01-24GADT properties seem to work (untested)Joey Hess
* Property has been converted to a GADT, and will be Property NoInfo or Property HasInfo. This was done to make sure that ensureProperty is only used on properties that do not have Info. Transition guide: - Change all "Property" to "Property NoInfo" or "Property WithInfo" (The compiler can tell you if you got it wrong!) - To construct a RevertableProperty, it is useful to use the new (<!>) operator - Constructing a list of properties can be problimatic, since Property NoInto and Property WithInfo are different types and cannot appear in the same list. To deal with this, "props" has been added, and can built up a list of properties of different types, using the same (&) and (!) operators that are used to build up a host's properties.
2014-10-08fix some accidental uses of spaces, rather than tabs, for indentationJoey Hess
2014-05-14moved source code to srcJoey Hess
This is to work around OSX's brain-damange regarding filename case insensitivity. Avoided moving config.hs, because it's a config file. Put in a symlink to make build work.