[Samba] How do I stop the guest account printing?

Andras Kende andras at kende.com
Sat Dec 4 16:35:10 GMT 2004

-----Original Message-----
From: samba-bounces+andras=kende.com at lists.samba.org
[mailto:samba-bounces+andras=kende.com at lists.samba.org] On Behalf Of Tim
Sent: Saturday, December 04, 2004 6:43 AM
To: samba at lists.samba.org
Subject: [Samba] How do I stop the guest account printing?

Hi there.

I've had Samba running fo a while now on a machine that we use as a shared
file store. Not everyone who uses it has an account on the linux machine,
so it's setup with "security = share" to allow guest access to some of the
shares. But I've now attached a printer that I dont want guest access to.

This might be something really simple that I'm missing, but I can seem to
stop the guest account from using the printer! Is it something obvious? I
had thought that doing a "guest ok = no" in the printer share would stop
it, but I dont get asked for a password, and print jobs are logged (by
CUPS) as user nobody.

Anyone got any ideas? It's driving me MaAaAaD!


   Samba 2.2.12
   CUPS 1.1.22

Samba config:
   workgroup = FOO
   server string = File server
   security = share
   hosts allow =
   interfaces = eth0 lo
   bind interfaces only = yes
   log file = /var/log/samba/log.%m
   log level = 2
   syslog = 0
   invalid users = root bin daemon adm sync shutdown halt mail news \
                   uucp operator gopher
   veto files = /*.eml/*.nws/riched20.dll/*.{*}/
   directory mask = 0755
   create mask = 0644
   character set = ISO8859-15
   client code page = 437
   domain master = yes
   preferred master = yes
   wins support = yes
   dns proxy = no
   username map = /etc/samba/smbusers
   encrypt passwords = yes
   load printers = yes
   printing = cups
   printcap name = cups
   comment = Shared File Repository
   path = /srv/samba/store
   writeable = yes
   guest ok = yes
   guest only = yes
   force group = samba
   # Create files read-only and let samba delete them
   create mask = 444
   delete readonly = yes
   comment = Temporary Store
   path = /srv/samba/temp
   writable = yes
   guest ok = yes
   guest only = yes
   force group = samba
   comment = Printer Drivers
   path = /etc/samba/drivers
   browseable = yes
   guest ok = no
   read only = yes
   write list = root
   printer = LaserPrinter
   comment = Lexmark Optra Color 1200
   path = /var/spool/samba
   browseable = yes
   guest ok = no
   writable = no
   printable = yes

To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


You may create a [printers] section...

You could regard this section as a general convenience shortcut to share all
printers with minimal configuration. It is also a container for settings
which should apply as default to all printers.

Andras Kende

More information about the samba mailing list