From e0acdc9b30ba8ec49bb4a86d3f2cc07114920804 Mon Sep 17 00:00:00 2001 From: Andres Montalban Date: Sat, 4 Jul 2015 09:30:50 -0300 Subject: [PATCH] Add sudo_rules syntax examples for rules with colons --- pillar.example | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pillar.example b/pillar.example index d96ea29..500604b 100644 --- a/pillar.example +++ b/pillar.example @@ -13,6 +13,13 @@ users: manage_bashrc: False expire: 16426 sudouser: True + # sudo_rules doesn't need the username as a prefix for the rule + # this is added automatically by the formula. + # ---------------------------------------------------------------------- + # In case your sudo_rules have a colon please have in mind to not leave + # spaces around it. For example: + # ALL=(ALL) NOPASSWD: ALL <--- THIS WILL NOT WORK (Besides syntax is ok) + # ALL=(ALL) NOPASSWD:ALL <--- THIS WILL WORK sudo_rules: - ALL=(root) /usr/bin/find - ALL=(otheruser) /usr/bin/script.sh