Linux / UNIX Tech Support Forum
This is a discussion on Allow non-root to view system logs? within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Is there a way to give just view permissions to non-root users to the system logs? I have web developers ...
|
|||||||
| Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Is there a way to give just view permissions to non-root users to the system logs? I have web developers who want to view the logs but I don't want them to have the ability to change them.
thanks |
| Sponsored Links | ||
|
|
|
||||
|
Use sudo to give access. For example give tom user permission to view /var/log/scripts.log file
Code:
tom localhost=/bin/grep /var/log/scripts.log Code:
sudo /bin/grep /var/log/scripts.log See Allow a normal user to run commands as root under Linux / UNIX operating systems
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Thank you for the reply, Hadn’t even thought of the tail command, was using vi with sudo.
Are there other viewers available that could be used to scroll thru the entire log? |
|
||||
|
less is much better and works great. It has search and other useful options:
Code:
man less
__________________
Vivek Gite Linux Evangelist |
| The Following User Says Thank You to nixcraft For This Useful Post: | ||
Dino (07-07-2009)
| ||
![]() |
| Tags |
| linux , root user , sudo |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| windows server 2003 as a host system for LINUX guest system VPS | h@foorsa.biz | Web servers | 3 | 11-15-2008 10:13 AM |
| How to view server logs in Ubuntu server | enochalbert | Ubuntu / Debian | 1 | 10-24-2008 08:43 PM |
| any way to view view ALL members of a group? | guzenkov | Ubuntu / Debian | 8 | 05-19-2008 02:21 AM |
| CVS logs how to | rajuk | Linux software | 1 | 12-14-2006 04:44 PM |
| I forgot my root password, how do I get into my system? | toor | Linux software | 2 | 07-06-2006 11:59 AM |