From owner-freebsd-questions@freebsd.org Mon Aug 10 08:11:28 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 3A9AD998181 for ; Mon, 10 Aug 2015 08:11:28 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (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 02FD0B09 for ; Mon, 10 Aug 2015 08:11:28 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by ioeg141 with SMTP id g141so162158573ioe.3 for ; Mon, 10 Aug 2015 01:11:27 -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=7JrQrlR4KrYqig+rONKSZ4WFIEpU8FUGouVe3WwneDQ=; b=IfcuQilFpF11O7DqmpIJ7erE17FUmvzSQmnG1GxEPcrmWBKZNJDv75hEzcP6WHPlI7 ZIgcjCwzoyPCs9qQB2yiUSOVMhVbijlOjD8/EFUo+t/pA0ORSEV10tdUlrrYAMmKp5tN NwZCReUSHttt4uDs0O36ps4CPcg6csBlycNdfGyX4oD0HYxEkje2B+7TUNTQpdDDovmG xT4P4F785Yk2f4y8EzmYqK0QdJwJNxcfA9fX731ytyR5RTFFu96LMVLn+FHU6ztc3irM z/UsHw2cck09h3YHu/3mvkyv0+4r+4x59XcQ+6hNTJsuXpW/aWCmUJJ6K83gg7QRynC4 xaeA== MIME-Version: 1.0 X-Received: by 10.107.130.153 with SMTP id m25mr12983311ioi.192.1439194287332; Mon, 10 Aug 2015 01:11:27 -0700 (PDT) Received: by 10.65.15.33 with HTTP; Mon, 10 Aug 2015 01:11:27 -0700 (PDT) In-Reply-To: References: <20150806104335.GA27748@ithaca.acampbell.uk> <1876444.Yqz8SnZpVd@desk8.phess.net> Date: Mon, 10 Aug 2015 01:11:27 -0700 Message-ID: Subject: Re: Permissions problem for sane From: Mehmet Erol Sanliturk To: Adrian Chadd Cc: Warren Block , Anthony Campbell , Patrick Hess , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 08:11:28 -0000 On Sun, Aug 9, 2015 at 10:16 PM, Adrian Chadd wrote: > 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 > > > When KDE or Gnome is running , or whatever reason some of their facilities are running during a GUI set up , permissions defined in OS level are prevented for ordinary "user" level . When "user" needs to use some facilities , permitted for the "root" and "user" with respect to loader.conf , or rc.conf , or other *.conf files , also it is necessary to define them in PolicyKit or other *Kit configuration files . Mostly these files are implicitly "secret" because , there was a circular referencing for them : In Handbook , "see KDE/GNOME sites" , from KDE/GNOME sites "see your OS documentation" without any visible information about them . In Linux , OS and these parts are synchrony in distributions because *Kit part are completing missing parts of OS . In FreeBSD , these *Kit's are only preventing facilities alrady present in OS . This situation is making FreeBSD very hard to use . Mehmet Erol Sanliturk > 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" > _______________________________________________ > 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" >