3

When I run Xsane as root it works.

When I launch Xsane as a user other than root I get the following error message:

failed to open device 'brother4:bus7;dev1':Invalid argument

I am using Ubuntu 14.04

The scanner part of my Brother HL-2280DW printer, scanner, copier is working when I run Xsane as root.

Any suggestions would be welcome

A.B.
  • 89,123
  • 21
  • 245
  • 323
Richard Lott
  • 133
  • 1
  • 7

1 Answers1

0

This error may happen because your user doesn't have the required privileges to access your scanner. Make sure your user is member of the scanner group.

You can add your user to that group from the Unity Control Center, and then logout and login again so the applications can see the change.

gerlos
  • 2,664
  • 1
  • 19
  • 25
  • I couldn't figure out how to add user richard to the scanner group from the Unity Control Center so I used the following command: sudo adduser richard scanner – Richard Lott May 04 '15 at 23:27
  • and verified by using the command: id richard. When I ran xsane from the terminal as richard I got the same error message as before. – Richard Lott May 04 '15 at 23:29
  • @RichardLott to let your user get the new privileges you need to log out and then login again. Did you tried to do so? – gerlos Mar 06 '17 at 17:28
  • 1
    `sudo usermod -a -G scanner YOUR_USER` then you either logout and login or run in terminal `sudo su - $USER` (assuming you have sudo privileges), and just run `xsane` after that. should work. – Asaf Mar 30 '18 at 16:09