Bug 176

Summary: uppercase user name assumed to be alias
Product: Sudo Reporter: Doug Townes <dtownes>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: HP   
OS: HP-UX   

Description Doug Townes 2005-04-13 12:29:15 MDT
Due to an old ERP system which likes uppercase user names our system uses 
uppercase user names.  sudo assumes that these are aliases when I try to enter 
them in sudo.
Comment 1 Doug Townes 2005-04-13 12:42:41 MDT
To clarify, I am trying to enter in sudoers:

TJM     cott-usa = NOPASSWD: /usr/sbin/fuser

where TJM is a user name so that TJM can run fuser.
Comment 2 Todd C. Miller 2005-04-13 21:06:21 MDT
There is no way for sudo to tell the difference between an all uppercase username and a User_Alias.  
Because of this, visudo warns when you have alll uppercase usernames in the sudoers file, since it is 
unable to tell whether or not this is an error.  However, when sudo runs and finds an all uppercase name, 
it will first look for a User_Alias by that name.  If there is none, sudo will check the password database 
instead.

In other words, you can ignore the warning from visudo if there is really is a user by that name.
Comment 3 Doug Townes 2005-04-14 06:49:37 MDT
Sorry, Todd.  Thanks for the clarification.  From the warning message I 
presumed it would not work.  Sorry to bother you with that.