Joel Franco Guzmán on Thu, 17 Jan 2002 23:50:19 +0100 (CET)(envelope-from owner-apsfilter-current@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

debian + apsfilter + lprng + smb.


Hi,

	First, sorry by the english. :)
	Second, i'm writing to u, bcoz i have seen that u are the
mantainer of the apsfilter in the debian distribution.
	Well, the problem follow it: (I already solved it, but i was
relating it to u)

	I'm using the testing distribution...
	I was trying to install the apsfilter + lprng.
	The debian make the /var/spool/lpd like this:

drwxr-xr-x    9 root   root         4096 Jan 16 12:45 lpd

	In the configuration of the apsfilter using the apsfilterconfig,
it says that the own of /var/spool/lpd is root.root and ask if it is
correct. Bcoz the package is mantained by a debian member, i suppose
that the script is asking things that we could answer with a <ENTER> :)
Then i accepted the suggestion.

	In this way, the script thinks that the owner of the printer
spool process is root, like answered before in the /var/spool/lpd
directory. In my configuration, i was using the smb option to print to
another machine. This creates a file with the password that is set 600
and owned by root.

	However, the lprng in my system run under the daemon. This means
that when it calls the apsfilter script, this run under the daemon user
too. In this way, apsfilter CANNOT read the file that contain the
password to print through smb.

	Then the system burn a 100% CPU by a 10 seconds aprox. and don't
print and don't say nothing bcoz it don't printed.

	Well, this is the fact.

	The question is: Who could change a thing to it problem don't
occur? I don't think it is a bug, bcoz it ask the user about the owner
of the directory. However, this create problems like the mine, making me
loose a lot time, without print :)

	I thought make a "wish diff" to the apsfilterconfig, making it
see the process running, looking for a lpd running process. Then it
could check the owner of the process and alert the user, when
configuring the machine about the difference between the /var/spool/lpd
owner and the lprng owner, bcoz if it is different, it will not print.

	I was making it, when i saw in the apsfilterconfig a lines about
the debian don't need to check permissions. I don't tried to understand
what it was talking about, but i thought that i could to talk u about it
and the apsfilter owner before make anything.

	Well, i have done my contribution to better the apsfilter.

	I wait for the ur response.

	Nice to meet u

-------------------------------------------------
My system

        Operating System  : Linux Debian testing
        apsfilter Rel.    : apsfilter-6.1.1
        ghostscript Rel.  : 6.51 (2001-03-28)

-- 

  Joel Franco
Debian Addicted
  Sanca - SP
 ICQ 19354050