diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java index 4fb4e72..e809c1e 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java @@ -126,7 +126,7 @@ public class PacProcessorFactory implements EntityProcessorFactory { } private Processor createSudouersProc(Hive hive) throws ProcessorException { - return new VelocityProcessor("/de/hsadmin/mods/pac/sudoers.vm", hive, "/etc/sudoers", true); + return new VelocityProcessor("/de/hsadmin/mods/pac/sudoers-pacs.vm", hive, "/etc/sudoers.d/pacs", true); } private Processor createProftpdConfProc(Hive hive) throws ProcessorException { diff --git a/hsarback/src/de/hsadmin/mods/pac/sudoers-pacs.vm b/hsarback/src/de/hsadmin/mods/pac/sudoers-pacs.vm new file mode 100644 index 0000000..a9b6a5d --- /dev/null +++ b/hsarback/src/de/hsadmin/mods/pac/sudoers-pacs.vm @@ -0,0 +1,8 @@ +# +# This file is managed by HSAdmin. +# Do not edit manually. Changes will be overwritten. +# + +#foreach( $pac in ${hive.pacs} ) +${pac.name} ALL = (%${pac.name}) NOPASSWD: ALL +#end diff --git a/hsarback/src/de/hsadmin/mods/pac/sudoers.vm b/hsarback/src/de/hsadmin/mods/pac/sudoers.vm deleted file mode 100644 index 6223029..0000000 --- a/hsarback/src/de/hsadmin/mods/pac/sudoers.vm +++ /dev/null @@ -1,27 +0,0 @@ -# -# This file is managed by HSAdmin. -# Do not edit manually. Changes will be overwritten. -# - -# Host alias specification - -# User alias specification - -# Cmnd alias specification - -# Override built in defaults - -Defaults ignore_dot # "." bzw. "" im PATH ignorieren -Defaults always_set_home # HOME entsprechend des Zielusers aendern -Defaults env_reset # Environmentvariablen filtern -Defaults listpw=all # siehe sudoers(5) - -# User privilege specification -root ALL=(ALL) ALL -%adm ALL=NOPASSWD: ALL - -#################################################### - -#foreach( $pac in ${hive.pacs} ) -${pac.name} ALL = (%${pac.name}) NOPASSWD: ALL -#end