Bug 344

Summary: Aliases reported erronously as unused
Product: Sudo Reporter: Bogdan Szczurek <thebodzio>
Component: VisudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: low    
Priority: low    
Version: 1.7.0   
Hardware: PC   
OS: Linux   

Description Bogdan Szczurek 2009-03-24 19:13:07 MDT
In my policy of forming sudoers file I'm using aliases pointing to specific binaries and the group them using another alias by their function, like this:

Cmnd_Alias GREP = /bin/grep
Cmnd_Alias MISC_UTILS = GREP

Sudo works properly with rules formed that way but visudo issues a warning stating that aliases like GREP in given example are unused. It does not complain about aliases like MISC_UTILS since they are used directly when specifying user capabilities e.g.

MAINTAINERS ALL = (root) MISC_UTILS

MAINTAINERS is User_Alias.

I'm not sure about that but I wasn't able to notice such behavior with previous versions of visudo.

Is the mentioned behavior introduced purposedly? If it is could you kindly reconsider it?
Comment 1 Todd C. Miller 2009-03-24 19:17:32 MDT
Sounds like a bug; I'll look into it so it can be fixed in the upcoming 1.7.1 release.
Comment 2 Bogdan Szczurek 2009-03-24 19:29:45 MDT
That's great! I'll watch this to provide some assistance if necessary.
Comment 3 Todd C. Miller 2009-03-28 09:49:33 MDT
Please give 1.7.1b5 a try and verify that it fixes the problem
ftp://ftp.sudo.ws/pub/sudo/beta/sudo-1.7.1b5.tar.gz
Comment 4 Bogdan Szczurek 2009-03-28 14:09:21 MDT
It seems to work properly now. Thanks a lot! :D
Comment 5 Todd C. Miller 2009-04-18 19:18:06 MDT
Sudo 1.7.1 is out now