I created 5 new users in Fedora. However, all this has to be appended to a log file. One of the requirements for the assignment is to append /etc/passwd and /etc/shadow files into a log file. I am logged in as the admin in root and when I try something along the lines of:
/etc/passwd >> file.log
I get a permission denied message. How would I be able to post the contents of these files into my log file?