Bugzilla – Bug 176
uppercase user name assumed to be alias
Last modified: 2005-04-14 10:49:37 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.
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.
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.
Sorry, Todd. Thanks for the clarification. From the warning message I presumed it would not work. Sorry to bother you with that.