|
Bugzilla – Full Text Bug Listing |
| Summary: | Sudo incorrectly passing through arguments with -i and -- options | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Rick Helmus <rhelmus> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Rick Helmus
2009-10-25 12:39:59 MDT
The way the -i option works has changed in sudo 1.7.0. Sudo now supports running a command in conjunction with the -i flag so instead of: sudo -u root -i -- -c 'echo hi' You would simply do: sudo -u root -i echo hi and sudo will wrap add the -c for you. The "--" is not being ignored, but what ends up being run is effectively: /bin/bash -c '-c echo hi' Which results in the error. |