|
Bugzilla – Full Text Bug Listing |
| Summary: | Can't combine ALL with ! command alias | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | eric |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | normal | ||
| Version: | 1.6.1 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
|
Description
eric
2000-11-01 10:00:59 MST
That should work, I've been using things like
username hostname = ALL, !SU, !SHELLS
for years. Beware however, that order is important and sudo will use the last
match it gets. The output of "sudo -l" can be useful in debugging things like
this. You might try upgrading to the latest sudo (1.6.3p5) though I'm fairly
certain that no bugs related to this have been fixed between 1.6.1 and 1.6.3p5.
I am unable to reproduce this problem. However, it does not make sense to do "ALL, !FOO" since it is trivial to work around this by copying the command to another name, writing a program or script that creates a root shell, etc. |