Skip to content

check_user as list? #48

@jpmens

Description

@jpmens

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions