[Samba] Cannot Access Windows Shared Printer as Guest

gw1500 i_was_yah00ed at yahoo.com
Wed Oct 16 19:23:13 UTC 2019


Since my printer problem has changed, I'm starting this new thread as it
is somewhat different than the original problem. I have a Windows shared
printer that shows up with 'smbclient' if I use the -U option. However,
it does not show up if I use the -N option. Instead I get the error:

Error returning browse list: NT_STATUS_REVISION_MISMATCH

Thus I am unable to set up the printer on my CentOS 7 system. I guess
there are 2 possible solutions. The first is to get 'guest' working and
the second is to configure the printer with a username/password. I
cannot figure out how to do the second although I would prefer to use
the first. Here is my smb.conf:

[global]
?????????????? workgroup = DAPWG1
?????????????? security = user

?????????????? passdb backend = ********
?????????????? map to guest = bad user

?????????????? printing = cups
?????????????? printcap name = cups
?????????????? load printers = yes
?????????????? cups options = raw

[homes]
?????????????? comment = Home Directories
?????????????? valid users = %S, %D%w%S
?????????????? browseable = No
?????????????? read only = No
?????????????? inherit acls = Yes

[printers]
?????????????? comment = All Printers
?????????????? path = /var/spool/samba
?????????????? printable = Yes
?????????????? create mask = 0600
?????????????? browseable = No
?????????????? guest ok = Yes
?? ?? ?? ?? writable = No

[print$]
?????????????? comment = Printer Drivers
?????????????? path = /var/lib/samba/drivers
?????????????? write list = root
?????????????? create mask = 0664
?????????????? directory mask = 0775

# Web directory access
[webdir]
?????????????? valid users = dap, at apache
?????????????? writeable = yes
?????????????? browsable = yes
?????????????? path = /var/www
?????????????? hosts allow = 192.168.0.0/255.255.255.0

# ftp directory access
[ftp]
?????????????? valid users = dap, at apache
?????????????? writeable = yes
?????????????? browsable = yes
?????????????? path = /var/ftp
?????????????? hosts allow = 192.168.0.0/255.255.255.0

Can someone tell me what is wrong with the config file that causes that
error. Failing that, how do I set up that printer for username/password?
TIA.

-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the samba mailing list