My samba can shares the directory when getting rid
of the comment symbols before [public] item.

And my linux box can print normally.

But I can't print in my win95. I do can see the printer
named 'epson' I set. And when I su to nobody, it can
print normally too.

What can I do the next setp?

Here are my config files:

[printcap]

lp|epson:\
:lp=/dev/lp1:\
:sd=/var/spool/lpd/lp
:lo=/var/spool/lpd/lock
:sh

[smb.conf]

; /etc/smb.conf
;
; Make sure and restart the server after making changes to this file, ex:
; /etc/rc.d/init.d/smb stop
; /etc/rc.d/init.d/smb start
[global]
    guest account = nobody
    guest ok = yes
    workgroup = 3lab
    comment = linux host at room 507
    printing = bsd
    printcap name = /etc/printcap
    load printers = yes
    share modes = yes
    log file = /var/log/samba/log.%m
    lock directory = /var/lock/samba

[homes]
    comment = home on linux host at 507
    browseable = no
    read only = no
    create mode = 0750
[public]
    comment = public on linux host at 507
    path = /home/ftp/pub
    public = yes
    writable = no
    printable = no
;[printers]
    ;comment = printers on linux hos at 507
    ;security = server
    ;path = /var/spool/lpd/lp
    ;browseable = no
    ;public = no
    ;printable = yes
    ;writable = no
    ;create mode = 0700
[epson]
    comment = epson 1600k on linux host at 507
    path = /var/spool/lpd/lp
    browseable = yes
    printer name = lp
    writable = no
    public = yes
    printable = yes

Yours,
Chen Yaoming
 

I found it was very simple.

I changed the access right of /var/spool/lpd/lp
to 777, then the remote printing is all right.

Additional question is why I could still print
on local host when I sued to nobody before I
changed the access right.

Chen Yaoming
 
 

本文转自中文Linux论坛