From 3fdf3a98194f9619c312e63b2cd66927233575fb Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 1 Feb 2018 17:31:54 -0800 Subject: [PATCH] Turn on o+x permission for the queue and results directories Otherwise it won't allow a group member to delete things. --- src/sbin/lorax-composer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sbin/lorax-composer b/src/sbin/lorax-composer index 43a1cb8a..af87a21d 100755 --- a/src/sbin/lorax-composer +++ b/src/sbin/lorax-composer @@ -198,13 +198,13 @@ if __name__ == '__main__': if not os.path.exists(p_dir): log.info("%s does not exist, creating it.", p_dir) orig_umask = os.umask(0) - os.makedirs(p_dir, 0o770) + os.makedirs(p_dir, 0o771) os.chown(p_dir, 0, gid) os.umask(orig_umask) else: p_stat = os.stat(p_dir) - if p_stat.st_mode & 0o007 != 0: - errors.append("Incorrect permissions on %s, no 'other' permissions are allowed." % p_dir) + if p_stat.st_mode & 0o006 != 0: + errors.append("Incorrect permissions on %s, no o+rw permissions are allowed." % p_dir) if p_stat.st_gid != gid or p_stat.st_uid != 0: errors.append("%s should be owned by root:%s" % (p_dir, opts.group))