Bug 176 - uppercase user name assumed to be alias
uppercase user name assumed to be alias
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.8
HP HP-UX
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-13 12:29 MDT by Doug Townes
Modified: 2005-04-14 10:49 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.