LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-22-2005, 03:44 AM   #1
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
smb-pdf-printer / write username


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
 
Old 07-22-2005, 08:26 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Original Poster
Rep: Reputation: 30
....the samba-account seems to be ´nobody´. well, how can I grep the username who connects actually to smb-share/smb-printer??

ps: samba is a ADS-member!
 
Old 07-25-2005, 08:32 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Original Poster
Rep: Reputation: 30
pushing on top :-)

no ideas? :-(

another solution could be, to give the user a "where-to-save-messagebox" and not to save the .pdfs automatically.

but how to realize????

how do you guys implement a sharing pdf-printer?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Write access to FAT32 over SMB lozzo81 Linux - Networking 1 11-07-2005 10:43 PM
How do I remount a network SMB share (on reboot) requiring a username & password BuckRogers01 Linux - Networking 1 07-09-2005 12:53 PM
"Unable to create printer" from KDE Wizard when setting up SMB printer Happy2Bme SUSE / openSUSE 1 01-18-2005 08:30 AM
CUPS and SMB printed PDF files Wells Debian 0 12-07-2004 10:20 AM
SMB Read/Write Problem dhammika Linux - Networking 3 05-12-2004 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration