I have a file that is owned and written by
I have another user called
systemuser that we have given sudo privileges for every action.
I'm able to perform every action by
systemuser just like how i do for
But I'm trying to null a file owned and written by root and I get permission denied error.
>api-server-out-0.log -bash: api-server-out-0.log: Permission denied $ sudo >api-server-out-0.log -bash: api-server-out-0.log: Permission denied
Note: a process running with
root user is currently writing to this log file.
Can you please suggest how can I using `systemuser ?