Cups, my love...

Come here to share your tips and tricks for using Samba4
Locked
Eric44
Messages: 1
Registered: December 22, 2016 - 2:29 PM

December 22, 2016 - 3:03 PM

Hello!

Thank you for your Samba documentation!
I've been dreaming of having a Linux print server on my AD2008R2, and thanks to you, it's almost a reality!

I installed Samba4 from a fresh Debian 8 installation, following your tutorial.

Everything went perfectly; my server is correctly registered as a member server, and my users and groups are showing up correctly.
I followed the tutorial to the end, including file sharing, even though that part won't be used.

I then switched to the CUPS tutorial,

but I'm a little stuck :-)

. 1. Why is it necessary to remove Samba at the beginning of the tutorial when the procedure requires having Samba installed beforehand? :shock: And at the end of the tutorial, it says to modify the samba.conf file (and therefore Samba must be installed, right?).

A little clarification would be welcome. :-)

2. I can add printers under CUPS and print test pages (I have Kyocera, Ricoh, and Lexmark printers),
but I can't install the drivers for my different clients on the server... Do you have any ideas on this?


Finally, I can't administer the CUPS server via the MMC "Print Management" because of permissions problems, even though I thought the domain admins group had all the rights on the server (because of the first tutorial...).

Thank you for any replies. :-)

Eric
User avatar
Yvan Karmouta
Messages: 34
Registration: June 18, 2014 - 10:09
Contact :

December 28, 2016 - 4:48 PM

Good morning,

Our samba/cups documentation dates back to 2014... I'll update it quickly :)

In the meantime, I advise you to check the directory:

Code: Select all

/var/lib/samba/usershares/imprimantes
does exist on the cups server
and set the rights:

Code: Select all

chgrp -R "domain admins"  /var/lib/samba/usershares/imprimantes/
chmod -R 2755  /var/lib/samba/usershares/imprimantes/
setfacl -R -m g:"domain admins":rwx /var/lib/samba/printers
setfacl -R -d -m g:"domain admins":rwx /var/lib/samba/printers
chmod -R g+rwx /var/lib/samba/printers
chown -R administrator:"domain admins" /var/lib/samba/printers
Do you have any interesting information in the file?

Code: Select all

/var/log/samba/log.smbd
Good day
Yvan
Yvan Karmouta - Tranquil IT Systems
Feel free to leave us your opinion on Wapt in the forum, or to answer our questionnaires :).
Maelvon
Messages: 15
Registration: February 7, 2018 - 10:14

November 28, 2018 - 10:20 PM

By following the https://dev.tranquil.it/wiki/SAMBA_-_Samba4_et_CUPS

I don't see any sharing options for this folder:
/var/lib/samba/usershares/printers
in "smb.conf". There's something I don't understand. What's the point of creating this directory?
Locked