sudo -l gives me output:
User test may run the following commands on server: (root) NOPASSWD: /usr/bin/vim /usr/bin/motd
sudo -ll gives me output:
Sudoers entry: RunAsUsers: root Options: !authenticate Commands: /usr/bin/vim /usr/bin/motd
When i run as user 'test':
sudo /usr/bin/vim I get error:
Sorry, user test is not allowed to run '/usr/bin/vim' as root on server.
I have a feeling this is due to the fact that usr/bin/vim is symlinked to another file
/usr/bin/vim -> /etc/alternatives/vim
Is there anything I can do?