Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_user as list? #48

Open
jpmens opened this issue Mar 19, 2021 · 0 comments
Open

check_user as list? #48

jpmens opened this issue Mar 19, 2021 · 0 comments

Comments

@jpmens
Copy link
Contributor

jpmens commented Mar 19, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant