Skip to content

certain usernames break config #1119

Closed
@hyder365

Description

@hyder365

Calling sudo-rs with -u and a username that begins with an underscore seems to trip it up. Here I want to run a script, but only allow it without arguments.

sudo-rs -u _unpriv myscript

gives the error:

/etc/sudoers:37:13: expecting ')' but found '_'

Example config:

Cmnd_Alias BUILD = /usr/local/bin/myscript ""
myuser ALL=(_unpriv) NOPASSWD: BUILD`

Metadata

Metadata

Assignees

Labels

C-parserParser/ASTbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions