|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo -i requires login shell entry in sudoers | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | David.Wood |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.4 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
|
Description
David.Wood
2010-08-30 17:57:19 MDT
That behavior is correct. The only way to run a command with the a login-style environment is to run it via a login shell. The -i flag is really just shorthand for doing that. Since the login shell may be influenced by the environment or by flags passed in it would not be secure to allow any user to run any command via "sudo -i" unless they are explicitly allowed to run it via the shell. |