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?

Improve company productivity with a Business Account.Sign Up

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.