From owner-freebsd-questions@freebsd.org Mon Aug 10 05:17:00 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05DC899DA15 for ; Mon, 10 Aug 2015 05:17:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7C796EA for ; Mon, 10 Aug 2015 05:16:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbij6 with SMTP id ij6so62819052igb.1 for ; Sun, 09 Aug 2015 22:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MRSuLbdXupYRayEbo8aFQwk4Fn6aPH7FLM5qlpdOvBw=; b=HEvi1Bdb2r4XfieBoCw5AZQVuW8pCFl8tvnflGP+LWFnxHA75mMzmMYKv9yHKyzqNQ xuBe4Q+scJWP+qKJqjizP67EXf6sjpkPh/iGBlmNYRXUxhUUETdUomNSbOYnQmExFsVY OpyDxOQvnAbzNEg4ws+hMcrpdVopC89pVehv/+QquFly7Dgih4irSGAWQdcfcEkQS4FQ JBVkAfzV+nlbSk/PoVTEyf6HjbFzWmD2eVhpYV8a2rHGmX0zXmIXxLQ07QlLREd+rATC 37SMqmxp1uASZm7OqtvGrf3VxaW5J2UPmkAodlQyJ0pfnkfO4VPpDwKeIF3mQ/y4oJqy WLZg== MIME-Version: 1.0 X-Received: by 10.50.61.144 with SMTP id p16mr8728402igr.22.1439183819224; Sun, 09 Aug 2015 22:16:59 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Sun, 9 Aug 2015 22:16:59 -0700 (PDT) In-Reply-To: References: <20150806104335.GA27748@ithaca.acampbell.uk> <1876444.Yqz8SnZpVd@desk8.phess.net> Date: Sun, 9 Aug 2015 22:16:59 -0700 Message-ID: Subject: Re: Permissions problem for sane From: Adrian Chadd To: Warren Block Cc: Patrick Hess , Anthony Campbell , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2015 05:17:00 -0000 Hi! Why isn't this the default behaviour for the saned package? Would it be possible to make it just be said default behaviour? -a On 6 August 2015 at 14:15, Warren Block wrote: > On Thu, 6 Aug 2015, Patrick Hess wrote: > >> Anthony Campbell wrote: >>> >>> Should I modify the permissions on /dev/ugen0.2? >> >> >> In contrast to what many other people might suggest, I'm personally not >> a big fan of providing users broad access to all kinds of device nodes. >> So instead of messing around with permissions, I prefer to make use of >> the saned(8) network daemon. >> >> This is actually pretty straightforward to set up. You'll need to add >> these two lines to your /etc/rc.conf: >> >> saned_enable="YES" >> saned_uid="root" >> >> Now either reboot the machine or run the following command to start >> the network daemon right away: >> >> # service saned start >> >> Then add the following line to /usr/local/etc/sane.d/net.conf: >> >> localhost >> >> Any non-privileged user should now be able to access the scanner. >> For starters, try to get a list of scanners available on the server: >> >> > scanimage -L >> device `net:localhost:plustek:libusb:/dev/usb:/dev/ugen1.2' >> is a Canon CanoScan N1240U/LiDE30 flatbed scanner >> >> The nice part about using saned(8) is that you can easily make the >> scanner available to other machines on the network. Just add your >> network to the server's /usr/local/etc/sane.d/saned.conf and then >> add an entry for the server to the /usr/local/etc/sane.d/net.conf >> on each of the clients. > > > This is the kind of stuff we should be adding to the Handbook section on > scanners. Thank you for posting it! > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"