You are not logged in.

#1 2013-11-23 09:54:18

volmok
Member
Registered: 2013-04-24
Posts: 6

SAMBA client printer cannot add to cups

Hi,

I have an issue with adding a SAMBA shared printer to CUPS. The server hosting SAMBA and the printer has version Samba 3.6.6 (Debian Wheezy) and shares printer Canon MP250 series.
In cups I added the printer using the connection: smb://<user>:<pasword>@WORKGROUP/192.168.10.3/Canon_MP250_series
When I try to print on my client machine I get this message (in CUPS web interface): Paused - "Can't load /etc/samba/smb.conf - run testparm to debug it"
This does not seem right since I should not need samba on my client machine and I do not have it installed so smb.conf file is now there.

On my client Arch I have installed only smbclient package as suggested on the wiki.

On the server (Debian) I have:

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[allusers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	server string = %h server
	map to guest = Bad User
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	idmap config * : backend = tdb

[homes]
	comment = Home Directories
	valid users = %S
	create mask = 0700
	directory mask = 0700
	browseable = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	printable = Yes
	print ok = Yes
	browseable = No

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers

[allusers]
	comment = All Users
	path = /mnt/media
	valid users = @users
	force group = users
	read only = No
	create mask = 0660
	directory mask = 0771

And the output of smbclient on Arch is:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

	Sharename       Type      Comment
	---------       ----      -------
	print$          Disk      Printer Drivers
	allusers        Disk      All Users
	IPC$            IPC       IPC Service (Cubian server)
	Canon_MP250_series Printer   Canon MP250 series
	cubie           Disk      Home Directories
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

	Server               Comment
	---------            -------
	CUBIAN               Cubian server

	Workgroup            Master
	---------            -------
	WORKGROUP            CUBIAN

Can anyone help me with this issue?

V.

P.S. I am forced to use samba approach with CUPS because cups client (1.7.0-2) does not work with the debian cups server (1.5.3).

Offline

#2 2013-12-03 21:09:38

ke7mbz
Member
Registered: 2013-09-27
Posts: 17

Re: SAMBA client printer cannot add to cups

Same problem problem trying to print to Windows shared printer at work from my laptop. It shouldn't be necessary to install samba server on the client. Just smbclient has worked for me on other distros. All I could find in the wiki is how to configure samba shares, not how to access them.

Offline

#3 2013-12-03 21:11:03

volmok
Member
Registered: 2013-04-24
Posts: 6

Re: SAMBA client printer cannot add to cups

Hi,

My final solution was to install CUPS on client and add the remote printer through IPP.

V.

Offline

#4 2013-12-03 21:23:55

ke7mbz
Member
Registered: 2013-09-27
Posts: 17

Re: SAMBA client printer cannot add to cups

I always seem to find the answer right after asking for help. I found this on the cups wiki. It worked, but it's kind of a weird solution. I wish it included an explanation of why it's needed.


Can't load /etc/samba/smb.conf

If you're printing to a remote printer over SMB and get this error message: "Can't load /etc/samba/smb.conf - run testparm to debug it", then create an empty smb.conf:

# mkdir /etc/samba
# touch /etc/samba/smb.conf

and restart cupsd.

Offline

Board footer

Powered by FluxBB