Ethereal-users: Re: [ethereal-users] Problem when starting ethereal

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Wed, 1 Dec 1999 14:14:08 -0600
On Wed, Dec 01, 1999 at 01:53:59PM -0600, Roberto Machado wrote:
> 
> 
> 
> 
> On Wed, 1 Dec 1999, Gilbert Ramirez wrote:
> 
> > I bet you became root and for some reason your environment
> > variable "DISPLAY" was not carried across. How did you become
> > root, via "su - root", or "su root", or am I wrong? "su - root",
> > on my system at least, gets rid of the DISPLAY variable, while "su
> > root" does not. Anyway, I use "sudo" to start ethereal.
> 
>  BTW, I have an intriguing behavior here:
> 
>  If I run ethereal as myself (user in the wheel group), everything
>  goes fine until I finish capture. Then, there is a dialog box
>  complaining the it couldn't create /var/tmp/ether00000NNNNNNN. Well,
>  I have write permission to that directory, and can create files in
>  /var/tmp with, let's say, "touch" or "cat > /var/tmp/ether...".
> 
>  It might be a problem specific to my configuration, but I couldn't
>  find it yet. Running as root, there's no problem. I'm using BSDI 3.1.
> 
> Regards, Roberto

The code that creates the temporary capture file does this:

        old_umask = umask(0077);
        tmp_fd = mkstemp(namebuf);
        umask(old_umask);

It changes the umask before creating the file. In your configuration,
can you run this successfully from the shell?

	umask 0077; touch /var/temp/ether.test

If so, what does `ls -dl /var/tmp` show?

--gilbert