Ok, so one of our customers SRXes has just core-dumped, but as a non-root user it seems you can’t do much with the core files. You can do a ‘show system core-dump’ to see the files listed, but they are owned by root and have rw flags for the root user only.
The way to get around this is to archive the files. The resulting archive will be read/write for the user that is currently logged in.
1. First, do a ‘show system core-dumps’ to see where the dumps are located. It should produce something like this:
/var/crash/*core*: No such file or directory
/var/tmp/utmd.core-tarball.0.tgz: No such file or directory
/var/crash/kernel.*: No such file or directory
2. Find out what your home directory is using ‘file list’:
3. Archive the core dump:
file archive compress source /var/tmp/utmd.core-tarball.0.tgz destination /cf/var/home/user1/utm-core.tgz
Now you should be able to FTP the file off (logged in as user1) with no probs.