From owner-freebsd-questions@FreeBSD.ORG Sat Jun 21 10:49:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A57210657B6 for ; Sat, 21 Jun 2008 10:49:01 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.freebsd.org (Postfix) with ESMTP id 999BB8FC19 for ; Sat, 21 Jun 2008 10:49:00 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180009147.adsl.alicedsl.de [85.180.9.147]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1KA0SG3BGj-0000Nj; Sat, 21 Jun 2008 12:36:25 +0200 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1KA0SG-0000yX-7C for freebsd-questions@freebsd.org; Sat, 21 Jun 2008 12:36:24 +0200 Date: Sat, 21 Jun 2008 12:36:24 +0200 From: Bertram Scharpf To: freebsd-questions@freebsd.org Message-ID: <20080621103624.GA3467@marge.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX1+BxbFjZeyfbi0ElFmUq71TGlhWM9ZQJ/0juHo TZPuAVlVjkCzRbbv/lcMFScxUy9XQwAJhVfCz625hpT5Gtb3nb ARLI6m6ZJp90OLebeGfsHLADftuJqZ6ki8qDjaGLC8= Subject: Permissions and SANE/scanimage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2008 10:49:01 -0000 Hi, my scanner works perfectly when I log in in as root. As an unprivileged user, I just get this error message: $ scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). I ended up in a brute force attempt saying in /etc/devfs.conf: perm * 0666 Still, this didn't work. Starting "truss" and "diff" relvealed the following difference: root: open("/dev/ugen0.2",O_RDWR,00) ERR#6 'Device not configured' open("/dev/ugen0.2",O_WRONLY,00) = 6 (0x6) unprivileged user: open("/dev/ugen0.2",O_RDWR,00) ERR#13 'Permission denied' Even when saying something like chmod 0666 /dev/ugen0.2 the permissions will be 0644 after the run of "scanimage -L". Could somebody please enlighten me what's going on here? What did I miss when installing Sane? "pkg_info -Dx sane-backends" stays empty. Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de