|I’ve set up CUPS on my Debian system at home. I’ve installed the cupsys, cupsys-client, cupsys-bsd, cupsys-pstoraster, and cupsys-driver-gimpprint packages. I’ve got an Epson Stylus Color 600 connected to my machine’s /dev/lp0 port. Printing works great from here. But I’m having trouble printing from my wife’s Windows 2000 machine. I’ve configured Samba to make the printer available with the following lines:
printing = cups
printcap name = lpstat
browseable = yes
path = /var/spool/cups
printer name = epson600
writable = yes
public = yes
create mode = 0777
printable = yes
print command = lp -P %p -o raw %s
lpq command = lpstat -o %p
lprm command = cancel %p-%j
I noticed when cups is installed that the cups spooling directory has the following permissions:
drwx—— 3 lp sys
I saw from the cups website that it normally installs as root owner and lp group with 777 rights.
This causes a problem when I try to install the printer on my wife’s Windows 2000 machine. It says Access Denied. So I change the permissions on the /var/spool/cups to be 777 with owner root and group lp. Then I add my wife to the lp group. This seems to work somewhat. She can now print, even though it still says access denied to the printer. But she can’t delete print jobs. Plus, whenever I restart cups it reverts back to the old permission settings.
Has anyone else setup Cups to work with Samba printing? What’s the secret? DanielS: I was never able to convince CUPS to work with my remote (hosted on WinNT) printer, because it had both a space and amphersand in the name; I just use lprng and a modified version of smbprint.