# Samba config file created using SWAT
# from linux_server (127.0.0.1)
# Date:2001/11/22 16:04:12
# Global parameters
[global]
client code page = 949
workgroup = xxx
security = SHARE
encrypt passwords = Yes
passwd program = changepass %u
unix password sync = Yes
log level = 1
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY IPTOS_LOWDELAY
hosts allow = xxx.xxx.xxx. xxx.xxx.xxx. localhost
printcap name = /etc/printcap
load printers = yes
printing = lprng
[share]
comment = linux_server Share
path = /tmp/samba
read only = No
guest ok = Yes
[home]
comment = home directory
path = /home/%u
read only = No
hide files = /.*/
create mask = 644
directory mask = 755
[printers]
comment = Linux Server Print [HP2100]
path = /var/spool/samba
browseable = no
guest ok = yes
printable = yes
printer name = HP2100
전 위에 처럼 했거든요..
그리고 /var/spool/samba 는 권한은 귀찮아서 777로 했구요..
그렇게 하니깐 잘되던데.......
그냥 /etc/printcap을 로드해서 거기에 있는(하나뿐이지만)
프린터를 알아서 설정을 해주니깐요..
:
: # Samba config file created using SWAT
: # from localhost.localdomain (127.0.0.1)
: # Date:2001/11/23 22:36:58
:
: # Global parameters
: [global]
: workgroup = MYGROUP
: server string = mycom
: encrypt passwords = Yes
: log file = /var/log/samba/%m.log
: max log size = 0
: socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
: dns proxy = No
: hosts allow = 192.168.0.2
: printing = lprng
:
: [tmp]
: path = /tmp
: writeable = Yes
: guest ok = Yes
:
: [lp]
: path = /var/spool/samba
: writeable = Yes
: guest ok = Yes
: printable = Yes
: printer = lp
: oplocks = No
: share modes = No