From 0e53e2d15c9dce741ce5c1514994a84b51755f52 Mon Sep 17 00:00:00 2001 From: "christopher.lawrence" Date: Fri, 7 Feb 2020 12:29:53 +0000 Subject: [PATCH] managing directories with ACLs --- .../manifests/custom_windows/.add_user.pp.swp | Bin 12288 -> 0 bytes .../manifests/custom_windows/add_user.pp | 29 ++++++++++++++++++ 2 files changed, 29 insertions(+) delete mode 100644 site-modules/profile/manifests/custom_windows/.add_user.pp.swp diff --git a/site-modules/profile/manifests/custom_windows/.add_user.pp.swp b/site-modules/profile/manifests/custom_windows/.add_user.pp.swp deleted file mode 100644 index c6a0ce03f612affea4b38c355ca8067458b742a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2L2uJA6vsX8Fa&pG$|0Af8E}~*4T<$sX+s?7E(=sy;BfFCF?K<6|Njr)|9|W?gvdIN! z>;vQ6iF4PqJ$Jp`Zov;<@SwVM%V3YW52)cgU5fciRxW|URyU#xiP|)}E9*jm(!z+^ z_NCrgrN*>U=iXU0N{Jic-q$;iCUKI?=r|@xs!LZr>NfI5OD!8^x{c0)quKQM&Gc20 zyv(bjrXG2nTB%L2$2TEw6};W{AdCK*-ty1G)~Ubc5O@1hm~q~>zsK>-uJ<_3#iFQ% Z?|kQLhtAi;)VW{M#s6J5w9E4~`wdAo(g^?n diff --git a/site-modules/profile/manifests/custom_windows/add_user.pp b/site-modules/profile/manifests/custom_windows/add_user.pp index 4145825..45b9db4 100644 --- a/site-modules/profile/manifests/custom_windows/add_user.pp +++ b/site-modules/profile/manifests/custom_windows/add_user.pp @@ -11,4 +11,33 @@ class profile::custom_windows::add_user { manage_home => true, user_file => 'myfile', } + + acl { 'C:\\Users\\myuser\myfile': + permissions => [ + { identity => myuser, rights => ['read','execute'] }, + { identity => mygroup, rights => ['read'] } + ], + } + + registry::value { 'Enable IE ESC': + key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}', + value => 'IsInstalled', + data => '1', + type => 'dword', + } + + + registry::value { 'Enable shutdown tracker': + key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability', + value => 'ShutdownReasonOn', + data => '1', + type => 'dword', + } + + registry::value { 'Enable shutdown tracker UI': + key => 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability', + value => 'ShutdownReasonUI', + data => '1', + type => 'dword', + } }