LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2003-8-28 15:39:10 | 显示全部楼层 |阅读模式
我的配置是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 = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

   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
 楼主| 发表于 2003-8-29 11:58:50 | 显示全部楼层
我在图形界配置不好用,能否在字符下配置呢
帮帮忙呀!
 楼主| 发表于 2003-9-5 10:12:16 | 显示全部楼层
哪位兄弟有这方面的设置是成功的可以共享出来吗?如果这个功能我用不了还是离不开windows
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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