def from_local_shell():
username = os.getlogin()
groups = []
for group in grp.getgrall():
if username in group.gr_mem:
groups.append(group.gr_name)
return JanusContext(username, groups, 'shell')