[Samba] disable guest print account

Ronald Sipkema r.c.j.sipkema at student.utwente.nl
Wed May 15 07:31:02 GMT 2002


hi,

I have a pretty basic samba server installed on my Debian system. I use
samba 2.2.3a-7 for Debian. Everything seems to work just fine except
printing; Everyone is able to print (w2k clients) even though "guest ok =
no" is set. The print job is done by the guest user (nobody). How is this
possible when guest ok is set to no?
TIA

Ronald

smb.conf:

[global]
 netbios name = DARKCLOUD
 workgroup = WATERHUIS
 server string = %h (%v)
 name resolve order = lmhosts bcast

 hosts allow = 130.89.
 security = share
 guest account = nobody
 encrypt passwords = yes
# username map = /etc/samba/users.map

 log level = 2
 log file = /var/log/samba/samba.log
 max log size = 50

 printcap name = /etc/printcap.cups
 printing = cups
 load printers = no

 lm announce = no
 lm interval = 0
 local master = yes
 os level = 75
 preferred master = yes
 domain master = no
 wins support = no
 dns proxy = no

# use client driver = yes
# disable spoolss = no

[laserjet]
 available = yes
 writable = no
 browsable = yes
 public  = no
 printable = yes
 path = /tmp
 create mask = 0700
 print command = lpr -P %p -o raw %s -r
 lpq command = lpstat -o %p
 lprm command = cancel %p-%j
 printer name = hpljet4

[share]
 writable = no
 browsable = yes
 public = no
 path = /usr/local/samba/share
 comment = U: %U, u: %u





More information about the samba mailing list