Solved

Linux sudoers access to tail command

Posted on 2011-09-02
2
647 Views
Last Modified: 2012-05-12
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??

0
Comment
Question by:ipconfig610
  • 2
2 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36473521
Try
/usr/bin/tail
instead of tail alone.

wmp
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 36473542
Sorry, the full sudoers entry should be

user  ALL=NOPASSWD:/usr/bin/tail
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now