Discussion:
Problem with faxq-helper mgetty 1.1.33
(too old to reply)
anne aublanc
2006-06-01 01:12:27 UTC
Permalink
Hi,

faxq-helper: can't chdir to /var/spool/fax/outgoing: Permission denied
can't create new job directory, give up

I don't understand...
I had created a fax without problem a few minutes before with the same user.

thank you for your help
anne

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2006-06-01 08:46:25 UTC
Permalink
HI,
Post by anne aublanc
faxq-helper: can't chdir to /var/spool/fax/outgoing: Permission denied
can't create new job directory, give up
I don't understand...
I had created a fax without problem a few minutes before with the same user.
This looks like the permissions of "faxq-helper" or the permissions of
the "/outgoin/" directory have been changed.

They should look like this:

-rws--x--x 1 fax fax 70377 Apr 10 2005 /usr/local/lib/mgetty+sendfax/faxq-helper
drwxr-xr-x 13 fax root 672 May 29 08:58 /var/spool/fax/outgoing

the outgoing directory *can* have more restrictive permissions, but the
most important point is that it needs to be owned by the "fax" user, and
faxq-helper needs to be set-uid to that same (!) user.

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
anne aublanc
2006-06-01 13:45:22 UTC
Permalink
----- Original Message -----
From: "Gert Doering" <***@greenie.muc.de>
To: "anne aublanc" <***@wanadoo.fr>
Cc: <***@muc.de>
Sent: Thursday, June 01, 2006 10:46 AM
Subject: Re: Problem with faxq-helper mgetty 1.1.33


| HI,
|
| On Thu, Jun 01, 2006 at 03:12:27AM +0200, anne aublanc wrote:
| > faxq-helper: can't chdir to /var/spool/fax/outgoing: Permission denied
| > can't create new job directory, give up
| >
| > I don't understand...
| > I had created a fax without problem a few minutes before with the same user.
|
| This looks like the permissions of "faxq-helper" or the permissions of
| the "/outgoin/" directory have been changed.
|
| They should look like this:
|
| -rws--x--x 1 fax fax 70377 Apr 10 2005 /usr/local/lib/mgetty+sendfax/faxq-helper
| drwxr-xr-x 13 fax root 672 May 29 08:58 /var/spool/fax/outgoing
|
| the outgoing directory *can* have more restrictive permissions, but the
| most important point is that it needs to be owned by the "fax" user, and
| faxq-helper needs to be set-uid to that same (!) user.
|
|

I have :

-rws--x--x 1 faxmget faxmget 28454 aoû 10 2005 faxq-helper

/var/spool/fax/outgoing/F000438:
total 40
drw-r--r-- 2 faxmget zoro 4096 mai 31 20:22 .
drwxr-xr-x 102 faxmget root 8192 jun 1 02:08 ..
-rw------- 1 faxmget zoro 11818 mai 31 20:22 f1.g3
-rw------- 1 faxmget zoro 10642 mai 31 20:22 f2.g3
-rw-r--r-- 1 faxmget zoro 175 mai 31 20:22 JOB

/var/spool/fax/outgoing/F000439:
total 28
drw-r--r-- 2 faxmget root 4096 jun 1 00:23 .
drwxr-xr-x 102 faxmget root 8192 jun 1 02:08 ..
-rw-r--r-- 1 faxmget root 9846 jun 1 00:23 f1.g3
-rw-r--r-- 1 faxmget root 139 jun 1 00:23 JOB

At 00:45 am, I have the message with faxspool (no F000440) :
faxq-helper: can't chdir to /var/spool/fax/outgoing: Permission denied
can't create new job directory, give up

cat /etc/mgetty+sendfax/fax.allow
www
root
lp
zoro

anne


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2006-06-01 14:41:22 UTC
Permalink
Hi,
Post by anne aublanc
| -rws--x--x 1 fax fax 70377 Apr 10 2005 /usr/local/lib/mgetty+sendfax/faxq-helper
| drwxr-xr-x 13 fax root 672 May 29 08:58 /var/spool/fax/outgoing
|
-rws--x--x 1 faxmget faxmget 28454 aoû 10 2005 faxq-helper
I need the permissions of the "outgoing" directory, not of the
subdirectories *inside*.

Please do:

ls -lLd /var/spool/fax/outgoing

(the "d" is important)

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
anne a.
2006-06-01 14:50:27 UTC
Permalink
----- Original Message -----
From: "Gert Doering" <***@greenie.muc.de>
To: "anne aublanc" <***@wanadoo.fr>
Cc: <***@muc.de>
Sent: Thursday, June 01, 2006 4:41 PM
Subject: Re: Problem with faxq-helper mgetty 1.1.33


| Hi,
|
| On Thu, Jun 01, 2006 at 03:45:22PM +0200, anne aublanc wrote:
| > | -rws--x--x 1 fax fax 70377 Apr 10 2005 /usr/local/lib/mgetty+sendfax/faxq-helper
| > | drwxr-xr-x 13 fax root 672 May 29 08:58 /var/spool/fax/outgoing
| > |
| >
| > I have :
| >
| > -rws--x--x 1 faxmget faxmget 28454 aoû 10 2005 faxq-helper
| >
| > /var/spool/fax/outgoing/F000438:
|
| I need the permissions of the "outgoing" directory, not of the
| subdirectories *inside*.
|
| Please do:
|
| ls -lLd /var/spool/fax/outgoing
|
| (the "d" is important)
|

ls -lLd /var/spool/fax/outgoing
drwxr-xr-x 102 faxmget root 8192 jun 1 02:08 /var/spool/fax/outgoing

anne

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2006-06-01 15:00:15 UTC
Permalink
Hi,
Post by anne a.
| > | -rws--x--x 1 fax fax 70377 Apr 10 2005 /usr/local/lib/mgetty+sendfax/faxq-helper
| > | drwxr-xr-x 13 fax root 672 May 29 08:58 /var/spool/fax/outgoing
| > |
| >
| >
| > -rws--x--x 1 faxmget faxmget 28454 aoû 10 2005 faxq-helper
| >
|
| I need the permissions of the "outgoing" directory, not of the
| subdirectories *inside*.
|
|
| ls -lLd /var/spool/fax/outgoing
|
| (the "d" is important)
|
ls -lLd /var/spool/fax/outgoing
drwxr-xr-x 102 faxmget root 8192 jun 1 02:08 /var/spool/fax/outgoing
OK - these permissions are fine. But it could be a directory further up.

Could you please run:

ls -lLd / /var /var/spool /var/spool/fax /var/spool/fax/outgoing

- each of these directories needs to have "x" permissions for the
faxmget user (quite likely: "for every user on the systems"), because
otherwise "chdir" is not possible.

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
anne aublanc
2006-06-01 15:37:10 UTC
Permalink
----- Original Message -----
From: "Gert Doering" <***@greenie.muc.de>
To: "anne a." <***@linux-nuts.dyndns.org>
Cc: <***@muc.de>
Sent: Thursday, June 01, 2006 5:00 PM
Subject: Re: Problem with faxq-helper mgetty 1.1.33


| Hi,
|
| On Thu, Jun 01, 2006 at 04:50:27PM +0200, anne a. wrote:
| > | On Thu, Jun 01, 2006 at 03:45:22PM +0200, anne aublanc wrote:
| > | > | -rws--x--x 1 fax fax 70377 Apr 10 2005 /usr/local/lib/mgetty+sendfax/faxq-helper
| > | > | drwxr-xr-x 13 fax root 672 May 29 08:58 /var/spool/fax/outgoing
| > | > |
| > | >
| > | > I have :
| > | >
| > | > -rws--x--x 1 faxmget faxmget 28454 aoû 10 2005 faxq-helper
| > | >
| > | > /var/spool/fax/outgoing/F000438:
| > |
| > | I need the permissions of the "outgoing" directory, not of the
| > | subdirectories *inside*.
| > |
| > | Please do:
| > |
| > | ls -lLd /var/spool/fax/outgoing
| > |
| > | (the "d" is important)
| > |
| >
| > ls -lLd /var/spool/fax/outgoing
| > drwxr-xr-x 102 faxmget root 8192 jun 1 02:08 /var/spool/fax/outgoing
|
| OK - these permissions are fine. But it could be a directory further up.
|
| Could you please run:
|
| ls -lLd / /var /var/spool /var/spool/fax /var/spool/fax/outgoing
|
| - each of these directories needs to have "x" permissions for the
| faxmget user (quite likely: "for every user on the systems"), because
| otherwise "chdir" is not possible.
|

I found!
drw-r--r-- 5 root root 4096 aoû 31 2005 fax
drwxr-xr-x 4 root root 4096 aoû 10 2005 voice

=> chmod a+x /var/spool/fax

drwxr-xr-x 5 root root 4096 aoû 31 2005 fax

it's good now.......!

I don't know what arrived!

thank you
anne.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2006-06-01 21:52:04 UTC
Permalink
Hi,
Post by anne aublanc
I found!
drw-r--r-- 5 root root 4096 aoû 31 2005 fax
Yes - this would prevent any chdir (except for root) to
"/var/spool/fax/" and any directories beyond.
Post by anne aublanc
drwxr-xr-x 4 root root 4096 aoû 10 2005 voice
=> chmod a+x /var/spool/fax
drwxr-xr-x 5 root root 4096 aoû 31 2005 fax
it's good now.......!
Glad to hear that :-)
Post by anne aublanc
I don't know what arrived!
"Someone was cleaning up and wiping away all these extra x-bits"...

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2006-06-02 08:13:51 UTC
Permalink
Hi,
Post by anne aublanc
I don't know ;o)
I still have a little problem...
-rw-r--r-- 1 faxmget www 9508 mai 31 00:48 f1.g3
-rw-r--r-- 1 faxmget root 11025 mai 31 00:41 f1.g3
-rw------- 1 faxmget zoro 11818 mai 31 00:28 f1.g3
With user zoro, I can't read f1.f3 and I can't create pdf...
How to make so that zoro can read f1.g3?
Set "umask 022" before running faxspool - if you have umask 077, the
fax will not be group- or world-readable, which can be desired for
privacy reasons.

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
anne aublanc
2006-06-02 18:20:50 UTC
Permalink
----- Original Message -----
From: "Gert Doering" <***@greenie.muc.de>
To: "anne aublanc" <***@wanadoo.fr>
Cc: <***@muc.de>
Sent: Friday, June 02, 2006 10:13 AM
Subject: Re: Problem with faxq-helper mgetty 1.1.33


| Hi,
|
| On Fri, Jun 02, 2006 at 02:03:56AM +0200, anne aublanc wrote:
| > I don't know ;o)
| >
| > I still have a little problem...
| >
| > With user root or www :
| > -rw-r--r-- 1 faxmget www 9508 mai 31 00:48 f1.g3
| > -rw-r--r-- 1 faxmget root 11025 mai 31 00:41 f1.g3
| >
| > But with user zoro :
| > -rw------- 1 faxmget zoro 11818 mai 31 00:28 f1.g3
| >
| > With user zoro, I can't read f1.f3 and I can't create pdf...
| > How to make so that zoro can read f1.g3?
|
| Set "umask 022" before running faxspool - if you have umask 077, the
| fax will not be group- or world-readable, which can be desired for
| privacy reasons.
|

umask 0022;

thank you!
It's good

I have a test server.
My user zoro receive a mail...
in qmail :
#./Maildir/
|/home/e-smith/files/users/zoro/home/bin/mailman.pl

in mailman.pl :
I use Email::MIME and Email::MIME::Attachment::Stripper to analyze the parts of incoming mail.
I include mail2fax (fronted mgetty) in mailman.pl to analyse the mails body.
I call faxspool if this is ok
I use Net::SMTP and Net::SMTP::Multipart to return a mail with the fax transformed into pdf or the errors if faxspool is not ok.

Now, it is necessary that I finish!

thank you
anne



--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
anne aublanc
2006-06-02 00:03:56 UTC
Permalink
----- Original Message -----
From: "Gert Doering" <***@greenie.muc.de>
To: "anne aublanc" <***@wanadoo.fr>
Cc: <***@muc.de>
Sent: Thursday, June 01, 2006 11:52 PM
Subject: Re: Problem with faxq-helper mgetty 1.1.33


| Hi,
|
| On Thu, Jun 01, 2006 at 05:37:10PM +0200, anne aublanc wrote:
| > I found!
| > drw-r--r-- 5 root root 4096 aoû 31 2005 fax
|
| Yes - this would prevent any chdir (except for root) to
| "/var/spool/fax/" and any directories beyond.
|
| > drwxr-xr-x 4 root root 4096 aoû 10 2005 voice
| >
| > => chmod a+x /var/spool/fax
| >
| > drwxr-xr-x 5 root root 4096 aoû 31 2005 fax
| >
| > it's good now.......!
|
| Glad to hear that :-)
|
| > I don't know what arrived!
|
| "Someone was cleaning up and wiping away all these extra x-bits"...
|

I don't know ;o)

I still have a little problem...

With user root or www :
-rw-r--r-- 1 faxmget www 9508 mai 31 00:48 f1.g3
-rw-r--r-- 1 faxmget root 11025 mai 31 00:41 f1.g3

But with user zoro :
-rw------- 1 faxmget zoro 11818 mai 31 00:28 f1.g3

With user zoro, I can't read f1.f3 and I can't create pdf...
How to make so that zoro can read f1.g3?

Thank you
anne


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...