From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AATzCF+1o2PIdwEAbAwnHQ (envelope-from ) for ; Thu, 22 Dec 2022 02:39:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6KsxCF+1o2PPIAEAG6o9tA (envelope-from ) for ; Thu, 22 Dec 2022 02:39:43 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BE5D63CF73 for ; Thu, 22 Dec 2022 02:39:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8AA9-0002pu-OI; Wed, 21 Dec 2022 20:14:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p834V-0005BY-VN for bug-guix@gnu.org; Wed, 21 Dec 2022 12:40:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p834V-00081S-EF for bug-guix@gnu.org; Wed, 21 Dec 2022 12:40:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p834U-0000O4-PW for bug-guix@gnu.org; Wed, 21 Dec 2022 12:40:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#60242: Cannot install a Samba printer Resent-From: Richard Lawrence Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 21 Dec 2022 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60242 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 60242@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16716443661458 (code B ref -1); Wed, 21 Dec 2022 17:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 17:39:26 +0000 Received: from localhost ([127.0.0.1]:53066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p833t-0000NS-DE for submit@debbugs.gnu.org; Wed, 21 Dec 2022 12:39:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:34838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p81mM-0007s7-By for submit@debbugs.gnu.org; Wed, 21 Dec 2022 11:17:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p81mM-00086w-12 for bug-guix@gnu.org; Wed, 21 Dec 2022 11:17:14 -0500 Received: from grace.univie.ac.at ([2001:62a:4:25::25:115]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p81mJ-0000Ub-M6 for bug-guix@gnu.org; Wed, 21 Dec 2022 11:17:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev3; h=Content-Type:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=GBaiFx/N2PA5W2kCDRJm+D+ZDmDPLoMqLgXMgozEbx0=; b=dBpH0PI2wuu/FXLw0SJx5O63Xo ChjSgg8vZHyaa54TJDxwD8/sAf9my1mSSyjlD6bEbX0eTLju0zIxIEHjRYGMoRBS2CXz8jWeZJ/P6 74YAeMCIQk+JkIRmv/X4CV/zB90Cgl1AYseJhhbOV6yrTrJkIOy7tmBh1OCb5KlD9UvNfhc4U02rl XliZm1lcMksaRfarnXOSPvrhWnQaz5olR48lrB8/8iJ8fjPZ829D50LFSNDK8XPBIdOqNqffpETOm GZi0kE8bZypLp0LlxhS1+HCmR8guuuthjwCRwYDpkXI7uMAmVPYtWnDS2Czj7h3qkXs6CVfUIxcuQ O2ROwjsw==; Received: from jarvis.univie.ac.at ([131.130.3.112] helo=jarvis.univie.ac.at) by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1p81mB-006vrP-0c for bug-guix@gnu.org; Wed, 21 Dec 2022 17:17:03 +0100 Received: from [2001:62a:4:2701:3d6f:2c11:ff09:2391] (helo=gottlob) by jarvis.univie.ac.at with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1p81mA-00Grrt-2Z for bug-guix@gnu.org; Wed, 21 Dec 2022 17:17:03 +0100 From: Richard Lawrence Date: Wed, 21 Dec 2022 17:17:02 +0100 Message-ID: <87y1r0ag01.fsf@gottlob.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-Univie-Virus-Scan: scanned by ClamAV on jarvis.univie.ac.at Received-SPF: none client-ip=2001:62a:4:25::25:115; envelope-from=richard.lawrence@univie.ac.at; helo=grace.univie.ac.at X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 21 Dec 2022 12:39:19 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 21 Dec 2022 20:14:19 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671673183; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=GBaiFx/N2PA5W2kCDRJm+D+ZDmDPLoMqLgXMgozEbx0=; b=u4qhItgESoybuAoKDURm7G3YhK/m8UF0XBIFpQHV6QxLX+Rm88DglfF3Vhs4JY+zjIKkQz zEFSTprf7J62PvnJaWcVWpUUdDTPK4Op8ix5gshlfwDDxdDi4Az6NAEDmWrUA3apvJidcB HaDgXNQcsMHCN0scx6p5OHQuiLiqMiVYpXMtiquilQZgxh7Tbjp/cjBpbq9sTW/YU4DRQw LPAK0XWUtI5PmhSakiV4pAPBsbIciJaBV3AYnRdrJTVP7FbIoZsgTydArs3KuFuE66Mt7m x1yt0Hg+9Zlfhm9AAw7Tr27FNQJsjEeQOetjRTy9/u2irVRxpTAMAnRFvMT/LQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=univie.ac.at header.s=rev3 header.b=dBpH0PI2; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=univie.ac.at (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671673183; a=rsa-sha256; cv=none; b=Ys5r/xnmvqyTukMeEbX0hhUNdT7rLLW7wZhdOPmpylL027sWMLjpjGu/IDKGYQWq5Rm8VJ 35eTtw+gk0CG+ngAb1bU/ZHr4gDPsqz+7935SvgkTn7waXY9elUyBU9fGZWdwVX8UirLHw t1Le29hgOx7++5qymbO0fCHPFjN3TUtNniNKh5tSiVhWgHNSAMAprYSIVDJbwPCCl8Alcx rC6Z05dVhWNOFjkD0RAFjBT7D3rl/x5LnNPxNmKbTxPYQJxN4s3DKPdZrFjv7XQIX+uhCE 32lUToQLQlF1SxFyZXqRr20lDy/h2UuNZUfZRAX3HQ86uPZD9zBXc5Qz96jcTQ== X-Spam-Score: 5.90 X-Migadu-Queue-Id: BE5D63CF73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=univie.ac.at header.s=rev3 header.b=dBpH0PI2; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=univie.ac.at (policy=none) X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 5.90 X-TUID: slmjxNG1SRl3 Dear Guix maintainers, I have been trying to set up a Guix system install at work and have hit a wall related to installing a Samba printer. I believe this is a bug in the way that either CUPS or Samba are packaged in Guix (but I'm very new to Guix, so please bear with me). Specifically, installing Samba needs to provide a link somewhere to the smbspool program in order to make CUPS aware of it as a backend. Here are the steps that led me to this issue: 0) I setup CUPS to run in my OS config like: (service cups-service-type (cups-configuration (default-paper-size "A4") (web-interface? #t))) (I have also added my user to the groups "lp" and "lpadmin", though I'm not sure if that's important.) 1) I tried to add a Samba printer using the system-config-printer program, following the instructions from my employer (https://zid.univie.ac.at/uprint/anleitungen/unter-linux-installieren/). This goes smoothly until the last step; after entering the printer name, description, and location, and clicking "Apply", a dialog appears asking me to authenticate. No matter what credentials I enter here (my own user account, root's, or my samba domain credentials), this step fails with a "client-error-not-possible" CUPS server error. No other information is provided. Adding the printer through the CUPS web interface doesn't work either; there is no option there to install a Samba printer. Here is what I've been able to learn through my own troubleshooting: Elsewhere on the web, people who have the same issue generally report that it's fixed by installing the "smbclient" package. Guix has no such package; so I installed the "samba" package (although I do not want to run a samba server) to get access to the client utilities. I made some progress by directly copying a working config for this printer from another machine into /etc/cups/printers.conf and restarting CUPS. This at least added the printer to CUPS, so that I can see it in the system-config-printer GUI and in the CUPS web interface. In the latter, I now see a more informative error in the printer's status field: "Backend /gnu/store/xl7mglavpkc4gjh7m53d0wf55mifnqy3-cups-server-bin/lib/cups/backend/smb does not exist!" The other machine where I have this printer configured is running Debian. On Debian, installing the smbclient package creates a symlink at /usr/lib/cups/backend/smb to /usr/bin/smbspool. This is what appears to be missing in Guix. The smbspool program is installed in Guix via the samba package at /gnu/store/4fpyn089b3873ci591935nqd8d5g8zdw-samba-4.16.4/bin/smbspool. (I can send jobs to the Samba printer on Guix if I manually call smbspool.) But no corresponding symlink to this program is created in the lib/cups/backend directory when the samba package is installed, which appears to the source of the error above. (It *could* be that the absence of this symlink is also the source of the client-error-not-possible in the system-configure-printer GUI; I'm not sure.) I'm not sure what the right way to create such a symlink on Guix would be, but it seems like its absence makes it impossible to install and use a Samba printer. As I said, I *believe* this is a bug in how Samba and/or CUPS is packaged; but if there's some additional configuration I could do to get this working, please let me know! Many thanks for your help, Richard