--- tcpdump.c~ Wed Feb 25 10:00:06 2004 +++ tcpdump.c Wed Feb 25 10:00:06 2004 @@ -906,8 +906,10 @@ * We cannot do this earlier, because we want to be able to open * the file (if done) for writing before giving up permissions. */ - if (username || chroot_dir) - droproot(username, chroot_dir); + if (getuid() == 0 || geteuid() == 0) { + if (username || chroot_dir) + droproot(username, chroot_dir); + } #endif /* WIN32 */ #ifdef SIGINFO (void)setsignal(SIGINFO, requestinfo);