'How to get user specific cron logs from its own userspace?
Context
Hello, I'm working on a project on a AWS EC2, in which I have a script running periodically thanks to crontab.
This script owner is ec2-user, so I run this script from the crontab owned by ec2-user (via crontab -e in ec2-user userspace).
I'm trying to monitor the Cron logs with a script owned by ec2-user
Problem
Here's my problem I've located cron logs at /etc/var/log, but it's owned by the root user:
10:00:20 - [ec2-user@ip-10-193-54-30]$ ls -l /var/log/cron
-rw------- 1 root root 1366126 Feb 22 10:08 /var/log/cron
I'm wondering if it's possible for my ec2-user (without being root (sudo) nor changing ownership or permission (chown/chmod)) to monitor its log ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
