I have these computers;
emu     much updated RHL 5.0; it has my modem and hosts home directories etc.
possum  RHL 6.1 plus all relevant 6.1 updates plus a few bits of 6.2 that 
have squeezed through my modem.

Both have efax 0.9; emu has efax-0.9-4.
emu has the recently-released lpr update: lpr-0.48-0.5.2, while possum has 
lpr-0.48-1.

possum has an entry in /etc/printcap:
fax:\
        :sd=/var/spool/lpd/fax:\
        :mx#0:\
        :sh:\
        :rm=emu:\
        :rp=fax:\
        :if=/var/spool/lpd/fax/filter:
[summer@possum summer]$


The fax goes to emu just fine.
emu has this:
fax:\
        :sd=/var/spool/fax:\
        :lf=/var/log/faxlog:\
        :mx#0:\
        :sh:\
        :sf:\
        :pl=68:\
        :pw=80:\
        :lp=/var/log/lastfax:\
        :if=/u02/summer/bin/faxlpr:
#       :if=/usr/bin/faxlpr:
#       :if=/u02/summer/bin/faxlpr:

If I use /usr/bin/faxlpr, I get permissions problems. 
/u02/summer/bin/faxlpr is a modified version of the other, containing 
assorted debugging code.

The permissions problems arise because lpd runs the filter as me (or 
whoever it was who is trying to fax).

Now, I could complain to Mr Ed (the author), but really I'd like to get 
this working and then tell him what to do.


Thus far I've had permissions problems on /var/spool/fax (which I DID 
chmod) and then /var/lock

Prospective solutions I see:
1       Change permissions on all directories to everyone can read/write them.
        While I don't see any problems for me personally (home user, nobody else 
knows enough to be dangerous), I don't see it as a good general solution.
2       Write a wrapper for the script. Mark it set-uid, perhaps not to root but 
to a user who CAN read/write the directories. The wrapper would simply 
exec the script. If someone else wants to pamify it, that's cool. I don't 
care.
3       Install some other fax software. I COULD do this, but efax is the only 
Linux software I've seen that understands Class 1 fax modems (and they're 
still around).

There is one more thing I don't understand; I can print just fine from 
both computers to the printer attached to emu. The RHS filders don't have 
any problem. Mind you, I've not gone through them in great detail.


What do others think? 

I favour the second; what drawbacks do others see? Should I create a new 
user (maybe fax) or use an existing one. If a new one, should it be a 
system account?
-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.


-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to