Feeling pretty dumb. With the same user I am able to edit a file via vi, but I get permission errors when appending to the file. What am I doing wrong. I would like to append to this file!
ls -alt /var/log
drwxr-xr-x 11 root root 4096 May 14 01:20 .
-rw-rw-r-- 1 root root 6 May 14 01:20 money-worker.log
sudo echo "hello" >> /var/log/money-worker.log
-bash: /var/log/money-worker.log: Permission denied
whoami
ubuntu
I am running ubuntu 12.04, and sshing in
Love some tips. Thanks guys!