Linux sudoers access to tail command

I would like to give one of my users access to the tail command (/usr/bin/tail).  When they run

sudo tail -f /var/log/messages

they receive "Sorry, user USER is not allowed to execute '/usr/bin/tail' as root "

What do I need to add to /etc/sudoers to allow access??

ipconfig610Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
woolmilkporcConnect With a Mentor Commented:
Sorry, the full sudoers entry should be

user  ALL=NOPASSWD:/usr/bin/tail
0
 
woolmilkporcCommented:
Try
/usr/bin/tail
instead of tail alone.

wmp
0
All Courses

From novice to tech pro — start learning today.