I'm trying to allow users to read log files. In
debian users in group
adm is allows to read many log files. (Ref : https://wiki.debian.org/SystemGroups)
So my plan is to use sudo and allow users to run commands like
ail, less, more on log files as they in
My try was something like below and it didn't work.
website is the account I have hosted my website.
user2 are the developers who work on website and trying to look at log files.
Config: user1 ALL=(website:adm) /bin/tail /var/www/error.log
command: sudo -u website tail /var/www/error.log
That I did wrong here?