debtron@cme.nist.gov (Debbie Nickerson) (11/10/90)
I have just recently started reading this newsgroup, so, if this has already been discussed, please direct me to the archive. The problem is this... How do you remove a print job that has been initiated by the "net print" Sun PC-NFS command? I know that the spool directory linked to the pcnfsd command on the pcnfsd server is the t: drive on the pc, but the print job is only there for a matter of seconds. It then gets shipped off to the printers print server spool directory. (In our setup, the pcnfsd server is not a print server.) Therefore, you cannot simply remove the print job from the t: drive. Another alternative would be to use "rsh" and remove the print job by using "lprm"; but, the Sun OS 4.1 man page for lprm states: "(Job ownership is determined by the user's login name and host name on the machine where the "lpr" command was invoked)." Which means that only the user on the machine that initiated the job can remove it; thus, doing an "rsh host lprm job#" will not work since your did not initiate the job on the host you are "rsh"ing into. A couple of weeks ago I called Sun Support about this problem. Peter Pack (spelling?) in the PC-NFS support group called me yesterday informing me of the following patch for rpc.pcnfsd.c: (The close statements are the patch.) **** more stuff **** close(0); close(1); close(2); execlp("/usr/ucb/lpr", **** more stuff **** Before the patch, the ownership of the spool files initiated by the pc thru pcnfs are owned by whoever is logged onto the console of the pcnfsd server, usually root. This is supposed to force the ownership of the spool files to be the owner sending the print job. I tested the patch, and it did not solve the problem. The problem is I believe, and I have told this to Peter Pack, is with "lprm". Why does "lprm" need job ownership to be determined by BOTH user and host? Any help to solving this problem would be greatly appreciated. We have users which tend to print large files and then want to remove them from the print queue (paper conservation); the only way they can do this is by getting in one of the system administrators to cancel the print job. Debbie Nickerson (301) 975-3552 National Institute of Standards and Technology debtron@cme.nist.gov
debtron@cme.nist.gov (Debbie Nickerson) (11/15/90)
Ok, here's the scoop.... In addition to the patch I mentioned before, an entry must be made in the individual's SUN home account .rhosts to include the pc host name followed by the SUN username (i.e. zorf john). Also, the rsh host must be the pcnfsd server. Thanks to Peter Pack at SUN for the patch and the rsh host note. -Deborah A. Nickerson debtron@cme.nist.gov