Sudo Aureport Redirect output
Hi, All,
How do run aureport as root and redirect it's output to a directory that's only writeable by root? Ex: sudo -u root aureport > /var/log/test.report /var/log/test.report permission denied /var/log has these permissions: drwxr-xr-x root root Thanks, jaypas |
Code:
sudo <command> | sudo tee /path/to/file Code:
sudo <command> 2>&1 | sudo tee /path/to/file |
All times are GMT -5. The time now is 04:18 PM. |