[sane-devel] hosts.resolv ???

Olaf Meeuwissen paddy-hack at member.fsf.org
Sun Jan 28 00:50:25 UTC 2018


Hi,

ToddAndMargo writes:

> Hi All,
>
> Fedora 27
>
> $ rpm -qa sane\*
> sane-backends-1.0.27-9.fc27.x86_64
> sane-backends-drivers-scanners-1.0.27-9.fc27.x86_64
> sane-backends-drivers-cameras-1.0.27-9.fc27.i686
> sane-backends-libs-1.0.27-9.fc27.i686
> sane-backends-daemon-1.0.27-9.fc27.x86_64
> sane-backends-drivers-scanners-1.0.27-9.fc27.i686
> sane-backends-libs-1.0.27-9.fc27.x86_64
> sane-backends-drivers-cameras-1.0.27-9.fc27.x86_64
>
> What I am trying to do is to allow everyone of
>     192.168.255.0/24   and
>     127.0.0.1
>
> to access saned
>
> as such I have /etc/sane.d/saned.conf (comments removed):
>
> 192.168.255.0/24
> 127.0.0.1
>
> Have I done things correct so far?
>
> Confusion:  in the saned man page, it states:
>
>      FILES
>         /etc/hosts.equiv
>             The  hosts listed in this file are permitted to
>             access all local SANE devices.  Caveat: this
>             file imposes serious security risks and its
>             use is not recommended.
>
> No fooling not recommended!
>
> Why do I need hosts.equiv to allow access to all SANE
> devices?  I though I just did that in saned.conf?

You don't need one.  Just use /etc/sane.d/saned.conf.  The manual page
is just saying saned will use /etc/hosts.equiv if present.  You are
safer of without a hosts.equiv file.  For details see

  http://man7.org/linux/man-pages/man5/hosts.equiv.5.html

Hope this helps,
--
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join



More information about the sane-devel mailing list