hello,
I want to realize a samba-pdf-printer.
so far so good.have a script that calls ps2pdf to create a .pdf in PDF-Share named a few date+time parameters.
my goal is to append the username who makes the .pdf.
"logname" does not work via samba.
does anybody have any (other) ideas or corrections?
pdfscript:
Code:
..
USER=`logname`
ps2pdf $1 $OUTDIR/$USER-$DATE.temp
entries in smb.conf:
Code:
[PDFprinter]
path = /tmp
directory = /var/spool/pdf
printable = yes
writeable = no
create mask = 0700
# create mask = 0777
# guest ok = yes
printer name = lp
print command = /usr/bin/printpdf %s
lpq command =
lprm command =
use client driver = Yes
[PDF-Share]
path = /var/spool/pdf
browseable = yes
writeable = yes
# guest ok = yes
# force user = nobody