samba已设置好如何设置打印共享

由 bjc 在 08-28-2003 15:39 发表:

samba已设置好如何设置打印共享

我的配置是redhatlinux7.3,共享级别为user方式,可以互相访问。win2000机器安装打印机,我用printer configurator配置不好用。哪位兄弟有配置成功的指点一下!!谢谢!我的smb.conf文件如下:

[global]

workgroup = MYGROUP

server string = Samba Server

client code page =936

; hosts allow = 192.168.1. 192.168.2. 127.

printcap name = /etc/printcap

load printers = yes

printing = lprng

guest account =nobody

guest ok = yes

log file = /var/log/samba/%m.log

max log size = 0

security = user

encrypt passwords = yes

smb passwd file = /etc/samba/smbpasswd

unix password sync = Yes

passwd program = /usr/bin/passwd %u

passwd chat = Newpassword* %n\n Retypenewpassword %n\n passwd:allauthenticationtokensupdatedsuccessfully*

pam password change = yes

Unix users can map to different SMB User names

; username map = /etc/samba/smbusers

obey pam restrictions = yes

[homes]

comment = Home Directories

browseable = no

writable = yes

valid users = %S

create mode = 0664

directory mode = 0775

[printers]

comment = All Printers

path = /var/spool/samba

browseable = yes

Set public = yes to allow user 'guest account' to print

guest ok = yes

writable = no

printable = yes

This one is useful for people to share files

[tmp]

comment = Temporary file space

path = /tmp

read only = no

public = yes

A publicly accessible directory, but read only, except for people in

the "staff" group

[public]

comment = Public Stuff

path = /home/samba

public = yes

writable = yes

printable = no

write list = @staff

<font

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus