I've created a user, but I'm not able to access my log file in /var/log. It says permission denied. I don't want to use sudo, as I want to access it from scripts too. I was able to achieve this by adding the user in /etc/sudoers file and adding NOPASSWD so that it doesn't ask for password. But I'm assuming it'll elevate the privileges of the new user to that of root, which I don't want. I'm not able to change the user of the log file too, probably since syslog is not owned by root, but by syslog user and it doesn't have enough privileges to do that.
0 Answers