paternoster icon indicating copy to clipboard operation
paternoster copied to clipboard

check_user as list?

Open jpmens opened this issue 4 years ago • 0 comments

I was hoping check_user would accept a list of valid users, but it's scalar only. Maybe this could become an enhancement sometime.

check_user: [ jane, jpm ]

What I probably should show is the subsequent error when I try that. :-)

...
  File "../python3.9/site-packages/paternoster/root.py", line 30, in check_user
    return os.geteuid() == pwd.getpwnam(user).pw_uid
TypeError: getpwnam() argument must be str, not list

jpmens avatar Mar 19 '21 16:03 jpmens