LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 974|回复: 5

通过samba共享linux打印机

[复制链接]
发表于 2004-8-5 09:10:20 | 显示全部楼层 |阅读模式
(under redhat 9.0, kernel 2.6.7)
我有一台hp LaserJet 1000打印机, 在redhat下能正常使用(队列类型为本地连接). 我想把它共享给同WORKGROUP的几个windows用户. 我想用SAMBA提供共享, 应该怎样配置smb.conf?(使用cups打印协议)
谢谢各位大哥大姐!
发表于 2004-8-5 09:40:33 | 显示全部楼层
 楼主| 发表于 2004-8-5 12:27:23 | 显示全部楼层
workgroup = AGE
server string = semon
security = SHARE
encrypt passwords = Yes
load printers = Yes
printcap name = cups
printing = cups
......
guest ok = yes
hosts allow = 192.168.1. 127.
[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[zhhf]
        comment = share Docs under linux
        path = /home/zhhf
        read only = No

[hp]
        comment = HP LaserJet 1000 Printer
        path = /var/spool/samba
        read only = No
        printable = Yes
        printer name = hp

我的smb.conf如上,在windows上能看到, 但打印时总是说拒绝访问,无法联接(我没开防火墙).
发表于 2004-8-5 12:49:12 | 显示全部楼层
试试增加
guest ok = Yes
 楼主| 发表于 2004-8-6 08:31:56 | 显示全部楼层
我在Global里面加了guest ok = yes
printers 和 hp 里面也加了, 但全局里面有,他就没显示出来
发表于 2005-1-20 23:18:54 | 显示全部楼层
[200216]
comment = MIS's Printer
valid users = sp02001,sp02002
printer = hp1300
public = no
writeable = no
printable = yes
为什么被拒呢?可是我用linux下PDC的域用户sp02001登录的哦...valid users这句去掉就可以了,可是我也是valid user啊....


valid users = sp02001,sp02002
改为
write list = sp02001,sp02002
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表