diff options
-rw-r--r-- | module/plugins/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index c623b90cc..987305d17 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -279,8 +279,8 @@ class Plugin(object): if self.core.config["permission"]["change_user"] and self.core.config["permission"]["change_group"]: try: - uid = getpwnam(self.config["permission"]["user"]) - gid = getgrnam(self.config["permission"]["group"]) + uid = getpwnam(self.config["permission"]["user"])[2] + gid = getgrnam(self.config["permission"]["group"])[2] chown(join(location, name), uid, gid) except Exception,e: |