escaping * in sudoers

barbara.ruess at barbara.ruess at
Mon Mar 8 08:53:31 EST 2004

According to sudo documentation you can escape a special character in the
sudoers file by \.
I am trying to give a user permission for a command that contains an
astrisk, le's say   ls *.
But I can't put this in the sudoers file:
testuser testhost=(ROOT) NOPASSWD:/usr/bin/ls \*

>>> sudoers file: syntax error, line 540 <<<
What now?

Regards, Barbara

Barbara Ruess

Tel.: 0711-663-2516                         Leuschnerstr. 12, 70174
Fax: 0711-663-82516                       email: barbara.ruess at

More information about the sudo-users mailing list