Ethereal-users: [Ethereal-users] ethereal and umask 077

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Mordechai T. Abzug" <morty@xxxxxxxxxx>
Date: Tue, 15 Jun 2004 19:24:59 -0400
I'm using assorted versions of ethereal under Debian linux.  It looks
like versions, up to and including 0.10.4 (the most recent I checked),
save files with perms of 700 regardless of the setting of umask.  This
is not desirable in our environment because we want our users to be
able to share capture files.

Nearly as I can tell, at one point, ethereal explicitly sets umask to
077; creates the capture as a temp file; resets umask to whatever it
was; and when you actually ask for the file to be saved, rename()s it
to the actual file name.  This means that umask is effectively
ignored.  Similar for SGID on the directory.  Is there any way around
this, other than asking users to manually fix the permission on files?

Thanks!

- Morty