I faced a very weird error, I'm running tcpdump by the root and want to log the output, when I do
tcpdump -i eth0 -w logs/local.dump
it works fine, but when I set the output path like bellow, I get permission error:
tcpdump -i eth0 -w /mnt/local.dump
The permissions of the 'logs' folder which is in /home/ubuntu is 755 and root:root, ad the same for /mnt the permission is 755 and root:root. But I don't get why I get the permission error when I set the output as /mnt/local.dump.