Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux sudoers access to tail command

Posted on 2011-09-02
2
Medium Priority
?
745 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 2000 total points
ID: 36473542
Sorry, the full sudoers entry should be

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

877 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