Can only scan as root

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Franz_Hose
Level 1
Level 1
Posts: 11
Joined: Sun Oct 31, 2021 12:48 pm

Can only scan as root

Post by Franz_Hose »

Hi everyone,

I have a printer/scanner DCP-7055 from Brother. Since I have been using Linux Mint on this computer, it is the first time I attempted to scan a document.

simple-scan searches for devices on opening and indeed finds my scanner. However, when pressing "scan", I receive an error message "Failed to scan - unable to connect to scaner".

Running simple-scan as root solves the problem. How can I allow any user to use the scanner?

PS:
Brother provides a package on its website for using the scanner connected via USB without administrator privileges, but apparently it is already installed on my machine.

My system:

Code: Select all

System:    Kernel: 5.13.0-25-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.7 wm: muffin 5.0.2 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: ASUS product: All Series v: N/A serial: <filter> 
           Mobo: ASUSTeK model: H81M-PLUS v: Rev X.0x serial: <filter> BIOS: American Megatrends v: 2205 
           date: 05/26/2015 
CPU:       Topology: Quad Core model: Intel Core i5-4590 bits: 64 type: MCP arch: Haswell rev: 3 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 26386 
           Speed: 1413 MHz min/max: 800/3700 MHz Core speeds (MHz): 1: 2267 2: 1623 3: 2163 4: 2280 
Graphics:  Device-1: NVIDIA GM204 [GeForce GTX 980] vendor: CardExpert driver: nvidia v: 495.46 bus ID: 01:00.0 
           chip ID: 10de:13c0 
           Display: x11 server: X.Org 1.20.13 driver: nvidia resolution: 1920x1080~60Hz, 1280x1024~60Hz 
           OpenGL: renderer: NVIDIA GeForce GTX 980/PCIe/SSE2 v: 4.6.0 NVIDIA 495.46 direct render: Yes 
Audio:     Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus ID: 00:1b.0 chip ID: 8086:8c20 
           Device-2: NVIDIA GM204 High Definition Audio vendor: CardExpert driver: snd_hda_intel v: kernel 
           bus ID: 01:00.1 chip ID: 10de:0fbb 
           Sound Server: ALSA v: k5.13.0-25-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel 
           port: d000 bus ID: 03:00.0 chip ID: 10ec:8168 
           IF: enp3s0 state: down mac: <filter> 
           Device-2: AVM FRITZ!WLAN AC 860 type: USB driver: mt76x2u bus ID: 3-3:2 chip ID: 057c:8503 
           serial: <filter> 
           IF: wlxdc15c88ab717 state: up mac: <filter> 
Drives:    Local Storage: total: 1.82 TiB used: 466.54 GiB (25.0%) 
           ID-1: /dev/sda vendor: Toshiba model: DT01ACA100 size: 931.51 GiB speed: 3.0 Gb/s rotation: 7200 rpm 
           serial: <filter> rev: A750 scheme: MBR 
           ID-2: /dev/sdb type: USB vendor: Seagate model: Expansion size: 931.51 GiB serial: <filter> rev: 9300 
           scheme: MBR 
Partition: ID-1: / size: 182.34 GiB used: 43.45 GiB (23.8%) fs: ext4 dev: /dev/sda3 
           ID-2: /boot size: 472.7 MiB used: 223.4 MiB (47.3%) fs: ext2 dev: /dev/sda2 
           ID-3: /home size: 721.08 GiB used: 94.12 GiB (13.1%) fs: ext4 dev: /dev/sda4 
           ID-4: swap-1 size: 11.17 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 34 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 30% 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/official-dbgsym-repositories.list 
           1: deb http://ddebs.ubuntu.com focal main restricted universe multiverse
           2: deb http://ddebs.ubuntu.com focal-updates main restricted universe multiverse
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://mirrors.dotsrc.org/linuxmint-packages uma main upstream import backport
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/official-source-repositories.list 
           1: deb-src http://mirrors.dotsrc.org/linuxmint-packages uma main upstream import backport
           2: deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb-src http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb-src http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 277 Uptime: 7h 03m Memory: 15.56 GiB used: 3.92 GiB (25.2%) Init: systemd v: 245 runlevel: 5 
           Compilers: gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
t42
Level 11
Level 11
Posts: 3725
Joined: Mon Jan 20, 2014 6:48 pm

Re: Can only scan as root

Post by t42 »

Did you try to open Users and Groups application from menu and add itself to the scanner group? After that you need to logout and login.
-=t42=-
User avatar
all41
Level 19
Level 19
Posts: 9518
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Can only scan as root

Post by all41 »

perhaps the firewall is blocking

Code: Select all

sudo ufw status
If reported active try a temporary disable:

Code: Select all

sudo ufw disable
Then rerun the scanner. If it now scans to file add a simple 'allow from' rule for ufw
to re-enable ufw:

Code: Select all

sudo ufw enable
Everything in life was difficult before it became easy.
t42
Level 11
Level 11
Posts: 3725
Joined: Mon Jan 20, 2014 6:48 pm

Re: Can only scan as root

Post by t42 »

all41 wrote: Sun Jan 23, 2022 1:00 pm perhaps the firewall is blocking
If this is true can you explain why "Running simple-scan as root solves the problem" ?
-=t42=-
Franz_Hose
Level 1
Level 1
Posts: 11
Joined: Sun Oct 31, 2021 12:48 pm

Re: Can only scan as root

Post by Franz_Hose »

t42 wrote: Sun Jan 23, 2022 12:57 pm Did you try to open Users and Groups application from menu and add itself to the scanner group? After that you need to logout and login.
I tried this earlier that day already, without success... However, after a restart it now works... Can't say I can explain why a logout did not suffice.
Locked

Return to “Printers & Scanners”