Skip to content
Snippets Groups Projects
Commit ba46c599 authored by Maciej Bonin's avatar Maciej Bonin
Browse files

"

parent a522e3aa
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,8 @@ permission_exclude = ['sengun','jheinsoo','ybonetti']
acl_exclude = ['jheinsoo']
permission_excluded = []
acl_excluded = []
owner_exclude = ['ybonetti']
owner_excluded = []
class Home(object):
"""
......@@ -125,7 +126,10 @@ def check_homes(top):
home_dirs += 1
if bad_owner(home):
owner.append(home)
if f not in owner_exclude:
owner.append(home)
else:
owner_excluded.append(home)
if bad_permission(home):
if f not in permission_exclude:
......@@ -257,6 +261,13 @@ def run_check(xymon):
content += ''.join([str(home.permission), '<br/>'])
xymon.section(title, content)
if owner_excluded:
title = 'bad ownership ignored'
content = 'home must be owned by the respective user and the group his user-private-group<br/><br/>'
for home in owner_excluded:
content += ''.join([str(home), '<br/>'])
xymon.section(title, content)
if not_closed:
title = 'home not closed (bad permissions)'
content = 'blocked user homes should have <code>u=---</code><br/><br/>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment