You are not logged in.

#1 2023-09-01 12:15:41

Ayu2805
Member
Registered: 2023-07-23
Posts: 52

Cannot share a printer via samba

I had created a topic in past here similar to this  but this time its the other way around. I want to access printer which is connected to my arch system from windows, I have also shared a folder via samba and I can access it from windows, but I can't access printer though.

This is my smb.conf:

[global]
workgroup = WORKGROUP
server string = Samba Server %v
printcap name = CUPS
printing = CUPS
load printers = yes
log file = /var/log/samba/log.%m
max log size = 50

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
printable = yes
writable = no
guest ok = no
create mode = 0700
write list = root @sambauser

[print$]
comment = Printer Drivers
path = /etc/samba/printer
guest ok = yes
browseable = yes
read only = yes
write list = root @sambauser

[Share]
comment = Samba Share
path = /home/ap/Share
writable = yes
browsable = yes
create mask = 0700
directory mask = 0700
read only = no
guest ok = no

and this is the result of testparm

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
	log file = /var/log/samba/log.%m
	max log size = 50
	printcap name = CUPS
	server string = Samba Server %v
	idmap config * : backend = tdb


[printers]
	browseable = No
	comment = All Printers
	create mask = 0700
	path = /var/spool/samba
	printable = Yes
	write list = root @sambauser


[print$]
	comment = Printer Drivers
	guest ok = Yes
	path = /etc/samba/printer
	write list = root @sambauser


[Share]
	comment = Samba Share
	create mask = 0700
	directory mask = 0700
	path = /home/ap/Share
	read only = No

I dont know why it is showing browseable = No in the testparm result even though I have set it to Yes, I have also checked the "Share printers connected to this system" from the CUPS web interface and the printer is functional and shared but still the printer is not visible when I do "Add Device/Printer" in windows

Thank you in advance smile

Last edited by Ayu2805 (2023-09-02 04:58:31)

Offline

Board footer

Powered by FluxBB