I am trying to set up some mechanism for novice users to print to a
printer hanging of an NT server. The NT share requires a password from
the user before allowing them to print.
I have been working on an smbprint like script, written in tcl/tk which,
rather than reading a password from a .config file, pops up a window and
asks the user to enter their password. I plan to install this script as
the input filter in the printcap entry.
The script works like a charm when invoked directly, i.e.
$ cat somefile.ps | /var/spool/lpd/hp4/smbprint.tk
smbprint.tk pops up a window, I enter a password and it then calls
smbclient to place the file (somefile.ps) in the NT print queue.
The problem is getting smbprint.tk to pop up the window when invoked by
lpd as the input filter. smbprint.tk seems to be called with the UID of
the user trying to print, yet it seems to break when it tries to access
the display to open the window.
Can anyone shed any light on what is going on? Do I need to dance with
xauth? Does something like this already exist?
Any suggestions appreciated
Shaun
--
Shaun Cloherty
Graduate School of Biomedical Engineering
University of New South Wales
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug