Subject: | |
From: | |
Reply To: | |
Date: | Thu, 20 Nov 1997 16:48:04 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I'll join the list of people 'playing' with Samba printing. I have made
the mods to smb.conf, have downloaded the rawlp program off the net and it
appears to work when I issue the commands from within POSIX but Samba
doesn't appear to want to work. Here is my abbreviated smb.conf file:
# see docs and examples directories for more info
# also try http://lake.canberra.edu.au/pub/samba
[global]
comment = enter YOUR server's IP and subnet mask below
interfaces = xxx.xxx.xxx.xxx./255.255.255.0 # snipped for security!!
printing = hp-ux
printcap name = /usr/local/samba/lib/printcap
load printers = yes
print command = /usr/local/samba/bin/rawlp %s %p ; rm %s
preexec = callci 'TELL SAMBA,MANAGER.SYS SMB connect to %S from %m at %I'
postexec = callci 'TELL SAMBA,MANAGER.SYS from %S from %m at %I
guest account = mgr.samba
debug level = 5
default case = upper
workgroup = ccanet
server string = "HP3000 Running Samba!!"
[printers]
comment = All printers
print command = /usr/local/samba/bin/rawlp %s %p ; rm %s
browseable = no
printable = yes
writeable = no
create mode = 0700
path=/tmp
guest ok = yes
guest only = yes
[mark]
comment = Hocraffer Share /TEST/HSOURCE
guest ok = no
write ok = yes
path = /TEST/HSOURCE
user = mark.test
revalidate = true
[mark2]
comment = Hocraffer Share /TEST/ONETIME
guest ok = no
write ok = yes
path = /TEST/ONETIME
user = mark.test
revalidate = true
This is what I see in the log.smb file:
switch message SMBclose (pid 41222365)
Skipping become_user - already user
Running the command `/usr/local/samba/bin/rawlp /tmp/mahocr.a22365 JOBLOG ;
rm /tmp/mahocr.a22365' gave 81
11/20/97 17:33:18 MGR.SAMBA closed file mahocr.a22365 (numopen=0)
11/20/97 17:33:18 close fd=15 fnum=1 cnum=53 (numopen=0)
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=128
smb_flg2=1
smb_tid=53
smb_pid=2326
smb_uid=224
smb_mid=5639
smt_wct=0
smb_bcc=0
chdir to /SYS/PUB
unbecome_user now uid=(1,1) gid=(1,1)
If I cut and paste the 'running the command' from above, it works!! The
file will print to JOBLOG and is
removed from the system.
Permissions are set to 777 on the /tmp directory and on rawlp.
Any ideas from those of you that have it running??
mark hocraffer
[log in to unmask]
|
|
|