Ethereal-users: Re: [Ethereal-users] File write permissions during capture

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 01 Feb 2006 03:37:27 -0800
Webber, R. Marshall wrote:

When in capture mode as root, my files are being captured to a hog
partition. My root umask should produce files with rw-r--r-- perms.

...if the application producing the file supplies an initial file mode of rw-rw-rw-. The umask is ANDed with the initial file mode supplied in the open() or creat() call to generate the mode used for the file.

Ethereal doesn't - it supplies a mode of rw------- for newly-created capture files, so you won't get any mode more permissive than that.

But all of my capture files are being written as
rw------- which isn't much use to me. There are several people on the
system that we want to have access to the captures but not give them
root to perform the captures.

I looked through the FAQs, the .ethereal config file and and docs I
could lay my hands on..nothing.

Is this configurable?

No. You'll have to change the permissions and/or ownership of the capture file after the capture is done.