Solved

Linux sudoers access to tail command

Posted on 2011-09-02
2
661 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Postfix issues with spam/auth attempts under NAT 9 112
How to install Ubuntu 16 in DELL venue 8 pro 20 289
how to rebuild XFS volume from LV 19 89
Linux VM 6 101
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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é.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

856 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