HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: faxrcvd script does not work
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 6 Jan 2000, Ertan Kucukoglu wrote:
> On Wed, 5 Jan 2000, Alan Sparks wrote:
>
> > Linking outside the spool may not work... I think you're chrooted to the
> > spool (someone correct me if I'm wrong)...
> >
> Ok. I didn't changed default setup, so I assume it is chrooted to
> the /var/spool/fax. Now, what should I do? Is there a way to chroot to
> real root directory? Then I can do what I want I guess.
Don't muck with the chroot! This way lies madness, and security holes.
> I mkdir /var/spool/fax/ftp directory and wanted to copy only received
> faxes into that directory, but can not run this cp command (although I
> copied 'cp' tp /var/spool/fax/bin/.
Hmm. Haven't tried this kind of stunt myself: I simply make symbolic
links from /var/spool/fax/recvq to wherever I want the faxes to be
visible as a user, not as part of the faxrcvd process.
> I'm really tired, working about a week only for that. Is there a good
> doc(s) that explains faxrcvd script? (I read man and it didn't help me
> much.)
Not really.
> > If that's not it, check your paths to executables -- running by hand, you
> > inherit your shell's PATH, which you wouldn't if HylaFAX is running the
> > script.
>
> If I run script by hand, It exactly works. I don't understand the working
> style of faxrcvd script.
Looks like the chroot problem. Let me make a quick and dirty suggestion:
teach faxrcvd to do a
mkdir -p destination directory
And see exactly where that destination is winding up. Then realize
that you are dealing with files *THERE*, and let faxrcvd set the file
permissions or anything else there appropriately. This is a quick and
dirty, and while not necessarily secure might save you some time.
Nico Kadel-Garcia
Senior Engineer, CIRL
Mass. Eye and Ear Infirmary
raoul@cirl.meei.harvard.edu
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBOHSoZD/+ItycgIJRAQGNZgP8COZJISG3vO3q24IPfNg5Oh3eVFaXBp5o
5gR9epn0U3EC+gPoLIN55cppV3t2nScrz6YgkvGPPljG9S0F3KfT6FQjthgxdMpR
pBwGOuS/hkvTguMQAD1bchXR32VVeUkrTPp4WfCDlYfm61gwgsFua97twlGzmdzN
yRnwEfu0hhk=
=A8j4
-----END PGP SIGNATURE-----