|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo ls wildcard bug | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Toby Foote <sudo> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | normal | ||
| Version: | 1.6.7 | ||
| Hardware: | IBM | ||
| OS: | AIX | ||
|
Description
Toby Foote
2004-12-29 12:27:17 MST
Unlike DOS or Windoes, in Unix wilcard expansion is done by your shell, not the individual application. Thus any wildcards should have been expanded before sudo is even run and this is done as the regular user and not root (or whatever user you are asking sudo to run things as). If you quote the wildcards it prevents the shell from expanding then and ls will give an error like what you submitted. Sudo's wildcard support is limited to matching a given command to entries in the sudoers file itself. |