sudo ignores shortname aliases in sudoers file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Our sudoers file contains host aliases which all work fine on versions of Ubuntu < 16.04.
On 16.04, it has become necessary to include the FQDN of the machine in order for sudo permissions to be granted. I have reproduced this problem on two cleanly-installed servers.
i.e.
This entry in /etc/sudoers does not work for members of sudo group:-
%sudo ourserver
This entry in /etc/sudoers does work for members of sudo group:-
%sudo ourserver.
Extra information which may be of interest:
'hostname' returns the shortname on both Ub1604 and Ub1404 installations
/etc/hosts lists machines by fqdn and then shortname on both platforms, i.e.
ip.ad.dr.es ourserver.
/etc/resolv.conf is set to search our.domain, same on both platforms
sudo package version is 1.8.16-0ubuntu1.1
Bw
John
Status changed to 'Confirmed' because the bug affects multiple users.