summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/POSIX.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py
index c6e76652e..146fa7070 100644
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -161,6 +161,14 @@ class POSIX(Bcfg2.Client.Tools.Tool):
except OSError:
self.logger.error('Failed to create directory %s' % (entry.get('name')))
return False
+ return self.InstallPermissions(entry)
+
+ def VerifyPermissions(self, entry, _):
+ '''Verify Permissions entry'''
+ return self.VerifyDirectory(entry, _)
+
+ def InstallPermissions(self, entry):
+ '''Install POSIX Permissions'''
try:
os.chown(entry.get('name'),
pwd.getpwnam(entry.get('owner'))[2], grp.getgrnam(entry.get('group'))[2])